openstudio-aws 0.1.10 → 0.1.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +1 -1
  3. data/lib/openstudio/aws/aws.rb +2 -1
  4. data/lib/openstudio/aws/version.rb +1 -1
  5. data/lib/openstudio/lib/ami_list.rb +31 -9
  6. data/lib/openstudio/lib/openstudio_aws_wrapper.rb +41 -0
  7. data/spec/openstudio-aws/ami_list_spec.rb +9 -4
  8. data/spec/openstudio-aws/{lib_spec.rb → aws_wrapper_spec.rb} +16 -4
  9. data/spec/reports/SPEC-OpenStudio-Aws-Config-create-a-new-config.2.xml +9 -0
  10. data/spec/reports/SPEC-OpenStudio-Aws-Config-create-a-new-config.3.xml +9 -0
  11. data/spec/reports/SPEC-OpenStudio-Aws-Config-create-a-new-config.4.xml +9 -0
  12. data/spec/reports/SPEC-OpenStudio-Aws-Config-create-a-new-config.5.xml +9 -0
  13. data/spec/reports/SPEC-OpenStudio-Aws-Config-create-a-new-config.6.xml +9 -0
  14. data/spec/reports/SPEC-OpenStudio-Aws-Config.2.xml +7 -0
  15. data/spec/reports/SPEC-OpenStudio-Aws-Config.3.xml +7 -0
  16. data/spec/reports/SPEC-OpenStudio-Aws-Config.4.xml +7 -0
  17. data/spec/reports/SPEC-OpenStudio-Aws-Config.5.xml +7 -0
  18. data/spec/reports/SPEC-OpenStudio-Aws-Config.6.xml +7 -0
  19. data/spec/reports/SPEC-OpenStudioAmis-version-1.2.xml +16 -0
  20. data/spec/reports/SPEC-OpenStudioAmis-version-1.3.xml +16 -0
  21. data/spec/reports/SPEC-OpenStudioAmis-version-1.4.xml +17 -0
  22. data/spec/reports/SPEC-OpenStudioAmis-version-1.5.xml +17 -0
  23. data/spec/reports/SPEC-OpenStudioAmis-version-1.6.xml +15 -0
  24. data/spec/reports/SPEC-OpenStudioAmis-version-2.0.xml +9 -0
  25. data/spec/reports/SPEC-OpenStudioAmis-version-2.1.xml +9 -0
  26. data/spec/reports/SPEC-OpenStudioAmis-version-2.2.xml +9 -0
  27. data/spec/reports/SPEC-OpenStudioAmis-version-2.3.xml +9 -0
  28. data/spec/reports/SPEC-OpenStudioAmis-version-2.4.xml +9 -0
  29. data/spec/reports/SPEC-OpenStudioAmis.2.xml +7 -0
  30. data/spec/reports/SPEC-OpenStudioAmis.3.xml +7 -0
  31. data/spec/reports/SPEC-OpenStudioAmis.4.xml +7 -0
  32. data/spec/reports/SPEC-OpenStudioAmis.5.xml +7 -0
  33. data/spec/reports/SPEC-OpenStudioAmis.6.xml +7 -0
  34. data/spec/reports/SPEC-OpenStudioAwsMethods-processors.2.xml +11 -0
  35. data/spec/reports/SPEC-OpenStudioAwsMethods-processors.3.xml +11 -0
  36. data/spec/reports/SPEC-OpenStudioAwsMethods-processors.4.xml +11 -0
  37. data/spec/reports/SPEC-OpenStudioAwsMethods-processors.5.xml +11 -0
  38. data/spec/reports/SPEC-OpenStudioAwsMethods-processors.6.xml +11 -0
  39. data/spec/reports/SPEC-OpenStudioAwsMethods.2.xml +7 -0
  40. data/spec/reports/SPEC-OpenStudioAwsMethods.3.xml +7 -0
  41. data/spec/reports/SPEC-OpenStudioAwsMethods.4.xml +7 -0
  42. data/spec/reports/SPEC-OpenStudioAwsMethods.5.xml +7 -0
  43. data/spec/reports/SPEC-OpenStudioAwsMethods.6.xml +7 -0
  44. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-availability.2.xml +11 -0
  45. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-availability.3.xml +11 -0
  46. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-availability.4.xml +11 -0
  47. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-availability.5.xml +11 -0
  48. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-availability.6.xml +11 -0
  49. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-new-instance.2.xml +9 -0
  50. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-new-instance.3.xml +9 -0
  51. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-new-instance.4.xml +9 -0
  52. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-new-instance.5.xml +9 -0
  53. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-new-instance.6.xml +9 -0
  54. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session.2.xml +7 -0
  55. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session.3.xml +7 -0
  56. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session.4.xml +7 -0
  57. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session.5.xml +7 -0
  58. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session.6.xml +7 -0
  59. data/spec/reports/SPEC-OpenStudioAwsWrapper-unauthenticated-session.2.xml +9 -0
  60. data/spec/reports/SPEC-OpenStudioAwsWrapper-unauthenticated-session.3.xml +9 -0
  61. data/spec/reports/SPEC-OpenStudioAwsWrapper-unauthenticated-session.4.xml +9 -0
  62. data/spec/reports/SPEC-OpenStudioAwsWrapper-unauthenticated-session.5.xml +9 -0
  63. data/spec/reports/SPEC-OpenStudioAwsWrapper-unauthenticated-session.6.xml +9 -0
  64. data/spec/reports/SPEC-OpenStudioAwsWrapper.2.xml +7 -0
  65. data/spec/reports/SPEC-OpenStudioAwsWrapper.3.xml +7 -0
  66. data/spec/reports/SPEC-OpenStudioAwsWrapper.4.xml +7 -0
  67. data/spec/reports/SPEC-OpenStudioAwsWrapper.5.xml +7 -0
  68. data/spec/reports/SPEC-OpenStudioAwsWrapper.6.xml +7 -0
  69. metadata +123 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3ac6b743feca80ea6c1cc34f6ecd9f765504d52b
4
- data.tar.gz: 19e378e4fc19eb4578e11a010ee4761a7f506d78
3
+ metadata.gz: 0d33b30a0656911cefb58ff085e87a4b36ee1ff8
4
+ data.tar.gz: 9ccc2d0a0d75e654dfdd20dd7ef211c43b90d407
5
5
  SHA512:
