nephophobia 0.3.0 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. data/lib/nephophobia.rb +26 -37
  2. data/lib/nephophobia/client.rb +6 -6
  3. data/lib/nephophobia/resource/compute.rb +209 -0
  4. data/lib/nephophobia/resource/credential.rb +68 -0
  5. data/lib/nephophobia/resource/image.rb +65 -0
  6. data/lib/nephophobia/resource/project.rb +132 -0
  7. data/lib/nephophobia/resource/role.rb +72 -0
  8. data/lib/nephophobia/resource/user.rb +83 -0
  9. data/lib/nephophobia/response/address.rb +13 -0
  10. data/lib/nephophobia/response/compute.rb +34 -0
  11. data/lib/nephophobia/response/credential.rb +17 -0
  12. data/lib/nephophobia/response/image.rb +24 -0
  13. data/lib/nephophobia/response/member.rb +15 -0
  14. data/lib/nephophobia/response/project.rb +18 -0
  15. data/lib/nephophobia/response/return.rb +16 -0
  16. data/lib/nephophobia/response/role.rb +15 -0
  17. data/lib/nephophobia/response/user.rb +17 -0
  18. data/lib/nephophobia/response/vnc.rb +11 -0
  19. data/lib/nephophobia/util.rb +12 -0
  20. data/lib/nephophobia/version.rb +1 -1
  21. data/nephophobia.gemspec +2 -2
  22. data/test/cassettes/compute_describe_addresses.yml +244 -0
  23. data/test/cassettes/compute_find.yml +30 -18
  24. data/test/cassettes/credential_import.yml +82 -0
  25. data/test/cassettes/role_all_no_params.yml +82 -0
  26. data/test/cassettes/role_modify_role.yml +190 -0
  27. data/test/dummy.pub +1 -0
  28. data/test/lib/nephophobia/{compute_test.rb → response/compute_test.rb} +39 -4
  29. data/test/lib/nephophobia/{credential_test.rb → response/credential_test.rb} +28 -1
  30. data/test/lib/nephophobia/{image_test.rb → response/image_test.rb} +1 -1
  31. data/test/lib/nephophobia/{project_test.rb → response/project_test.rb} +1 -1
  32. data/test/lib/nephophobia/{role_test.rb → response/role_test.rb} +57 -4
  33. data/test/lib/nephophobia/{user_test.rb → response/user_test.rb} +1 -1
  34. data/test/lib/{nephophobia_test.rb → nephophobia/util_test.rb} +3 -3
  35. data/test/test_helper.rb +7 -0
  36. metadata +45 -24
  37. data/lib/nephophobia/compute.rb +0 -243
  38. data/lib/nephophobia/credential.rb +0 -65
  39. data/lib/nephophobia/image.rb +0 -84
  40. data/lib/nephophobia/project.rb +0 -157
  41. data/lib/nephophobia/role.rb +0 -83
  42. data/lib/nephophobia/user.rb +0 -95
@@ -0,0 +1,17 @@
1
+ module Nephophobia
2
+ module Response
3
+ class User
4
+ attr_reader :accesskey, :username, :secretkey
5
+
6
+ attr_accessor :attributes
7
+
8
+ def initialize attributes
9
+ @attributes = attributes
10
+
11
+ @accesskey = attributes['accesskey']
12
+ @username = attributes['username']
13
+ @secretkey = attributes['secretkey']
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,11 @@
1
+ module Nephophobia
2
+ module Response
3
+ class Vnc
4
+ attr_reader :attributes, :url
5
+
6
+ def initialize attributes
7
+ @url = attributes['url']
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,12 @@
1
+ module Nephophobia
2
+ class Util
3
+ ##
4
+ # Wraps a Hash with an Array.
5
+ #
6
+ # +obj+: The Object to be tested for wrapping.
7
+
8
+ def self.coerce obj
9
+ (obj.is_a? Hash) ? [obj] : obj
10
+ end
11
+ end
12
+ end
@@ -1,3 +1,3 @@
1
1
  module Nephophobia
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.6"
3
3
  end
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.version = Nephophobia::VERSION
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["John Dewey", "Josh Kleinpeter"]
10
- s.email = ["john@dewey.ws", "jkleinpeter@attinteractive.com"]
10
+ s.email = ["john@dewey.ws", "josh@kleinpeter.org"]
11
11
  s.homepage = "http://github.com/retr0h/nephophobia"
