openstudio-aws 0.5.0.rc2 → 0.5.0.rc3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8e388aa0be78ded9805099223d0d4b448b1a6830
4
- data.tar.gz: 591b32d3e619a3772c972afd6f1bcd04c999d7bb
3
+ metadata.gz: e2ce57260b6ee993709bf25f2c74d3fc63f10d89
4
+ data.tar.gz: 7d7aad718c864f0f8ab29ecada4bcf5310cd67ae
5
5
  SHA512:
6
- metadata.gz: a2f9a92a9a26f0f4ebdc380e8ab16154c7fadadbad159312894e84d370419d659a91805f9cb51d717ecc69e32c641e036192c833420b2e178e7193c749bdb7e6
7
- data.tar.gz: 336f34740bdc97c15047d0d43d5629fcc7b63395a18aa0bd6be67d380f0e0bf0278c964fa6f33d8c4b7a85b3716ce0639920b8e8fa966ed4360007c16520d33e
6
+ metadata.gz: f9ba8dbfc583a631aadaa16e61de11b33ca3e8a3790b50c9caf54c5b42ec6b1a0bd962ab3cd032398ca7199e6ee66f8e3d223f3f6c94a17bc466ad0f0aaac33b
7
+ data.tar.gz: c512024e2000ffa70d8366a2082828d60fcb5839fb35e89a8b27b785036bc6d1ce073e56538d057cc48b001e904d49ebd9344932f89db4ce1c5f1303deb46936
@@ -246,8 +246,15 @@ module OpenStudio
246
246
 
247
247
  logger.info 'Waiting for server/worker configurations'
248
248
 
249
- return @os_aws.configure_server_and_workers unless @dockerized
250
- @os_aws.configure_swarm_cluster if @dockerized
249
+ begin
250
+ if @dockerized
251
+ @os_aws.configure_swarm_cluster
252
+ else
253
+ @os_aws.configure_server_and_workers
254
+ end
255
+ rescue => e
256
+ fail "Configuring the cluster failed with error `#{e.message}` in:\n#{e.backtrace.join('\n')}"
257
+ end
251
258
  end
252
259
 
253
260
  # Write out to the terminal the connection information for the servers and workers
@@ -1,5 +1,5 @@
1
1
  module OpenStudio
2
2
  module Aws
3
- VERSION = '0.5.0.rc2'
3
+ VERSION = '0.5.0.rc3'
4
4
  end
5
5
  end
@@ -29,66 +29,11 @@ describe OpenStudioAmis do
29
29
  end
30
30
 
31
31
  context 'version 2' do
32
- it 'should return openstudio server version 1.21.14 correctly' do
33
- a = OpenStudioAmis.new(2, openstudio_server_version: '1.21.14')
34
-
35
- amis = a.get_amis
36
-
37
- expect(amis[:server]).to eq('ami-43a74255')
38
- expect(amis[:worker]).to eq('ami-24a04532')
39
- expect(amis[:cc2worker]).to eq(nil)
40
- end
41
- end
42
-
43
- context 'version 2' do
44
- it 'should return openstudio version 1.7.1 when stable is passed to 1.7.5' do
45
- a = OpenStudioAmis.new(2, openstudio_version: '1.7.5', stable: true)
46
-
47
- amis = a.get_amis
48
-
49
- expect(amis[:server]).to eq('ami-845a54ec')
50
- expect(amis[:worker]).to eq('ami-3a5a5452')
51
- end
52
-
53
- it 'should return openstudio version 1.7.1 stable & default versions correctly' do
54
- a = OpenStudioAmis.new(2, openstudio_version: '1.7.1')
55
-
56
- amis = a.get_amis
57
-
58
- expect(amis[:server]).to eq('ami-845a54ec')
59
- expect(amis[:worker]).to eq('ami-3a5a5452')
60
- end
61
-
62
- it 'should return openstudio version 1.7.0 default version correctly' do
63
- a = OpenStudioAmis.new(2, openstudio_version: '1.7.0')
64
-
65
- amis = a.get_amis
66
-
67
- expect(amis[:server]).to eq('ami-725b701a')
68
- expect(amis[:worker]).to eq('ami-4a446f22')
69
- end
70
-
71
- it 'should return openstudio version 1.7.0 stable version correctly' do
72
- a = OpenStudioAmis.new(2, openstudio_version: '1.7.0', stable: true)
73
-
74
- amis = a.get_amis
75
-
76
- expect(amis[:server]).to eq('ami-c06b40a8')
77
- expect(amis[:worker]).to eq('ami-9a97bff2')
78
- end
79
32
 
80
33
  it 'should fail when trying to find a stable version for older releases' do
81
34
  a = OpenStudioAmis.new(2, openstudio_version: '1.5.0', stable: true)
82
35
 
83
36
  expect { a.get_amis }.to raise_error(/Could not find a stable version for openstudio version 1.5.0/)
84
37
  end
85
-
86
- it 'should return latest version when passing in a future version' do
87
- a = OpenStudioAmis.new(2, openstudio_version: '4.8.15', stable: true)
88
-
89
- a = a.get_amis
90
-
91
- expect(a).not_to be nil
92
- end
93
38
  end
94
39
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstudio-aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0.rc2
4
+ version: 0.5.0.rc3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Long
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-10 00:00:00.000000000 Z
11
+ date: 2017-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-scp
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  version: 1.3.6
155
155
  requirements: []
156
156
  rubyforge_project:
157
- rubygems_version: 2.6.7
157
+ rubygems_version: 2.5.0
158
158
  signing_key:
159
159
  specification_version: 4
160
160
  summary: Start AWS EC2 instances for running distributed OpenStudio-based analyses