6
- metadata.gz: c29dc7caf6cf02f2357a655986a9a1f0a57aaddb717447b037e94c0fb0bef81df919b9678f33317964321b3c837b8a2a4b2e05e3a75dfb0d303b675b9af45e6e
7
- data.tar.gz: c34a468d431073cf7b69eb50325516152dcf69300242d0de2e4460f003b75b3b5c6288985f1adf3f4e3e7e39ad9b287ffe82287a651c6820a60d9b64b8517be9
6
+ metadata.gz: d20b55e37e3f1c1f7a457af6140726e83d5caa119326cbfe67a2f510cf86d178887f3fc9e373dac9ba7cacd0189259e7e2323e176ea1ea2f5d4ad57742191280
7
+ data.tar.gz: 8c642295ea9555236f4686f587ee85b53f5c9e6bf1826e845845847ccc7838f845ba0ab016b64e0d20808402b4bed6d2d9eb309268a1fb5272da5fb1b0281145
data/Rakefile CHANGED
@@ -26,7 +26,7 @@ task :release => :build do
26
26
  end
27
27
 
28
28
  RSpec::Core::RakeTask.new("spec") do |spec|
29
- spec.rspec_opts = %w(--format progress --format CI::Reporter::RSpec)
29
+ #spec.rspec_opts = %w(--format progress --format CI::Reporter::RSpec)
30
30
  spec.pattern = "spec/**/*_spec.rb"
31
31
  end
32
32
 
@@ -12,7 +12,8 @@ module OpenStudio
12
12
  @os_aws = OpenStudioAwsWrapper.new(config)
13
13
  @local_key_file_name = nil
14
14
 
15
- @default_amis = OpenStudioAmis.new(1, "1.1.3").get_amis
15
+ # this will grab the default version of openstudio ami versions
16
+ @default_amis = OpenStudioAmis.new(1).get_amis
16
17
  end
17
18
 
18
19
  # command line call to create a new instance. This should be more tightly integrated with teh os-aws.rb gem
@@ -1,6 +1,6 @@
1
1
  module OpenStudio
2
2
  module Aws
3
- VERSION = "0.1.10"
3
+ VERSION = "0.1.11"
4
4
  OPENSTUDIO_VERSION = "1.2.1"
5
5
  end
6
6
  end
@@ -28,7 +28,19 @@ class OpenStudioAmis
28
28
  @openstudio_server_version = openstudio_server_version
29
29
  end
30
30
 
31
- def get_amis()
31
+ def list
32
+ json = nil
33
+ command = "list_amis_version_#{@version}"
34
+ if OpenStudioAmis.method_defined?(command)
35
+ json = send(command)
36
+ else
37
+ raise "Unknown api version command #{command}"
38
+ end
39
+
40
+ json
41
+ end
42
+
43
+ def get_amis
32
44
  amis = nil
33
45
  command = "get_ami_version_#{@version}"
34
46
  if OpenStudioAmis.method_defined?(command)
@@ -42,28 +54,38 @@ class OpenStudioAmis
42
54
  amis
43
55
  end
44
56
 
45
- protected
46
-
47
- def get_ami_version_1()
57
+ protected
58
+
59
+ def list_amis_version_1
48
60
  endpoint = '/downloads/buildings/openstudio/rsrc/amis.json'
61
+ json = retrieve_json(endpoint)
62
+
63
+ json
64
+ end
65
+
66
+ def list_amis_version_2
67
+ endpoint = '/downloads/buildings/openstudio/rsrc/amis_v2.json'
49
68
 
50
69
  json = retrieve_json(endpoint)
70
+ json
71
+ end
72
+
73
+ def get_ami_version_1()
74
+ json = list_amis_version_1
51
75
  version = json.has_key?(@openstudio_version) ? @openstudio_version : 'default'
52
76
 
53
77
  json[version]
54
78
  end
55
79
 
56
80
  def get_ami_version_2()
57
- endpoint = '/downloads/buildings/openstudio/rsrc/amis_v2.json'
58
-
59
- json = retrieve_json(endpoint)
81
+ json = list_amis_version_2
60
82
  version = json.has_key?(@openstudio_version) ? @openstudio_version : 'default'
61
83
 
62
84
  #logic logic
63
85
  end
64
-
86
+
65
87
  private
66
-
88
+
67
89
  def retrieve_json(endpoint)
68
90
  result = nil
69
91
  resp = Net::HTTP.get_response('developer.nrel.gov', endpoint)
@@ -276,6 +276,27 @@ class OpenStudioAwsWrapper
276
276
  true
277
277
  end
278
278
 
279
+ def describe_amis(filter = nil, image_ids = [], owned_by_me = true)
280
+ resp = nil
281
+
282
+ if owned_by_me
283
+ if filter
284
+ resp = @aws.describe_images({:owners => [:self], :filter => filter}).data
285
+ else
286
+ resp = @aws.describe_images({:owners => [:self]}).data
287
+ end
288
+ else
289
+ if filter
290
+ resp = @aws.describe_images({:filter => filter}).data
291
+ else
292
+ resp = @aws.describe_images({:image_ids => image_ids}).data
293
+ end
294
+ end
295
+
296
+
297
+ resp
298
+ end
299
+
279
300
  # method to query the amazon api to find the server (if it exists), based on the group id
280
301
  # if it is found, then it will set the @server member variable.
281
302
  # Note that the information around keys and security groups is pulled from the instance information.
@@ -301,6 +322,26 @@ class OpenStudioAwsWrapper
301
322
  end
302
323
  end
303
324
 
325
+
326
+ # method to hit the existing list of available amis and compare to the list of AMIs on Amazon and then generate the
327
+ # new ami list
328
+ def create_new_ami_json(version = 1)
329
+ existing_amis = OpenStudioAmis.new(version).list
330
+ logger.info existing_amis
331
+
332
+ if version == 1
333
+ # check if the AMIs still exist (anywhere)
334
+ #test_ami = @os_aws.describe_amis(nil, )
335
+ elsif version == 2
336
+ end
337
+
338
+
339
+ # check if the existing AMIs still exist
340
+ #existing_amis
341
+ available_amis = describe_amis()
342
+ logger.info available_amis
343
+ end
344
+
304
345
  def to_os_worker_hash
305
346
  worker_hash = []