12
12
  s.summary = %q{Bindings to EC2/OpenStack}
13
13
  s.description = %q{This gem is a simple binding to the EC2 API. It has specific extensions to allow extra functionality provided by OpenStack.}
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
20
  s.require_paths = ["lib"]
21
21
 
22
- s.add_dependency "hugs", "~> 2.6.0"
22
+ s.add_dependency "hugs", "~> 2.7.1"
23
23
 
24
24
  s.add_development_dependency "fakeweb", "~> 1.3.0"
25
25
  s.add_development_dependency "minitest", "~> 2.1.0"
@@ -0,0 +1,244 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://10.3.170.35:8773/services/Cloud?AWSAccessKeyId=2ea76797-229c-4e52-a21b-f30513cb91a6%3Asandbox&Action=AllocateAddress&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&Version=2010-11-15&Signature=bCaGs5tWfNNy%2F3sg%2FRP0ISHMEnT0EZzuoPe%2Fcconzn8%3D
6
+ body:
7
+ headers:
8
+ accept:
9
+ - application/xml
10
+ connection:
11
+ - keep-alive
12
+ keep-alive:
13
+ - 30
14
+ response: !ruby/struct:VCR::Response
15
+ status: !ruby/struct:VCR::ResponseStatus
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ content-type:
20
+ - text/xml
21
+ content-length:
22
+ - "194"
23
+ date:
24
+ - Wed, 01 Jun 2011 17:39:12 GMT
25
+ connection:
26
+ - keep-alive
27
+ body: <?xml version="1.0" ?><AllocateAddressResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>8UTGGHL0ZCT8DO27LQ1A</requestId><publicIp>69.1.1.1</publicIp></AllocateAddressResponse>
28
+ http_version: "1.1"
29
+ - !ruby/struct:VCR::HTTPInteraction
30
+ request: !ruby/struct:VCR::Request
31
+ method: :get
32
+ uri: http://10.3.170.35:8773/services/Cloud?AWSAccessKeyId=2ea76797-229c-4e52-a21b-f30513cb91a6%3Asandbox&Action=AllocateAddress&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&Version=2010-11-15&Signature=bCaGs5tWfNNy%2F3sg%2FRP0ISHMEnT0EZzuoPe%2Fcconzn8%3D
33
+ body:
34
+ headers:
35
+ accept:
36
+ - application/xml
37
+ connection:
38
+ - keep-alive
39
+ keep-alive:
40
+ - 30
41
+ response: !ruby/struct:VCR::Response
42
+ status: !ruby/struct:VCR::ResponseStatus
43
+ code: 200
44
+ message: OK
45
+ headers:
46
+ content-type:
47
+ - text/xml
48
+ content-length:
49
+ - "194"
50
+ date:
51
+ - Wed, 01 Jun 2011 17:39:13 GMT
52
+ connection:
53
+ - keep-alive
54
+ body: <?xml version="1.0" ?><AllocateAddressResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>NL9IZW7N9PSB9IEEROUA</requestId><publicIp>69.1.1.2</publicIp></AllocateAddressResponse>
55
+ http_version: "1.1"
56
+ - !ruby/struct:VCR::HTTPInteraction
57
+ request: !ruby/struct:VCR::Request
58
+ method: :get
59
+ uri: http://10.3.170.35:8773/services/Cloud?AWSAccessKeyId=2ea76797-229c-4e52-a21b-f30513cb91a6%3Asandbox&Action=RunInstances&ImageId=ami-00000002&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&Version=2010-11-15&Signature=tPz8K7mYsXFNuGeGmQCf3JFCOWsQ5iGKP%2B4CU1PUoOI%3D
60
+ body:
61
+ headers:
62
+ accept:
63
+ - application/xml
64
+ connection:
65
+ - keep-alive
66
+ keep-alive:
67
+ - 30
68
+ response: !ruby/struct:VCR::Response
69
+ status: !ruby/struct:VCR::ResponseStatus
70
+ code: 200
71
+ message: OK
72
+ headers:
73
+ content-type:
74
+ - text/xml
75
+ content-length:
76
+ - "839"
77
+ date:
78
+ - Wed, 01 Jun 2011 17:39:13 GMT
79
+ connection:
80
+ - keep-alive
81
+ body: <?xml version="1.0" ?><RunInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>FF3O1WG6U8P1BNXUK-6H</requestId><ownerId>sandbox</ownerId><groupSet><item><groupId>default</groupId></item></groupSet><reservationId>r-1wbc2eb0</reservationId><instancesSet><item><displayDescription/><displayName>Server 115</displayName><keyName>None (sandbox, None)</keyName><instanceId>i-00000073</instanceId><instanceState><code>0</code><name>scheduling</name></instanceState><publicDnsName/><imageId>ami-00000002</imageId><productCodesSet/><privateDnsName/><dnsName/><launchTime>2011-06-01T17:39:13Z</launchTime><amiLaunchIndex>0</amiLaunchIndex><placement><availabilityZone>unknown zone</availabilityZone></placement><ipAddress/><instanceType>m1.small</instanceType><privateIpAddress/></item></instancesSet></RunInstancesResponse>
82
+ http_version: "1.1"
83
+ - !ruby/struct:VCR::HTTPInteraction
84
+ request: !ruby/struct:VCR::Request
85
+ method: :get
86
+ uri: http://10.3.170.35:8773/services/Cloud?AWSAccessKeyId=2ea76797-229c-4e52-a21b-f30513cb91a6%3Asandbox&Action=AssociateAddress&InstanceId=i-00000073&PublicIp=69.1.1.1&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&Version=2010-11-15&Signature=R1TQcGdGxJLODiwFfQ3dE%2BIhVsoH6LWjm%2Bk%2B3EJ3BYE%3D
87
+ body:
88
+ headers:
89
+ accept:
90
+ - application/xml
91
+ connection:
92
+ - keep-alive
93
+ keep-alive:
94
+ - 30
95
+ response: !ruby/struct:VCR::Response
96
+ status: !ruby/struct:VCR::ResponseStatus
97
+ code: 200
98
+ message: OK
99
+ headers:
100
+ content-type:
101
+ - text/xml
102
+ content-length:
103
+ - "238"
104
+ date:
105
+ - Wed, 01 Jun 2011 17:39:19 GMT
106
+ connection:
107
+ - keep-alive
108
+ body: <?xml version="1.0" ?><AssociateAddressResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>EKI9-28Q2CLPMH4JAXPF</requestId><associateResponse><item>Address associated.</item></associateResponse></AssociateAddressResponse>
109
+ http_version: "1.1"
110
+ - !ruby/struct:VCR::HTTPInteraction
111
+ request: !ruby/struct:VCR::Request
112
+ method: :get
113
+ uri: http://10.3.170.35:8773/services/Cloud?AWSAccessKeyId=2ea76797-229c-4e52-a21b-f30513cb91a6%3Asandbox&Action=DescribeAddresses&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&Version=2010-11-15&Signature=nHB%2BoHPbNrN7HM6UELiJzslN1e9Nv3svB%2BrIMSQnE6U%3D
114
+ body:
115
+ headers:
116
+ accept:
117
+ - application/xml
118
+ connection:
119
+ - keep-alive
120
+ keep-alive:
121
+ - 30
122
+ response: !ruby/struct:VCR::Response
123
+ status: !ruby/struct:VCR::ResponseStatus
124
+ code: 200
125
+ message: OK
126
+ headers:
127
+ content-type:
128
+ - text/xml
129
+ content-length:
130
+ - "712"
131
+ date:
132
+ - Wed, 01 Jun 2011 17:39:19 GMT
133
+ connection:
134
+ - keep-alive
135
+ body: <?xml version="1.0" ?><DescribeAddressesResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>7WP4812HYUX49G5P0BMG</requestId><addressesSet><item><publicIp>10.3.170.137</publicIp><instanceId>None (sandbox)</instanceId></item><item><publicIp>10.3.170.138</publicIp><instanceId>None (sandbox)</instanceId></item><item><publicIp>10.3.170.139</publicIp><instanceId>None (sandbox)</instanceId></item><item><publicIp>10.3.170.140</publicIp><instanceId>i-00000072 (sandbox)</instanceId></item><item><publicIp>69.1.1.1</publicIp><instanceId>i-00000073 (sandbox)</instanceId></item><item><publicIp>69.1.1.2</publicIp><instanceId>None (sandbox)</instanceId></item></addressesSet></DescribeAddressesResponse>
136
+ http_version: "1.1"
137
+ - !ruby/struct:VCR::HTTPInteraction
138
+ request: !ruby/struct:VCR::Request
139
+ method: :get
140
+ uri: http://10.3.170.35:8773/services/Cloud?AWSAccessKeyId=2ea76797-229c-4e52-a21b-f30513cb91a6%3Asandbox&Action=DisassociateAddress&PublicIp=69.1.1.1&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&Version=2010-11-15&Signature=05XOTLVuYVdBW7I%2BZyB5Fkcox0h6YX%2BBH2wD9Arz4mg%3D
141
+ body:
142
+ headers:
143
+ accept:
144
+ - application/xml
145
+ connection:
146
+ - keep-alive
147
+ keep-alive:
148
+ - 30
149
+ response: !ruby/struct:VCR::Response
150
+ status: !ruby/struct:VCR::ResponseStatus
151
+ code: 200
152
+ message: OK
153
+ headers:
154
+ content-type:
155
+ - text/xml
156
+ content-length:
157
+ - "253"
158
+ date:
159
+ - Wed, 01 Jun 2011 17:39:19 GMT
160
+ connection:
161
+ - keep-alive
162
+ body: <?xml version="1.0" ?><DisassociateAddressResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>ZVEIY5OKSZ0B95320A-H</requestId><disassociateResponse><item>Address disassociated.</item></disassociateResponse></DisassociateAddressResponse>
163
+ http_version: "1.1"
164
+ - !ruby/struct:VCR::HTTPInteraction
165
+ request: !ruby/struct:VCR::Request
166
+ method: :get
167
+ uri: http://10.3.170.35:8773/services/Cloud?AWSAccessKeyId=2ea76797-229c-4e52-a21b-f30513cb91a6%3Asandbox&Action=TerminateInstances&InstanceId.1=i-00000073&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&Version=2010-11-15&Signature=0%2FpuANVxdo1xgI3YincObShzJlEJ8p8fObL1wR2H1kE%3D
168
+ body:
169
+ headers:
170
+ accept:
171
+ - application/xml
172
+ connection:
173
+ - keep-alive
174
+ keep-alive:
175
+ - 30
176
+ response: !ruby/struct:VCR::Response
177
+ status: !ruby/struct:VCR::ResponseStatus
178
+ code: 200
179
+ message: OK
180
+ headers:
181
+ content-type:
182
+ - text/xml
183
+ content-length:
184
+ - "192"
185
+ date:
186
+ - Wed, 01 Jun 2011 17:39:19 GMT
187
+ connection:
188
+ - keep-alive
189
+ body: <?xml version="1.0" ?><TerminateInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>P5TYDNCTOFIB7S2PV1J0</requestId><return>true</return></TerminateInstancesResponse>
190
+ http_version: "1.1"
191
+ - !ruby/struct:VCR::HTTPInteraction
192
+ request: !ruby/struct:VCR::Request
193
+ method: :get
194
+ uri: http://10.3.170.35:8773/services/Cloud?AWSAccessKeyId=2ea76797-229c-4e52-a21b-f30513cb91a6%3Asandbox&Action=ReleaseAddress&PublicIp=69.1.1.1&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&Version=2010-11-15&Signature=lQpO7lKIr7pdJWi7J%2FWS3T6e6X%2FYjVixw2qaK%2FJyS30%3D
195
+ body:
196
+ headers:
197
+ accept:
198
+ - application/xml
199
+ connection:
200
+ - keep-alive
201
+ keep-alive:
202
+ - 30
203
+ response: !ruby/struct:VCR::Response
204
+ status: !ruby/struct:VCR::ResponseStatus
205
+ code: 200
206
+ message: OK
207
+ headers:
208
+ content-type:
209
+ - text/xml
210
+ content-length:
211
+ - "228"
212
+ date:
213
+ - Wed, 01 Jun 2011 17:39:20 GMT
214
+ connection:
215
+ - keep-alive
216
+ body: <?xml version="1.0" ?><ReleaseAddressResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>SQWB8DF5FNYRHU26NIK9</requestId><releaseResponse><item>Address released.</item></releaseResponse></ReleaseAddressResponse>
217
+ http_version: "1.1"
218
+ - !ruby/struct:VCR::HTTPInteraction
219
+ request: !ruby/struct:VCR::Request
220
+ method: :get
221
+ uri: http://10.3.170.35:8773/services/Cloud?AWSAccessKeyId=2ea76797-229c-4e52-a21b-f30513cb91a6%3Asandbox&Action=ReleaseAddress&PublicIp=69.1.1.2&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&Version=2010-11-15&Signature=QXzXhCXy0oO9oXpYydbLiWbWPPQCkVVOXpbm3WqAKwQ%3D
222
+ body:
223
+ headers:
224
+ accept:
225
+ - application/xml
226
+ connection:
227
+ - keep-alive
228
+ keep-alive:
229
+ - 30
230
+ response: !ruby/struct:VCR::Response
231
+ status: !ruby/struct:VCR::ResponseStatus
232
+ code: 200
233
+ message: OK
234
+ headers:
235
+ content-type:
236
+ - text/xml
237
+ content-length:
238
+ - "228"
239
+ date:
240
+ - Wed, 01 Jun 2011 17:39:20 GMT
241
+ connection:
242
+ - keep-alive
243
+ body: <?xml version="1.0" ?><ReleaseAddressResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>LRRFLVSDUHTBKV5BSTX-</requestId><releaseResponse><item>Address released.</item></releaseResponse></ReleaseAddressResponse>
244
+ http_version: "1.1"
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :get
5
- uri: http://10.1.170.32:8773/services/Cloud?AWSAccessKeyId=9dd4add8-ca15-42fd-8874-9a3d294ba459%3Avcr_project&Action=DescribeInstances&InstanceId.1=i-000004a5&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&Version=2010-11-15&Signature=mCLNn5T4y9i45dlgJS25XrAW2rBupwjGVEstJusKYxg%3D
5
+ uri: http://10.3.170.35:8773/services/Cloud?AWSAccessKeyId=beeb1bd0-c920-4352-b078-5f297a0899a0%3Asandbox&Action=RunInstances&ImageId=ami-00000002&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&Version=2010-11-15&Signature=YZ%2BWBhONSOtL7dR%2BMTsrRArmQR2AjeoxOvC%2BH%2Fw%2F5Ac%3D
6
6
  body:
