openstudio-aws 0.1.15 → 0.1.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. checksums.yaml +4 -4
  2. data/lib/openstudio/aws/aws.rb +43 -21
  3. data/lib/openstudio/aws/version.rb +1 -1
  4. data/lib/openstudio/lib/ami_list.rb +35 -13
  5. data/lib/openstudio/lib/openstudio_aws_instance.rb +3 -2
  6. data/lib/openstudio/lib/openstudio_aws_wrapper.rb +25 -7
  7. data/spec/openstudio-aws/ami_list_spec.rb +1 -1
  8. data/spec/openstudio-aws/aws_spec.rb +47 -11
  9. data/spec/openstudio-aws/aws_wrapper_spec.rb +1 -1
  10. data/spec/reports/SPEC-OpenStudio-Aws-Aws-ami-lists.0.xml +18 -0
  11. data/spec/reports/SPEC-OpenStudio-Aws-Aws-ami-lists.1.xml +19 -0
  12. data/spec/reports/SPEC-OpenStudio-Aws-Aws-ami-lists.2.xml +11 -0
  13. data/spec/reports/SPEC-OpenStudio-Aws-Aws-ami-lists.3.xml +11 -0
  14. data/spec/reports/SPEC-OpenStudio-Aws-Aws-ami-lists.xml +18 -0
  15. data/spec/reports/SPEC-OpenStudio-Aws-Aws-create-a-new-instance.6.xml +26 -0
  16. data/spec/reports/SPEC-OpenStudio-Aws-Aws-proxy-configuration.26.xml +13 -0
  17. data/spec/reports/SPEC-OpenStudio-Aws-Aws-proxy-configuration.27.xml +13 -0
  18. data/spec/reports/SPEC-OpenStudio-Aws-Aws-proxy-configuration.28.xml +13 -0
  19. data/spec/reports/SPEC-OpenStudio-Aws-Aws-proxy-configuration.29.xml +13 -0
  20. data/spec/reports/SPEC-OpenStudio-Aws-Aws-proxy-configuration.30.xml +16 -0
  21. data/spec/reports/SPEC-OpenStudio-Aws-Aws-proxy-configuration.31.xml +13 -0
  22. data/spec/reports/SPEC-OpenStudio-Aws-Aws-proxy-configuration.32.xml +13 -0
  23. data/spec/reports/SPEC-OpenStudio-Aws-Aws-should-error.0.xml +9 -0
  24. data/spec/reports/SPEC-OpenStudio-Aws-Aws-should-error.xml +9 -0
  25. data/spec/reports/SPEC-OpenStudio-Aws-Aws-version-testing.0.xml +9 -0
  26. data/spec/reports/SPEC-OpenStudio-Aws-Aws-version-testing.xml +9 -0
  27. data/spec/reports/SPEC-OpenStudio-Aws-Aws.31.xml +7 -0
  28. data/spec/reports/SPEC-OpenStudio-Aws-Aws.32.xml +7 -0
  29. data/spec/reports/SPEC-OpenStudio-Aws-Aws.33.xml +7 -0
  30. data/spec/reports/SPEC-OpenStudio-Aws-Aws.34.xml +7 -0
  31. data/spec/reports/SPEC-OpenStudio-Aws-Aws.35.xml +7 -0
  32. data/spec/reports/SPEC-OpenStudio-Aws-Aws.36.xml +7 -0
  33. data/spec/reports/SPEC-OpenStudio-Aws-Aws.37.xml +7 -0
  34. data/spec/reports/SPEC-OpenStudio-Aws-Config-create-a-new-config.52.xml +9 -0
  35. data/spec/reports/SPEC-OpenStudio-Aws-Config-create-a-new-config.53.xml +9 -0
  36. data/spec/reports/SPEC-OpenStudio-Aws-Config-create-a-new-config.54.xml +9 -0
  37. data/spec/reports/SPEC-OpenStudio-Aws-Config-create-a-new-config.55.xml +9 -0
  38. data/spec/reports/SPEC-OpenStudio-Aws-Config-create-a-new-config.56.xml +9 -0
  39. data/spec/reports/SPEC-OpenStudio-Aws-Config-create-a-new-config.57.xml +9 -0
  40. data/spec/reports/SPEC-OpenStudio-Aws-Config.52.xml +7 -0
  41. data/spec/reports/SPEC-OpenStudio-Aws-Config.53.xml +7 -0
  42. data/spec/reports/SPEC-OpenStudio-Aws-Config.54.xml +7 -0
  43. data/spec/reports/SPEC-OpenStudio-Aws-Config.55.xml +7 -0
  44. data/spec/reports/SPEC-OpenStudio-Aws-Config.56.xml +7 -0
  45. data/spec/reports/SPEC-OpenStudio-Aws-Config.57.xml +7 -0
  46. data/spec/reports/SPEC-OpenStudioAmis-version-1.53.xml +13 -0
  47. data/spec/reports/SPEC-OpenStudioAmis-version-1.54.xml +13 -0
  48. data/spec/reports/SPEC-OpenStudioAmis-version-1.55.xml +13 -0
  49. data/spec/reports/SPEC-OpenStudioAmis-version-1.56.xml +13 -0
  50. data/spec/reports/SPEC-OpenStudioAmis-version-1.57.xml +13 -0
  51. data/spec/reports/SPEC-OpenStudioAmis-version-1.58.xml +13 -0
  52. data/spec/reports/SPEC-OpenStudioAmis-version-1.59.xml +13 -0
  53. data/spec/reports/SPEC-OpenStudioAmis-version-2.51.xml +9 -0
  54. data/spec/reports/SPEC-OpenStudioAmis-version-2.52.xml +9 -0
  55. data/spec/reports/SPEC-OpenStudioAmis-version-2.53.xml +9 -0
  56. data/spec/reports/SPEC-OpenStudioAmis-version-2.54.xml +9 -0
  57. data/spec/reports/SPEC-OpenStudioAmis-version-2.55.xml +9 -0
  58. data/spec/reports/SPEC-OpenStudioAmis-version-2.56.xml +9 -0
  59. data/spec/reports/SPEC-OpenStudioAmis-version-2.57.xml +9 -0
  60. data/spec/reports/SPEC-OpenStudioAmis.53.xml +7 -0
  61. data/spec/reports/SPEC-OpenStudioAmis.54.xml +7 -0
  62. data/spec/reports/SPEC-OpenStudioAmis.55.xml +7 -0
  63. data/spec/reports/SPEC-OpenStudioAmis.56.xml +7 -0
  64. data/spec/reports/SPEC-OpenStudioAmis.57.xml +7 -0
  65. data/spec/reports/SPEC-OpenStudioAmis.58.xml +7 -0
  66. data/spec/reports/SPEC-OpenStudioAmis.59.xml +7 -0
  67. data/spec/reports/SPEC-OpenStudioAwsMethods-processors.53.xml +11 -0
  68. data/spec/reports/SPEC-OpenStudioAwsMethods-processors.54.xml +11 -0
  69. data/spec/reports/SPEC-OpenStudioAwsMethods-processors.55.xml +11 -0
  70. data/spec/reports/SPEC-OpenStudioAwsMethods-processors.56.xml +11 -0
  71. data/spec/reports/SPEC-OpenStudioAwsMethods-processors.57.xml +11 -0
  72. data/spec/reports/SPEC-OpenStudioAwsMethods-processors.58.xml +11 -0
  73. data/spec/reports/SPEC-OpenStudioAwsMethods-processors.59.xml +11 -0
  74. data/spec/reports/SPEC-OpenStudioAwsMethods.53.xml +7 -0
  75. data/spec/reports/SPEC-OpenStudioAwsMethods.54.xml +7 -0
  76. data/spec/reports/SPEC-OpenStudioAwsMethods.55.xml +7 -0
  77. data/spec/reports/SPEC-OpenStudioAwsMethods.56.xml +7 -0
  78. data/spec/reports/SPEC-OpenStudioAwsMethods.57.xml +7 -0
  79. data/spec/reports/SPEC-OpenStudioAwsMethods.58.xml +7 -0
  80. data/spec/reports/SPEC-OpenStudioAwsMethods.59.xml +7 -0
  81. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-availability.52.xml +11 -0
  82. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-availability.53.xml +11 -0
  83. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-availability.54.xml +11 -0
  84. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-availability.55.xml +11 -0
  85. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-availability.56.xml +9 -0
  86. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-availability.57.xml +11 -0
  87. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-availability.58.xml +11 -0
  88. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-create-new-ami-json.44.xml +11 -0
  89. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-create-new-ami-json.45.xml +11 -0
  90. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-create-new-ami-json.46.xml +11 -0
  91. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-create-new-ami-json.47.xml +11 -0
  92. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-create-new-ami-json.48.xml +11 -0
  93. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-create-new-ami-json.49.xml +11 -0
  94. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-new-instance.52.xml +9 -0
  95. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-new-instance.53.xml +9 -0
  96. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-new-instance.54.xml +9 -0
  97. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-new-instance.55.xml +9 -0
  98. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-new-instance.56.xml +9 -0
  99. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-new-instance.57.xml +9 -0
  100. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-new-instance.58.xml +9 -0
  101. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-version-1.2.xml +19 -0
  102. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-version-1.3.xml +9 -0
  103. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-version-1.4.xml +9 -0
  104. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-version-1.5.xml +9 -0
  105. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-version-1.6.xml +125 -0
  106. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-version-1.7.xml +125 -0
  107. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-version-2.2.xml +9 -0
  108. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-version-2.3.xml +9 -0
  109. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-version-2.4.xml +9 -0
  110. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-version-2.5.xml +9 -0
  111. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-version-2.6.xml +9 -0
  112. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session-version-2.7.xml +9 -0
  113. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session.52.xml +7 -0
  114. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session.53.xml +7 -0
  115. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session.54.xml +7 -0
  116. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session.55.xml +7 -0
  117. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session.56.xml +8 -0
  118. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session.57.xml +7 -0
  119. data/spec/reports/SPEC-OpenStudioAwsWrapper-authenticated-session.58.xml +7 -0
  120. data/spec/reports/SPEC-OpenStudioAwsWrapper-unauthenticated-session.53.xml +9 -0
  121. data/spec/reports/SPEC-OpenStudioAwsWrapper-unauthenticated-session.54.xml +9 -0
  122. data/spec/reports/SPEC-OpenStudioAwsWrapper-unauthenticated-session.55.xml +9 -0
  123. data/spec/reports/SPEC-OpenStudioAwsWrapper-unauthenticated-session.56.xml +9 -0
  124. data/spec/reports/SPEC-OpenStudioAwsWrapper-unauthenticated-session.57.xml +9 -0
  125. data/spec/reports/SPEC-OpenStudioAwsWrapper-unauthenticated-session.58.xml +9 -0
  126. data/spec/reports/SPEC-OpenStudioAwsWrapper-unauthenticated-session.59.xml +9 -0
  127. data/spec/reports/SPEC-OpenStudioAwsWrapper.53.xml +7 -0
  128. data/spec/reports/SPEC-OpenStudioAwsWrapper.54.xml +7 -0
  129. data/spec/reports/SPEC-OpenStudioAwsWrapper.55.xml +7 -0
  130. data/spec/reports/SPEC-OpenStudioAwsWrapper.56.xml +7 -0
  131. data/spec/reports/SPEC-OpenStudioAwsWrapper.57.xml +7 -0
  132. data/spec/reports/SPEC-OpenStudioAwsWrapper.58.xml +7 -0
  133. data/spec/reports/SPEC-OpenStudioAwsWrapper.59.xml +7 -0
  134. metadata +250 -2
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsWrapper authenticated session" tests="0" time="0.006708" 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.006626" 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.008631" failures="0" errors="0" skipped="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsWrapper authenticated session" tests="0" time="0.006575" failures="0" errors="0" skipped="0">
3
+ <system-out>
4
+ {:ami_lookup_version=&gt;1, :region=&gt;"us-east-1"}
5
+ </system-out>
6
+ <system-err>
7
+ </system-err>
8
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="OpenStudioAwsWrapper authenticated session" tests="0" time="0.089008" 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.082923" 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="0.778587" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAwsWrapper unauthenticated session should fail to authenticate" time="0.778447">
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="0.668518" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAwsWrapper unauthenticated session should fail to authenticate" time="0.668339">
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="0.473021" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAwsWrapper unauthenticated session should fail to authenticate" time="0.472835">
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="0.350433" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAwsWrapper unauthenticated session should fail to authenticate" time="0.350261">
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="0.326469" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAwsWrapper unauthenticated session should fail to authenticate" time="0.326291">
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="0.599711" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAwsWrapper unauthenticated session should fail to authenticate" time="0.599564">
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.041251" failures="0" errors="0" skipped="0">
3
+ <testcase name="OpenStudioAwsWrapper unauthenticated session should fail to authenticate" time="1.041098">
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="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="OpenStudioAwsWrapper" tests="0" time="0.000148" 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.000134" 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.000104" 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.00011" 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="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="OpenStudioAwsWrapper" 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>