306
347
  @workers.each { |worker|
@@ -17,13 +17,15 @@ describe OpenStudioAmis do
17
17
 
18
18
  amis = a.get_amis
19
19
 
20
- expect(amis['server']).to eq("ami-29e5cd40")
21
- expect(amis['worker']).to eq("ami-a9e4ccc0")
22
- expect(amis['cc2worker']).to eq("ami-5be4cc32")
20
+ expect(amis['server']).to eq("ami-a3e4d4ca")
21
+ expect(amis['worker']).to eq("ami-b9e4d4d0")
22
+ expect(amis['cc2worker']).to eq("ami-a5e4d4cc")
23
23
  end
24
24
 
25
- it "should raise if passed an invalid version" do
25
+ it "should list all amis" do
26
+ a = OpenStudioAmis.new(1).list
26
27
 
28
+ expect(a).not_to be_nil
27
29
  end
28
30
  end
29
31
 
@@ -32,6 +34,9 @@ describe OpenStudioAmis do
32
34
 
33
35
  end
34
36
  end
37
+
38
+
39
+
35
40
 
36
41
  end
37
42
 
@@ -28,20 +28,32 @@ describe OpenStudioAwsWrapper do
28
28
  resp = @os_aws.describe_availability_zones
29
29
  expect { resp }.not_to be_nil
30
30
  resp[:availability_zone_info].length.should eq(4)
31
-
31
+
32
32
  resp[:availability_zone_info].inspect.should eq("[{:zone_name=>\"us-east-1a\", :state=>\"available\", :region_name=>\"us-east-1\", :messages=>[]}, {:zone_name=>\"us-east-1b\", :state=>\"available\", :region_name=>\"us-east-1\", :messages=>[]}, {:zone_name=>\"us-east-1c\", :state=>\"available\", :region_name=>\"us-east-1\", :messages=>[]}, {:zone_name=>\"us-east-1d\", :state=>\"available\", :region_name=>\"us-east-1\", :messages=>[]}]")
33
-
33
+
34
34
  resp = @os_aws.describe_availability_zones_json
35
35
  expect { resp }.not_to be_nil
36
36
 
37
37
  end
38
-
38
+
39
39
  it "should list number of instances" do
40
40
  resp = @os_aws.describe_total_instances
41
41
  expect { resp }.not_to be_nil
42
42
  end
43
43
  end
44
-
44
+
45
+ context "create new ami json" do
46
+ it "should describe existing AMIs" do
47
+ resp = @os_aws.describe_amis(nil, nil, true)
48
+ expect(resp).not_to be_nil
49
+ end
50
+
51
+ it "should create a new json" do
52
+ resp = @os_aws.create_new_ami_json(1)
53
+ end
54
+
55
+ end
56
+
45
57
  end
46
58
 
47
59
 
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudio::Aws::Config create a new config" tests="1" time="0.000772" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudio::Aws::Config create a new config should create a new instance" time="0.000587">
4
+ </testcase>
5
+ <system-out>
6
+ </system-out>
7
+ <system-err>
8
+ </system-err>
9
+ </testsuite>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudio::Aws::Config create a new config" tests="1" time="0.000712" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudio::Aws::Config create a new config should create a new instance" time="0.000565">
4
+ </testcase>
5
+ <system-out>
6
+ </system-out>
7
+ <system-err>
8
+ </system-err>
9
+ </testsuite>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudio::Aws::Config create a new config" tests="1" time="0.000714" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudio::Aws::Config create a new config should create a new instance" time="0.000559">
4
+ </testcase>
5
+ <system-out>
6
+ </system-out>
7
+ <system-err>
8
+ </system-err>
9
+ </testsuite>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudio::Aws::Config create a new config" tests="1" time="0.000802" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudio::Aws::Config create a new config should create a new instance" time="0.000627">
4
+ </testcase>
5
+ <system-out>
6
+ </system-out>
7
+ <system-err>
8
+ </system-err>
9
+ </testsuite>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudio::Aws::Config create a new config" tests="1" time="0.00063" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudio::Aws::Config create a new config should create a new instance" time="0.000496">
4
+ </testcase>
5
+ <system-out>
6
+ </system-out>
7
+ <system-err>
8
+ </system-err>
9
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudio::Aws::Config" tests="0" time="9.6e-05" failures="0" errors="0" skipped="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudio::Aws::Config" tests="0" time="7.6e-05" failures="0" errors="0" skipped="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudio::Aws::Config" tests="0" time="8.6e-05" failures="0" errors="0" skipped="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudio::Aws::Config" tests="0" time="9.0e-05" failures="0" errors="0" skipped="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudio::Aws::Config" tests="0" time="7.1e-05" failures="0" errors="0" skipped="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAmis version 1" tests="4" time="10.896444" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAmis version 1 should default to an ami if nothing passed" time="6.216596">
4
+ </testcase>
5
+ <testcase name="OpenStudioAmis version 1 should return specific amis if passed a version" time="2.197012">
6
+ </testcase>
7
+ <testcase name="OpenStudioAmis version 1 should raise if passed an invalid version" time="0.000112">
8
+ </testcase>
9
+ <testcase name="OpenStudioAmis version 1 should list all amis" time="2.482335">
10
+ </testcase>
11
+ <system-out>
12
+ {"default"=&gt;{"server"=&gt;"ami-29e5cd40", "worker"=&gt;"ami-a9e4ccc0", "cc2worker"=&gt;"ami-5be4cc32"}, "1.2.0"=&gt;{"server"=&gt;"ami-29e5cd40", "worker"=&gt;"ami-a9e4ccc0", "cc2worker"=&gt;"ami-5be4cc32"}, "1.1.3"=&gt;{"server"=&gt;"ami-fb301292", "worker"=&gt;"ami-21301248", "cc2worker"=&gt;"ami-d73311be"}, "1.1.2"=&gt;{"server"=&gt;"ami-89f5d3e0", "worker"=&gt;"ami-35f2d45c", "cc2worker"=&gt;"ami-27f2d44e"}, "1.1.1"=&gt;{"server"=&gt;"ami-955308fc", "worker"=&gt;"ami-c95308a0", "cc2worker"=&gt;"ami-a55308cc"}, "1.1.0"=&gt;{"server"=&gt;"ami-1b376a72", "worker"=&gt;"ami-970b56fe", "cc2worker"=&gt;"ami-a30b56ca"}}
13
+ </system-out>
14
+ <system-err>
15
+ </system-err>
16
+ </testsuite>
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAmis version 1" tests="4" time="5.49712" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAmis version 1 should default to an ami if nothing passed" time="3.091352">
4
+ </testcase>
5
+ <testcase name="OpenStudioAmis version 1 should return specific amis if passed a version" time="1.151713">
6
+ </testcase>
7
+ <testcase name="OpenStudioAmis version 1 should raise if passed an invalid version" time="0.000133">
8
+ </testcase>
9
+ <testcase name="OpenStudioAmis version 1 should list all amis" time="1.253591">
10
+ </testcase>
11
+ <system-out>
12
+ AMIs are {"default"=&gt;{"server"=&gt;"ami-29e5cd40", "worker"=&gt;"ami-a9e4ccc0", "cc2worker"=&gt;"ami-5be4cc32"}, "1.2.0"=&gt;{"server"=&gt;"ami-29e5cd40", "worker"=&gt;"ami-a9e4ccc0", "cc2worker"=&gt;"ami-5be4cc32"}, "1.1.3"=&gt;{"server"=&gt;"ami-fb301292", "worker"=&gt;"ami-21301248", "cc2worker"=&gt;"ami-d73311be"}, "1.1.2"=&gt;{"server"=&gt;"ami-89f5d3e0", "worker"=&gt;"ami-35f2d45c", "cc2worker"=&gt;"ami-27f2d44e"}, "1.1.1"=&gt;{"server"=&gt;"ami-955308fc", "worker"=&gt;"ami-c95308a0", "cc2worker"=&gt;"ami-a55308cc"}, "1.1.0"=&gt;{"server"=&gt;"ami-1b376a72", "worker"=&gt;"ami-970b56fe", "cc2worker"=&gt;"ami-a30b56ca"}}
13
+ </system-out>
14
+ <system-err>
15
+ </system-err>
16
+ </testsuite>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAmis version 1" tests="4" time="6.55588" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAmis version 1 should default to an ami if nothing passed" time="1.801168">
4
+ </testcase>
5
+ <testcase name="OpenStudioAmis version 1 should return specific amis if passed a version" time="2.33939">
6
+ </testcase>
7
+ <testcase name="OpenStudioAmis version 1 should raise if passed an invalid version" time="0.000172">
8
+ </testcase>
9
+ <testcase name="OpenStudioAmis version 1 should list all amis" time="2.414725">
10
+ </testcase>
11
+ <system-out>
12
+ listing amis
13
+ AMIs are {"default"=&gt;{"server"=&gt;"ami-29e5cd40", "worker"=&gt;"ami-a9e4ccc0", "cc2worker"=&gt;"ami-5be4cc32"}, "1.2.0"=&gt;{"server"=&gt;"ami-29e5cd40", "worker"=&gt;"ami-a9e4ccc0", "cc2worker"=&gt;"ami-5be4cc32"}, "1.1.3"=&gt;{"server"=&gt;"ami-fb301292", "worker"=&gt;"ami-21301248", "cc2worker"=&gt;"ami-d73311be"}, "1.1.2"=&gt;{"server"=&gt;"ami-89f5d3e0", "worker"=&gt;"ami-35f2d45c", "cc2worker"=&gt;"ami-27f2d44e"}, "1.1.1"=&gt;{"server"=&gt;"ami-955308fc", "worker"=&gt;"ami-c95308a0", "cc2worker"=&gt;"ami-a55308cc"}, "1.1.0"=&gt;{"server"=&gt;"ami-1b376a72", "worker"=&gt;"ami-970b56fe", "cc2worker"=&gt;"ami-a30b56ca"}}
14
+ </system-out>
15
+ <system-err>
16
+ </system-err>
17
+ </testsuite>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAmis version 1" tests="4" time="1.089555" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAmis version 1 should default to an ami if nothing passed" time="0.329243">
4
+ </testcase>
5
+ <testcase name="OpenStudioAmis version 1 should return specific amis if passed a version" time="0.356176">
6
+ </testcase>
7
+ <testcase name="OpenStudioAmis version 1 should raise if passed an invalid version" time="0.000116">
8
+ </testcase>
9
+ <testcase name="OpenStudioAmis version 1 should list all amis" time="0.40368">
10
+ </testcase>
11
+ <system-out>
12
+ listing amis
13
+ AMIs are {"default"=&gt;{"server"=&gt;"ami-29e5cd40", "worker"=&gt;"ami-a9e4ccc0", "cc2worker"=&gt;"ami-5be4cc32"}, "1.2.0"=&gt;{"server"=&gt;"ami-29e5cd40", "worker"=&gt;"ami-a9e4ccc0", "cc2worker"=&gt;"ami-5be4cc32"}, "1.1.3"=&gt;{"server"=&gt;"ami-fb301292", "worker"=&gt;"ami-21301248", "cc2worker"=&gt;"ami-d73311be"}, "1.1.2"=&gt;{"server"=&gt;"ami-89f5d3e0", "worker"=&gt;"ami-35f2d45c", "cc2worker"=&gt;"ami-27f2d44e"}, "1.1.1"=&gt;{"server"=&gt;"ami-955308fc", "worker"=&gt;"ami-c95308a0", "cc2worker"=&gt;"ami-a55308cc"}, "1.1.0"=&gt;{"server"=&gt;"ami-1b376a72", "worker"=&gt;"ami-970b56fe", "cc2worker"=&gt;"ami-a30b56ca"}}
14
+ </system-out>
15
+ <system-err>
16
+ </system-err>
17
+ </testsuite>
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAmis version 1" tests="3" time="3.933143" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAmis version 1 should default to an ami if nothing passed" time="1.260272">
4
+ </testcase>
5
+ <testcase name="OpenStudioAmis version 1 should return specific amis if passed a version" time="1.193241">
6
+ </testcase>
7
+ <testcase name="OpenStudioAmis version 1 should list all amis" time="1.479331">
8
+ </testcase>
9
+ <system-out>
10
+ listing amis
11
+ AMIs are {"default"=&gt;{"server"=&gt;"ami-29e5cd40", "worker"=&gt;"ami-a9e4ccc0", "cc2worker"=&gt;"ami-5be4cc32"}, "1.2.0"=&gt;{"server"=&gt;"ami-29e5cd40", "worker"=&gt;"ami-a9e4ccc0", "cc2worker"=&gt;"ami-5be4cc32"}, "1.1.3"=&gt;{"server"=&gt;"ami-fb301292", "worker"=&gt;"ami-21301248", "cc2worker"=&gt;"ami-d73311be"}, "1.1.2"=&gt;{"server"=&gt;"ami-89f5d3e0", "worker"=&gt;"ami-35f2d45c", "cc2worker"=&gt;"ami-27f2d44e"}, "1.1.1"=&gt;{"server"=&gt;"ami-955308fc", "worker"=&gt;"ami-c95308a0", "cc2worker"=&gt;"ami-a55308cc"}, "1.1.0"=&gt;{"server"=&gt;"ami-1b376a72", "worker"=&gt;"ami-970b56fe", "cc2worker"=&gt;"ami-a30b56ca"}}
12
+ </system-out>
13
+ <system-err>
14
+ </system-err>
15
+ </testsuite>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAmis version 2" tests="1" time="0.00042" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAmis version 2 should default the server version" time="0.000191">
4
+ </testcase>
5
+ <system-out>
6
+ </system-out>
7
+ <system-err>
8
+ </system-err>
9
+ </testsuite>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAmis version 2" tests="1" time="0.000313" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAmis version 2 should default the server version" time="0.000142">
4
+ </testcase>
5
+ <system-out>
6
+ </system-out>
7
+ <system-err>
8
+ </system-err>
9
+ </testsuite>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAmis version 2" tests="1" time="0.000378" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAmis version 2 should default the server version" time="0.00017">
4
+ </testcase>
5
+ <system-out>
6
+ </system-out>
7
+ <system-err>
8
+ </system-err>
9
+ </testsuite>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAmis version 2" tests="1" time="0.000349" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAmis version 2 should default the server version" time="0.00016">
4
+ </testcase>
5
+ <system-out>
6
+ </system-out>
7
+ <system-err>
8
+ </system-err>
9
+ </testsuite>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAmis version 2" tests="1" time="0.000287" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAmis version 2 should default the server version" time="0.00012">
4
+ </testcase>
5
+ <system-out>
6
+ </system-out>
7
+ <system-err>
8
+ </system-err>
9
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAmis" tests="0" time="0.000122" failures="0" errors="0" skipped="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAmis" tests="0" time="9.9e-05" failures="0" errors="0" skipped="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAmis" tests="0" time="0.000113" failures="0" errors="0" skipped="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAmis" tests="0" time="9.6e-05" failures="0" errors="0" skipped="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAmis" tests="0" time="0.000114" failures="0" errors="0" skipped="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsMethods processors" tests="2" time="0.000558" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAwsMethods processors should default to 1 with a warning" time="0.000193">
4
+ </testcase>
5
+ <testcase name="OpenStudioAwsMethods processors should return known values for various instances" time="0.000161">
6
+ </testcase>
7
+ <system-out>
8
+ </system-out>
9
+ <system-err>
10
+ </system-err>
11
+ </testsuite>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsMethods processors" tests="2" time="0.000439" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAwsMethods processors should default to 1 with a warning" time="0.000159">
4
+ </testcase>
5
+ <testcase name="OpenStudioAwsMethods processors should return known values for various instances" time="0.000123">
6
+ </testcase>
7
+ <system-out>
8
+ </system-out>
9
+ <system-err>
10
+ </system-err>
11
+ </testsuite>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsMethods processors" tests="2" time="0.000446" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAwsMethods processors should default to 1 with a warning" time="0.00017">
4
+ </testcase>
5
+ <testcase name="OpenStudioAwsMethods processors should return known values for various instances" time="0.000125">
6
+ </testcase>
7
+ <system-out>
8
+ </system-out>
9
+ <system-err>
10
+ </system-err>
11
+ </testsuite>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsMethods processors" tests="2" time="0.000555" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAwsMethods processors should default to 1 with a warning" time="0.000196">
4
+ </testcase>
5
+ <testcase name="OpenStudioAwsMethods processors should return known values for various instances" time="0.000158">
6
+ </testcase>
7
+ <system-out>
8
+ </system-out>
9
+ <system-err>
10
+ </system-err>
11
+ </testsuite>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsMethods processors" tests="2" time="0.000419" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAwsMethods processors should default to 1 with a warning" time="0.000149">
4
+ </testcase>
5
+ <testcase name="OpenStudioAwsMethods processors should return known values for various instances" time="0.000116">
6
+ </testcase>
7
+ <system-out>
8
+ </system-out>
9
+ <system-err>
10
+ </system-err>
11
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsMethods" tests="0" time="8.5e-05" failures="0" errors="0" skipped="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsMethods" tests="0" time="7.6e-05" failures="0" errors="0" skipped="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsMethods" tests="0" time="7.7e-05" failures="0" errors="0" skipped="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsMethods" tests="0" time="8.7e-05" failures="0" errors="0" skipped="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsMethods" tests="0" time="6.5e-05" failures="0" errors="0" skipped="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsWrapper authenticated session availability" tests="2" time="6.764389" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAwsWrapper authenticated session availability should describe the zones" time="4.39689">
4
+ </testcase>
5
+ <testcase name="OpenStudioAwsWrapper authenticated session availability should list number of instances" time="2.367116">
6
+ </testcase>
7
+ <system-out>
8
+ </system-out>
9
+ <system-err>
10
+ </system-err>
11
+ </testsuite>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsWrapper authenticated session availability" tests="2" time="2.980631" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAwsWrapper authenticated session availability should describe the zones" time="2.08749">
4
+ </testcase>
5
+ <testcase name="OpenStudioAwsWrapper authenticated session availability should list number of instances" time="0.892829">
6
+ </testcase>
7
+ <system-out>
8
+ </system-out>
9
+ <system-err>
10
+ </system-err>
11
+ </testsuite>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsWrapper authenticated session availability" tests="2" time="5.094127" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAwsWrapper authenticated session availability should describe the zones" time="3.180629">
4
+ </testcase>
5
+ <testcase name="OpenStudioAwsWrapper authenticated session availability should list number of instances" time="1.913137">
6
+ </testcase>
7
+ <system-out>
8
+ </system-out>
9
+ <system-err>
10
+ </system-err>
11
+ </testsuite>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsWrapper authenticated session availability" tests="2" time="2.204111" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAwsWrapper authenticated session availability should describe the zones" time="1.612314">
4
+ </testcase>
5
+ <testcase name="OpenStudioAwsWrapper authenticated session availability should list number of instances" time="0.591428">
6
+ </testcase>
7
+ <system-out>
8
+ </system-out>
9
+ <system-err>
10
+ </system-err>
11
+ </testsuite>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsWrapper authenticated session availability" tests="2" time="6.321472" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAwsWrapper authenticated session availability should describe the zones" time="3.671004">
4
+ </testcase>
5
+ <testcase name="OpenStudioAwsWrapper authenticated session availability should list number of instances" time="2.65015">
6
+ </testcase>
7
+ <system-out>
8
+ </system-out>
9
+ <system-err>
10
+ </system-err>
11
+ </testsuite>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsWrapper authenticated session new instance" tests="1" time="0.000329" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAwsWrapper authenticated session new instance should be created" time="0.00018">
4
+ </testcase>
5
+ <system-out>
6
+ </system-out>
7
+ <system-err>
8
+ </system-err>
9
+ </testsuite>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsWrapper authenticated session new instance" tests="1" time="0.000284" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAwsWrapper authenticated session new instance should be created" time="0.000149">
4
+ </testcase>
5
+ <system-out>
6
+ </system-out>
7
+ <system-err>
8
+ </system-err>
9
+ </testsuite>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsWrapper authenticated session new instance" tests="1" time="0.000288" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAwsWrapper authenticated session new instance should be created" time="0.000156">
4
+ </testcase>
5
+ <system-out>
6
+ </system-out>
7
+ <system-err>
8
+ </system-err>
9
+ </testsuite>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsWrapper authenticated session new instance" tests="1" time="0.000333" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAwsWrapper authenticated session new instance should be created" time="0.000189">
4
+ </testcase>
5
+ <system-out>
6
+ </system-out>
7
+ <system-err>
8
+ </system-err>
9
+ </testsuite>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsWrapper authenticated session new instance" tests="1" time="0.000267" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAwsWrapper authenticated session new instance should be created" time="0.000147">
4
+ </testcase>
5
+ <system-out>
6
+ </system-out>
7
+ <system-err>
8
+ </system-err>
9
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsWrapper authenticated session" tests="0" time="0.000892" failures="0" errors="0" skipped="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsWrapper authenticated session" tests="0" time="0.000813" failures="0" errors="0" skipped="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsWrapper authenticated session" tests="0" time="0.000807" failures="0" errors="0" skipped="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsWrapper authenticated session" tests="0" time="0.000969" failures="0" errors="0" skipped="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsWrapper authenticated session" tests="0" time="0.00092" failures="0" errors="0" skipped="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsWrapper unauthenticated session" tests="1" time="8.114936" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAwsWrapper unauthenticated session should fail to authenticate" time="8.114767">
4
+ </testcase>
5
+ <system-out>
6
+ </system-out>
7
+ <system-err>
8
+ </system-err>
9
+ </testsuite>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsWrapper unauthenticated session" tests="1" time="6.685159" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAwsWrapper unauthenticated session should fail to authenticate" time="6.684999">
4
+ </testcase>
5
+ <system-out>
6
+ </system-out>
7
+ <system-err>
8
+ </system-err>
9
+ </testsuite>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsWrapper unauthenticated session" tests="1" time="3.332816" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAwsWrapper unauthenticated session should fail to authenticate" time="3.332621">
4
+ </testcase>
5
+ <system-out>
6
+ </system-out>
7
+ <system-err>
8
+ </system-err>
9
+ </testsuite>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsWrapper unauthenticated session" tests="1" time="1.853061" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAwsWrapper unauthenticated session should fail to authenticate" time="1.852895">
4
+ </testcase>
5
+ <system-out>
6
+ </system-out>
7
+ <system-err>
8
+ </system-err>
9
+ </testsuite>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsWrapper unauthenticated session" tests="1" time="4.208652" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAwsWrapper unauthenticated session should fail to authenticate" time="4.208489">
4
+ </testcase>
5
+ <system-out>
6
+ </system-out>
7
+ <system-err>
8
+ </system-err>
9
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsWrapper" tests="0" time="0.00015" failures="0" errors="0" skipped="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsWrapper" tests="0" time="0.00014" failures="0" errors="0" skipped="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsWrapper" tests="0" time="0.000193" failures="0" errors="0" skipped="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsWrapper" tests="0" time="0.00013" failures="0" errors="0" skipped="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsWrapper" tests="0" time="0.000125" failures="0" errors="0" skipped="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstudio-aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Long
@@ -63,8 +63,8 @@ files:
63
63
  - spec/aws_instances/aws_spec_api.rb
64
64
  - spec/openstudio-aws/ami_list_spec.rb
65
65
  - spec/openstudio-aws/aws_methods_spec.rb
66
+ - spec/openstudio-aws/aws_wrapper_spec.rb
66
67
  - spec/openstudio-aws/config_spec.rb
67
- - spec/openstudio-aws/lib_spec.rb
68
68
  - spec/reports/SPEC-OpenStudio-Aws-Aws-create-a-new-instance.0.xml
69
69
  - spec/reports/SPEC-OpenStudio-Aws-Aws-create-a-new-instance.1.xml
70
70
  - spec/reports/SPEC-OpenStudio-Aws-Aws-create-a-new-instance.xml
@@ -76,37 +76,97 @@ files:
76
76
  - spec/reports/SPEC-OpenStudio-Aws-Aws.xml
77
77
  - spec/reports/SPEC-OpenStudio-Aws-Config-create-a-new-config.0.xml
78
78
  - spec/reports/SPEC-OpenStudio-Aws-Config-create-a-new-config.1.xml
79
+ - spec/reports/SPEC-OpenStudio-Aws-Config-create-a-new-config.2.xml
80
+ - spec/reports/SPEC-OpenStudio-Aws-Config-create-a-new-config.3.xml
81
+ - spec/reports/SPEC-OpenStudio-Aws-Config-create-a-new-config.4.xml
82
+ - spec/reports/SPEC-OpenStudio-Aws-Config-create-a-new-config.5.xml
83
+ - spec/reports/SPEC-OpenStudio-Aws-Config-create-a-new-config.6.xml
79
84
  - spec/reports/SPEC-OpenStudio-Aws-Config-create-a-new-config.xml
80
85
  - spec/reports/SPEC-OpenStudio-Aws-Config.0.xml
81
86
  - spec/reports/SPEC-OpenStudio-Aws-Config.1.xml
87
+ - spec/reports/SPEC-OpenStudio-Aws-Config.2.xml
88
+ - spec/reports/SPEC-OpenStudio-Aws-Config.3.xml
89
+ - spec/reports/SPEC-OpenStudio-Aws-Config.4.xml
90
+ - spec/reports/SPEC-OpenStudio-Aws-Config.5.xml
91
+ - spec/reports/SPEC-OpenStudio-Aws-Config.6.xml
82
92
  - spec/reports/SPEC-OpenStudio-Aws-Config.xml
83
93
  - spec/reports/SPEC-OpenStudioAmis-version-1.0.xml
84
94
  - spec/reports/SPEC-OpenStudioAmis-version-1.1.xml
95
+ - spec/reports/SPEC-OpenStudioAmis-version-1.2.xml
96
+ - spec/reports/SPEC-OpenStudioAmis-version-1.3.xml
97
+ - spec/reports/SPEC-OpenStudioAmis-version-1.4.xml
98
+ - spec/reports/SPEC-OpenStudioAmis-version-1.5.xml
99
+ - spec/reports/SPEC-OpenStudioAmis-version-1.6.xml
85
100
  - spec/reports/SPEC-OpenStudioAmis-version-1.xml
101
+ - spec/reports/SPEC-OpenStudioAmis-version-2.0.xml
102
+ - spec/reports/SPEC-OpenStudioAmis-version-2.1.xml
103
+ - spec/reports/SPEC-OpenStudioAmis-version-2.2.xml
104
+ - spec/reports/SPEC-OpenStudioAmis-version-2.3.xml
105
+ - spec/reports/SPEC-OpenStudioAmis-version-2.4.xml
86
106
  - spec/reports/SPEC-OpenStudioAmis-version-2.xml
87
107
  - spec/reports/SPEC-OpenStudioAmis.0.xml
88
108
  - spec/reports/SPEC-OpenStudioAmis.1.xml
109
+ - spec/reports/SPEC-OpenStudioAmis.2.xml
110
+ - spec/reports/SPEC-OpenStudioAmis.3.xml
111
+ - spec/reports/SPEC-OpenStudioAmis.4.xml
112
+ - spec/reports/SPEC-OpenStudioAmis.5.xml
113
+ - spec/reports/SPEC-OpenStudioAmis.6.xml
89
114
  - spec/reports/SPEC-OpenStudioAmis.xml
90
115
  - spec/reports/SPEC-OpenStudioAwsMethods-processors.0.xml
91
116
  - spec/reports/SPEC-OpenStudioAwsMethods-processors.1.xml
117
+ - spec/reports/SPEC-OpenStudioAwsMethods-processors.2.xml
118
+ - spec/reports/SPEC-OpenStudioAwsMethods-processors.3.xml
119
+ - spec/reports/SPEC-OpenStudioAwsMethods-processors.4.xml
120
+ - spec/reports/SPEC-OpenStudioAwsMethods-processors.5.xml
121
+ - spec/reports/SPEC-OpenStudioAwsMethods-processors.6.xml
92
122
  - spec/reports/SPEC-OpenStudioAwsMethods-processors.xml
93
123
  - spec/reports/SPEC-OpenStudioAwsMethods.0.xml
94
124
  - spec/reports/SPEC-OpenStudioAwsMethods.1.xml
125
+ - spec/reports/SPEC-OpenStudioAwsMethods.2.xml
126
+ - spec/reports/SPEC-OpenStudioAwsMethods.3.xml
127
+ - spec/reports/SPEC-OpenStudioAwsMethods.4.xml
128
+ - spec/reports/SPEC-OpenStudioAwsMethods.5.xml
129
+ - spec/reports/SPEC-OpenStudioAwsMethods.6.xml
95
130
  - spec/reports/SPEC-OpenStudioAwsMethods.xml
96
131
  - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-availability.0.xml
97
132
  - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-availability.1.xml
133
+ - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-availability.2.xml
134
+ - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-availability.3.xml
135
+ - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-availability.4.xml
136
+ - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-availability.5.xml
137
+ - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-availability.6.xml
98
138
  - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-availability.xml
99
139
  - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-new-instance.0.xml
100
140
  - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-new-instance.1.xml
141
+ - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-new-instance.2.xml
142
+ - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-new-instance.3.xml
143
+ - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-new-instance.4.xml
144
+ - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-new-instance.5.xml
145
+ - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-new-instance.6.xml
101
146
  - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-new-instance.xml
102
147
  - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session.0.xml
103
148
  - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session.1.xml
149
+ - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session.2.xml
150
+ - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session.3.xml
151
+ - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session.4.xml
152
+ - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session.5.xml
153
+ - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session.6.xml
104
154
  - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session.xml
105
155
  - spec/reports/SPEC-OpenStudioAwsWrapper-unauthenticated-session.0.xml
106
156
  - spec/reports/SPEC-OpenStudioAwsWrapper-unauthenticated-session.1.xml
157
+ - spec/reports/SPEC-OpenStudioAwsWrapper-unauthenticated-session.2.xml
158
+ - spec/reports/SPEC-OpenStudioAwsWrapper-unauthenticated-session.3.xml
159
+ - spec/reports/SPEC-OpenStudioAwsWrapper-unauthenticated-session.4.xml
160
+ - spec/reports/SPEC-OpenStudioAwsWrapper-unauthenticated-session.5.xml
161
+ - spec/reports/SPEC-OpenStudioAwsWrapper-unauthenticated-session.6.xml
107
162
  - spec/reports/SPEC-OpenStudioAwsWrapper-unauthenticated-session.xml
108
163
  - spec/reports/SPEC-OpenStudioAwsWrapper.0.xml
109
164
  - spec/reports/SPEC-OpenStudioAwsWrapper.1.xml
165
+ - spec/reports/SPEC-OpenStudioAwsWrapper.2.xml
166
+ - spec/reports/SPEC-OpenStudioAwsWrapper.3.xml
167
+ - spec/reports/SPEC-OpenStudioAwsWrapper.4.xml
168
+ - spec/reports/SPEC-OpenStudioAwsWrapper.5.xml
169
+ - spec/reports/SPEC-OpenStudioAwsWrapper.6.xml
110
170
  - spec/reports/SPEC-OpenStudioAwsWrapper.xml
111
171
  - spec/spec_helper.rb
112
172
  homepage: http://openstudio.nrel.gov
@@ -137,8 +197,8 @@ test_files:
137
197
  - spec/aws_instances/aws_spec_api.rb
138
198
  - spec/openstudio-aws/ami_list_spec.rb
139
199
  - spec/openstudio-aws/aws_methods_spec.rb
200
+ - spec/openstudio-aws/aws_wrapper_spec.rb
140
201
  - spec/openstudio-aws/config_spec.rb
141
- - spec/openstudio-aws/lib_spec.rb
142
202
  - spec/reports/SPEC-OpenStudio-Aws-Aws-create-a-new-instance.0.xml
143
203
  - spec/reports/SPEC-OpenStudio-Aws-Aws-create-a-new-instance.1.xml
144
204
  - spec/reports/SPEC-OpenStudio-Aws-Aws-create-a-new-instance.xml
@@ -150,36 +210,96 @@ test_files:
150
210
  - spec/reports/SPEC-OpenStudio-Aws-Aws.xml
151
211
  - spec/reports/SPEC-OpenStudio-Aws-Config-create-a-new-config.0.xml
152
212
  - spec/reports/SPEC-OpenStudio-Aws-Config-create-a-new-config.1.xml
213
+ - spec/reports/SPEC-OpenStudio-Aws-Config-create-a-new-config.2.xml
214
+ - spec/reports/SPEC-OpenStudio-Aws-Config-create-a-new-config.3.xml
215
+ - spec/reports/SPEC-OpenStudio-Aws-Config-create-a-new-config.4.xml
216
+ - spec/reports/SPEC-OpenStudio-Aws-Config-create-a-new-config.5.xml
217
+ - spec/reports/SPEC-OpenStudio-Aws-Config-create-a-new-config.6.xml
153
218
  - spec/reports/SPEC-OpenStudio-Aws-Config-create-a-new-config.xml
154
219
  - spec/reports/SPEC-OpenStudio-Aws-Config.0.xml
155
220
  - spec/reports/SPEC-OpenStudio-Aws-Config.1.xml
221
+ - spec/reports/SPEC-OpenStudio-Aws-Config.2.xml
222
+ - spec/reports/SPEC-OpenStudio-Aws-Config.3.xml
223
+ - spec/reports/SPEC-OpenStudio-Aws-Config.4.xml
224
+ - spec/reports/SPEC-OpenStudio-Aws-Config.5.xml
225
+ - spec/reports/SPEC-OpenStudio-Aws-Config.6.xml
156
226
  - spec/reports/SPEC-OpenStudio-Aws-Config.xml
157
227
  - spec/reports/SPEC-OpenStudioAmis-version-1.0.xml
158
228
  - spec/reports/SPEC-OpenStudioAmis-version-1.1.xml
229
+ - spec/reports/SPEC-OpenStudioAmis-version-1.2.xml
230
+ - spec/reports/SPEC-OpenStudioAmis-version-1.3.xml
231
+ - spec/reports/SPEC-OpenStudioAmis-version-1.4.xml
232
+ - spec/reports/SPEC-OpenStudioAmis-version-1.5.xml
233
+ - spec/reports/SPEC-OpenStudioAmis-version-1.6.xml
159
234
  - spec/reports/SPEC-OpenStudioAmis-version-1.xml
235
+ - spec/reports/SPEC-OpenStudioAmis-version-2.0.xml
236
+ - spec/reports/SPEC-OpenStudioAmis-version-2.1.xml
237
+ - spec/reports/SPEC-OpenStudioAmis-version-2.2.xml
238
+ - spec/reports/SPEC-OpenStudioAmis-version-2.3.xml
239
+ - spec/reports/SPEC-OpenStudioAmis-version-2.4.xml
160
240
  - spec/reports/SPEC-OpenStudioAmis-version-2.xml
161
241
  - spec/reports/SPEC-OpenStudioAmis.0.xml
162
242
  - spec/reports/SPEC-OpenStudioAmis.1.xml
243
+ - spec/reports/SPEC-OpenStudioAmis.2.xml
244
+ - spec/reports/SPEC-OpenStudioAmis.3.xml
245
+ - spec/reports/SPEC-OpenStudioAmis.4.xml
246
+ - spec/reports/SPEC-OpenStudioAmis.5.xml
247
+ - spec/reports/SPEC-OpenStudioAmis.6.xml
163
248
  - spec/reports/SPEC-OpenStudioAmis.xml
164
249
  - spec/reports/SPEC-OpenStudioAwsMethods-processors.0.xml
165
250
  - spec/reports/SPEC-OpenStudioAwsMethods-processors.1.xml
251
+ - spec/reports/SPEC-OpenStudioAwsMethods-processors.2.xml
252
+ - spec/reports/SPEC-OpenStudioAwsMethods-processors.3.xml
253
+ - spec/reports/SPEC-OpenStudioAwsMethods-processors.4.xml
254
+ - spec/reports/SPEC-OpenStudioAwsMethods-processors.5.xml
255
+ - spec/reports/SPEC-OpenStudioAwsMethods-processors.6.xml
166
256
  - spec/reports/SPEC-OpenStudioAwsMethods-processors.xml
167
257
  - spec/reports/SPEC-OpenStudioAwsMethods.0.xml
168
258
  - spec/reports/SPEC-OpenStudioAwsMethods.1.xml
259
+ - spec/reports/SPEC-OpenStudioAwsMethods.2.xml
260
+ - spec/reports/SPEC-OpenStudioAwsMethods.3.xml
261
+ - spec/reports/SPEC-OpenStudioAwsMethods.4.xml
262
+ - spec/reports/SPEC-OpenStudioAwsMethods.5.xml
263
+ - spec/reports/SPEC-OpenStudioAwsMethods.6.xml
169
264
  - spec/reports/SPEC-OpenStudioAwsMethods.xml
170
265
  - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-availability.0.xml
171
266
  - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-availability.1.xml
267
+ - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-availability.2.xml
268
+ - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-availability.3.xml
269
+ - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-availability.4.xml
270
+ - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-availability.5.xml
271
+ - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-availability.6.xml
172
272
  - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-availability.xml
173
273
  - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-new-instance.0.xml
174
274
  - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-new-instance.1.xml
275
+ - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-new-instance.2.xml
276
+ - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-new-instance.3.xml
277
+ - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-new-instance.4.xml
278
+ - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-new-instance.5.xml
279
+ - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-new-instance.6.xml
175
280
  - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-new-instance.xml
176
281
  - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session.0.xml
177
282
  - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session.1.xml
283
+ - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session.2.xml
284
+ - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session.3.xml
285
+ - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session.4.xml
286
+ - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session.5.xml
287
+ - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session.6.xml
178
288
  - spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session.xml
179
289
  - spec/reports/SPEC-OpenStudioAwsWrapper-unauthenticated-session.0.xml
180
290
  - spec/reports/SPEC-OpenStudioAwsWrapper-unauthenticated-session.1.xml
291
+ - spec/reports/SPEC-OpenStudioAwsWrapper-unauthenticated-session.2.xml
292
+ - spec/reports/SPEC-OpenStudioAwsWrapper-unauthenticated-session.3.xml
293
+ - spec/reports/SPEC-OpenStudioAwsWrapper-unauthenticated-session.4.xml
294
+ - spec/reports/SPEC-OpenStudioAwsWrapper-unauthenticated-session.5.xml
295
+ - spec/reports/SPEC-OpenStudioAwsWrapper-unauthenticated-session.6.xml
181
296
  - spec/reports/SPEC-OpenStudioAwsWrapper-unauthenticated-session.xml
182
297
  - spec/reports/SPEC-OpenStudioAwsWrapper.0.xml
183
298
  - spec/reports/SPEC-OpenStudioAwsWrapper.1.xml
299
+ - spec/reports/SPEC-OpenStudioAwsWrapper.2.xml
300
+ - spec/reports/SPEC-OpenStudioAwsWrapper.3.xml
301
+ - spec/reports/SPEC-OpenStudioAwsWrapper.4.xml
302
+ - spec/reports/SPEC-OpenStudioAwsWrapper.5.xml
303
+ - spec/reports/SPEC-OpenStudioAwsWrapper.6.xml
184
304
  - spec/reports/SPEC-OpenStudioAwsWrapper.xml
185
305
  - spec/spec_helper.rb