7
7
  headers:
8
8
  accept:
@@ -13,23 +13,35 @@
13
13
  - 30
14
14
  response: !ruby/struct:VCR::Response
15
15
  status: !ruby/struct:VCR::ResponseStatus
16
- code: 200
17
- message: OK
16
+ code: 403
17
+ message: Forbidden
18
18
  headers:
19
19
  content-type:
20
- - text/xml
20
+ - text/html; charset=UTF-8
21
21
  content-length:
22
- - "831"
22
+ - "157"
23
23
  date:
24
- - Tue, 15 Mar 2011 07:09:51 GMT
24
+ - Fri, 03 Jun 2011 20:51:41 GMT
25
25
  connection:
26
26
  - keep-alive
27
- body: <?xml version="1.0" ?><DescribeInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>SODBE4BHSR3R434BVD8F</requestId><reservationSet><item><ownerId>vcr_project</ownerId><groupSet><item><groupId>default</groupId></item></groupSet><reservationId>r-x90t5kkp</reservationId><instancesSet><item><displayDescription/><displayName>Server 1189</displayName><keyName/><instanceId>i-000004a5</instanceId><instanceState><code>0</code><name>networking</name></instanceState><publicDnsName/><imageId>ami-usc3oydl</imageId><productCodesSet/><privateDnsName/><dnsName/><launchTime>2011-03-15 07:05:27</launchTime><placement><availabilityZone>nova</availabilityZone></placement><amiLaunchIndex>0</amiLaunchIndex><instanceType>m1.small</instanceType></item></instancesSet></item></reservationSet></DescribeInstancesResponse>
27
+ body: |-
28
+ <html>
29
+ <head>
30
+ <title>403 Forbidden</title>
31
+ </head>
32
+ <body>
33
+ <h1>403 Forbidden</h1>
34
+ Access was denied to this resource.<br /><br />
35
+
36
+
37
+
38
+ </body>
39
+ </html>
28
40
  http_version: "1.1"
29
41
  - !ruby/struct:VCR::HTTPInteraction
30
42
  request: !ruby/struct:VCR::Request
31
43
  method: :get
32
- uri: http://10.3.170.32:8773/services/Cloud?AWSAccessKeyId=beeb1bd0-c920-4352-b078-5f297a0899a0%3Asandbox&Action=RunInstances&ImageId=ami-00000002&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&Version=2010-11-15&Signature=dvPNbClu44bc4nKLl6ikjJ98zeok9OZmuXEZVhi4XJE%3D
44
+ uri: http://10.3.170.35:8773/services/Cloud?AWSAccessKeyId=2ea76797-229c-4e52-a21b-f30513cb91a6%3Asandbox&Action=RunInstances&ImageId=ami-00000002&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&Version=2010-11-15&Signature=tPz8K7mYsXFNuGeGmQCf3JFCOWsQ5iGKP%2B4CU1PUoOI%3D
33
45
  body:
34
46
  headers:
35
47
  accept:
@@ -46,17 +58,17 @@
46
58
  content-type:
47
59
  - text/xml
48
60
  content-length:
49
- - "779"
61
+ - "839"
50
62
  date:
51
- - Wed, 20 Apr 2011 00:21:41 GMT
63
+ - Fri, 03 Jun 2011 20:52:17 GMT
52
64
  connection:
53
65
  - keep-alive
54
- body: <?xml version="1.0" ?><RunInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>C1C4JTM9HQLHY-07F0LK</requestId><ownerId>sandbox</ownerId><groupSet><item><groupId>default</groupId></item></groupSet><reservationId>r-628v5if0</reservationId><instancesSet><item><displayDescription/><displayName>Server 237</displayName><keyName/><instanceId>i-000000ed</instanceId><instanceState><code>0</code><name>scheduling</name></instanceState><publicDnsName/><imageId>ami-00000002</imageId><productCodesSet/><privateDnsName/><dnsName/><launchTime>2011-04-20T00:21:41Z</launchTime><placement><availabilityZone>unknown zone</availabilityZone></placement><amiLaunchIndex>0</amiLaunchIndex><instanceType>m1.small</instanceType></item></instancesSet></RunInstancesResponse>
66
+ body: <?xml version="1.0" ?><RunInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>V7XBXFB08YB-L7K3XHOV</requestId><ownerId>sandbox</ownerId><groupSet><item><groupId>default</groupId></item></groupSet><reservationId>r-8pcpvo4r</reservationId><instancesSet><item><displayDescription/><displayName>Server 151</displayName><keyName>None (sandbox, None)</keyName><instanceId>i-00000097</instanceId><instanceState><code>0</code><name>scheduling</name></instanceState><publicDnsName/><imageId>ami-00000002</imageId><productCodesSet/><privateDnsName/><dnsName/><launchTime>2011-06-03T20:52:17Z</launchTime><amiLaunchIndex>0</amiLaunchIndex><placement><availabilityZone>unknown zone</availabilityZone></placement><ipAddress/><instanceType>m1.small</instanceType><privateIpAddress/></item></instancesSet></RunInstancesResponse>
55
67
  http_version: "1.1"
56
68
  - !ruby/struct:VCR::HTTPInteraction
57
69
  request: !ruby/struct:VCR::Request
58
70
  method: :get
59
- uri: http://10.3.170.32:8773/services/Cloud?AWSAccessKeyId=beeb1bd0-c920-4352-b078-5f297a0899a0%3Asandbox&Action=DescribeInstances&InstanceId.1=i-000000ed&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&Version=2010-11-15&Signature=jrjFZCXmyowXw%2B2k7h8wH3qyk0BQVU8n%2B2TWNK3HV6g%3D
71
+ uri: http://10.3.170.35:8773/services/Cloud?AWSAccessKeyId=2ea76797-229c-4e52-a21b-f30513cb91a6%3Asandbox&Action=DescribeInstances&InstanceId.1=i-00000097&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&Version=2010-11-15&Signature=LcEu2sZi8Vzao%2FlK1dglfCYfQem9vyWGyfwDG02o1ds%3D
60
72
  body:
61
73
  headers:
62
74
  accept:
@@ -73,17 +85,17 @@
73
85
  content-type:
74
86
  - text/xml
75
87
  content-length:
76
- - "835"
88
+ - "990"
77
89
  date:
78
- - Wed, 20 Apr 2011 00:21:41 GMT
90
+ - Fri, 03 Jun 2011 20:52:18 GMT
79
91
  connection:
80
92
  - keep-alive
81
- body: <?xml version="1.0" ?><DescribeInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>D865OBZP32T1956VCWOL</requestId><reservationSet><item><ownerId>sandbox</ownerId><groupSet><item><groupId>default</groupId></item></groupSet><reservationId>r-628v5if0</reservationId><instancesSet><item><displayDescription/><displayName>Server 237</displayName><keyName/><instanceId>i-000000ed</instanceId><instanceState><code>0</code><name>scheduling</name></instanceState><publicDnsName/><imageId>ami-00000002</imageId><productCodesSet/><privateDnsName/><dnsName/><launchTime>2011-04-20T00:21:41Z</launchTime><placement><availabilityZone>unknown zone</availabilityZone></placement><amiLaunchIndex>0</amiLaunchIndex><instanceType>m1.small</instanceType></item></instancesSet></item></reservationSet></DescribeInstancesResponse>
93
+ body: <?xml version="1.0" ?><DescribeInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>MDV1CRILYI-WOZRJEA9K</requestId><reservationSet><item><ownerId>sandbox</ownerId><groupSet><item><groupId>default</groupId></item></groupSet><reservationId>r-8pcpvo4r</reservationId><instancesSet><item><displayDescription/><displayName>Server 151</displayName><keyName>None (sandbox, cc-02)</keyName><instanceId>i-00000097</instanceId><instanceState><code>0</code><name>networking</name></instanceState><publicDnsName/><imageId>ami-00000002</imageId><productCodesSet/><privateDnsName>10.3.174.132</privateDnsName><dnsName>10.3.174.132</dnsName><launchTime>2011-06-03T20:52:17Z</launchTime><amiLaunchIndex>0</amiLaunchIndex><placement><availabilityZone>nova</availabilityZone></placement><ipAddress>10.3.174.132</ipAddress><instanceType>m1.small</instanceType><privateIpAddress>10.3.174.132</privateIpAddress></item></instancesSet></item></reservationSet></DescribeInstancesResponse>
82
94
  http_version: "1.1"
83
95
  - !ruby/struct:VCR::HTTPInteraction
84
96
  request: !ruby/struct:VCR::Request
85
97
  method: :get
86
- uri: http://10.3.170.32:8773/services/Cloud?AWSAccessKeyId=beeb1bd0-c920-4352-b078-5f297a0899a0%3Asandbox&Action=TerminateInstances&InstanceId.1=i-000000ed&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&Version=2010-11-15&Signature=B7PsAumCf9ZOpZGOyh8OS8YyKaaAqmsj7xjmDgdt%2FRY%3D
98
+ uri: http://10.3.170.35:8773/services/Cloud?AWSAccessKeyId=2ea76797-229c-4e52-a21b-f30513cb91a6%3Asandbox&Action=TerminateInstances&InstanceId.1=i-00000097&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&Version=2010-11-15&Signature=6U%2FaZeQqsS%2Buc2cT77dl0LhTVNFj6%2FakdcTEIrz%2BrL4%3D
87
99
  body:
88
100
  headers:
89
101
  accept:
@@ -102,8 +114,8 @@
102
114
  content-length:
103
115
  - "192"
104
116
  date:
105
- - Wed, 20 Apr 2011 00:21:42 GMT
117
+ - Fri, 03 Jun 2011 20:52:18 GMT
106
118
  connection:
107
119
  - keep-alive
108
- body: <?xml version="1.0" ?><TerminateInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>PSPM06NVDVP6D0YG68JI</requestId><return>true</return></TerminateInstancesResponse>
120
+ body: <?xml version="1.0" ?><TerminateInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>ZKRQZ4OJ9YPE06EEL7Y8</requestId><return>true</return></TerminateInstancesResponse>
109
121
  http_version: "1.1"
@@ -0,0 +1,82 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://10.3.170.35:8773/services/Cloud?AWSAccessKeyId=2ea76797-229c-4e52-a21b-f30513cb91a6%3Asandbox&Action=ImportPublicKey&KeyName=dummy&PublicKey=ssh-dss%20AAAAB3NzaC1kc3MAAACBAMGJlY9XEIm2X234pdO5yFWMp2JuOQx8U0E815IVXhmKxYCBK9ZakgZOIQmPbXoGYyV%2BmziDPp6HJ0wKYLQxkwLEFr51fAZjWQvRss0SinURRuLkockDfGFtD4pYJthekr%2FrlqMKlBSDUSpGq8jUWW60UJ18FGooFpxR7ESqQRx%2FAAAAFQC96LRglaUeeP%2BE8U%2FyblEJocuiWwAAAIA3XiMR8Skiz%2F0aBm5K50SeQznQuMJTyzt9S9uaz5QZWiFu69hOyGSFGw8fqgxEkXFJIuHobQQpGYQubLW0NdaYRqyE%2FVud3JUJUb8Texld6dz8vGemyB5d1YvtSeHIo8%2FBGv2msOqR3u5AZTaGCBD9DhpSGOKHEdNjTtvpPd8S8gAAAIBociGZ5jf09iHLVENhyXujJbxfGRPsyNTyARJfCOGl0oFV6hEzcQyw8U%2FePwjgvjc2UizMWLl8tsb2FXKHRdc2v%2BND3Us%2BXqKQ33X3ADP4FZ%2F%2BOj213gMyhCmvFTP0u5FmHog9My4CB7YcIWRuUR42WlhQ2IfPvKwUoTk3R%2BT6Og%3D%3D%20www-data%40mk&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&Version=2010-11-15&Signature=jVDj9uiUum%2BibmW85KtD7O9ix6uDi3Xsi451cOZYdlM%3D
6
+ body:
7
+ headers:
8
+ accept:
9
+ - application/xml
10
+ connection:
11
+ - keep-alive
12
+ keep-alive:
13
+ - 30
14
+ response: !ruby/struct:VCR::Response
15
+ status: !ruby/struct:VCR::ResponseStatus
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ content-type:
20
+ - text/xml
21
+ content-length:
22
+ - "186"
23
+ date:
24
+ - Tue, 07 Jun 2011 20:52:02 GMT
25
+ connection:
26
+ - keep-alive
27
+ body: <?xml version="1.0" ?><ImportPublicKeyResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>8W1LMU0Q6TB8TJFP11I7</requestId><return>true</return></ImportPublicKeyResponse>
28
+ http_version: "1.1"
29
+ - !ruby/struct:VCR::HTTPInteraction
30
+ request: !ruby/struct:VCR::Request
31
+ method: :get
32
+ uri: http://10.3.170.35:8773/services/Cloud?AWSAccessKeyId=2ea76797-229c-4e52-a21b-f30513cb91a6%3Asandbox&Action=DescribeKeyPairs&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&Version=2010-11-15&Signature=t5pPujLjJP5yEr2st2RYXjhjxis2u%2FGZ8YLrksfFrYQ%3D
33
+ body:
34
+ headers:
35
+ accept:
36
+ - application/xml
37
+ connection:
38
+ - keep-alive
39
+ keep-alive:
40
+ - 30
41
+ response: !ruby/struct:VCR::Response
42
+ status: !ruby/struct:VCR::ResponseStatus
43
+ code: 200
44
+ message: OK
45
+ headers:
46
+ content-type:
47
+ - text/xml
48
+ content-length:
49
+ - "422"
50
+ date:
51
+ - Tue, 07 Jun 2011 20:52:02 GMT
52
+ connection:
53
+ - keep-alive
54
+ body: <?xml version="1.0" ?><DescribeKeyPairsResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>AAJDZVJ1DGIZGNRSOWSF</requestId><keySet><item><keyName>kbringard</keyName><keyFingerprint>8e:38:7d:45:41:36:ee:99:e4:04:bb:0c:fb:15:94:94</keyFingerprint></item><item><keyName>dummy</keyName><keyFingerprint>1c:87:d1:d9:32:fd:62:3c:78:2b:c0:ad:c0:15:88:df</keyFingerprint></item></keySet></DescribeKeyPairsResponse>
55
+ http_version: "1.1"
56
+ - !ruby/struct:VCR::HTTPInteraction
57
+ request: !ruby/struct:VCR::Request
58
+ method: :get
59
+ uri: http://10.3.170.35:8773/services/Cloud?AWSAccessKeyId=2ea76797-229c-4e52-a21b-f30513cb91a6%3Asandbox&Action=DeleteKeyPair&KeyName=dummy&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&Version=2010-11-15&Signature=dCSVypU6cb9VBn2rwa6RKQJ9teQVHnmkvqQsYEG1vtY%3D
60
+ body:
61
+ headers:
62
+ accept:
63
+ - application/xml
64
+ connection:
65
+ - keep-alive
66
+ keep-alive:
67
+ - 30
68
+ response: !ruby/struct:VCR::Response
69
+ status: !ruby/struct:VCR::ResponseStatus
70
+ code: 200
71
+ message: OK
72
+ headers:
73
+ content-type:
74
+ - text/xml
75
+ content-length:
76
+ - "182"
77
+ date:
78
+ - Tue, 07 Jun 2011 20:52:03 GMT
79
+ connection:
80
+ - keep-alive
81
+ body: <?xml version="1.0" ?><DeleteKeyPairResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>VQMKYGC9QI6M1O27R504</requestId><return>true</return></DeleteKeyPairResponse>
82
+ http_version: "1.1"