knife-rackspace 0.6.2 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Rackspace
3
- VERSION = "0.6.2"
3
+ VERSION = "0.7.0"
4
4
  MAJOR, MINOR, TINY = VERSION.split('.')
5
5
  end
6
6
  end
@@ -0,0 +1,123 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://auth.api.rackspacecloud.com/v1.0
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - fog/1.11.1
12
+ X-Auth-Key:
13
+ - _RAX_PASSWORD_
14
+ X-Auth-User:
15
+ - _RAX_USERNAME_
16
+ response:
17
+ status:
18
+ code: 204
19
+ message:
20
+ headers:
21
+ Server:
22
+ - nginx/0.8.55
23
+ vary:
24
+ - Accept, Accept-Encoding, X-Auth-Token, X-Auth-Key, X-Storage-User, X-Storage-Pass,
25
+ X-Auth-User
26
+ X-Storage-Url:
27
+ - https://storage101.dfw1.clouddrive.com/v1/_CDN-TENANT-NAME_
28
+ Cache-Control:
29
+ - s-maxage=85673
30
+ X-Cloud-Auth:
31
+ - 'true'
32
+ Date:
33
+ - Thu, 06 Jun 2013 15:49:24 GMT
34
+ Front-End-Https:
35
+ - 'on'
36
+ X-Auth-Token: _ONE-TIME-TOKEN_
37
+ X-Storage-Token: _ONE-TIME-TOKEN_
38
+ X-Server-Management-Url:
39
+ - https://servers.api.rackspacecloud.com/v1.0/000000
40
+ VIA:
41
+ - 1.0 Repose (Repose/2.3.5)
42
+ X-Global-Auth:
43
+ - 'true'
44
+ Connection:
45
+ - keep-alive
46
+ X-CDN-Management-Url:
47
+ - https://cdn1.clouddrive.com/v1/_CDN-TENANT-NAME_
48
+ body:
49
+ encoding: UTF-8
50
+ string: ''
51
+ http_version:
52
+ recorded_at: Thu, 06 Jun 2013 15:49:23 GMT
53
+ - request:
54
+ method: get
55
+ uri: https://servers.api.rackspacecloud.com/v1.0/000000/images/detail.json
56
+ body:
57
+ encoding: US-ASCII
58
+ string: ''
59
+ headers:
60
+ User-Agent:
61
+ - fog/1.11.1
62
+ Content-Type:
63
+ - application/json
64
+ X-Auth-Token: _ONE-TIME-TOKEN_
65
+ response:
66
+ status:
67
+ code: 203
68
+ message:
69
+ headers:
70
+ Server:
71
+ - Apache-Coyote/1.1
72
+ vary:
73
+ - Accept, Accept-Encoding, X-Auth-Token
74
+ Last-Modified:
75
+ - Mon, 09 Jul 2012 17:15:23 GMT
76
+ X-PURGE-KEY:
77
+ - /000000/images
78
+ Cache-Control:
79
+ - s-maxage=1800
80
+ Content-Type:
81
+ - application/json
82
+ Content-Length:
83
+ - '2547'
84
+ Date:
85
+ - Thu, 06 Jun 2013 15:49:24 GMT
86
+ X-Varnish: _VARNISH-REQUEST-ID_
87
+ Age:
88
+ - '720'
89
+ Via:
90
+ - 1.1 varnish
91
+ Connection:
92
+ - keep-alive
93
+ body:
94
+ encoding: UTF-8
95
+ string: ! '{"images":[{"id":118,"status":"ACTIVE","updated":"2011-08-17T05:11:30-05:00","name":"CentOS
96
+ 6.0"},{"id":104,"status":"ACTIVE","updated":"2011-08-17T05:11:30-05:00","name":"Debian
97
+ 6 (Squeeze)"},{"id":125,"status":"ACTIVE","updated":"2012-05-03T07:21:06-05:00","name":"Ubuntu
98
+ 12.04 LTS"},{"id":107,"status":"ACTIVE","updated":"2012-04-24T10:48:08-05:00","name":"FreeBSD
99
+ 9.0"},{"id":24,"status":"ACTIVE","updated":"2010-01-26T12:07:04-06:00","name":"Windows
100
+ Server 2008 SP2 x64"},{"id":109,"status":"ACTIVE","updated":"2011-11-03T06:28:56-05:00","name":"openSUSE
101
+ 12"},{"id":127,"status":"ACTIVE","updated":"2012-07-09T12:15:23-05:00","name":"CentOS
102
+ 6.3"},{"id":85,"status":"ACTIVE","updated":"2010-01-26T12:07:17-06:00","name":"Windows
103
+ Server 2008 R2 x64"},{"id":110,"status":"ACTIVE","updated":"2011-08-17T05:11:30-05:00","name":"Red
104
+ Hat Enterprise Linux 5.5"},{"id":114,"status":"ACTIVE","updated":"2011-08-17T05:11:30-05:00","name":"CentOS
105
+ 5.6"},{"id":112,"status":"ACTIVE","updated":"2011-04-21T10:24:01-05:00","name":"Ubuntu
106
+ 10.04 LTS"},{"id":56,"status":"ACTIVE","updated":"2010-09-17T07:12:56-05:00","name":"Windows
107
+ Server 2008 SP2 x86 + SQL Server 2008 R2 Standard"},{"id":122,"status":"ACTIVE","updated":"2012-02-06T04:34:21-06:00","name":"CentOS
108
+ 6.2"},{"id":100,"status":"ACTIVE","updated":"2011-09-12T09:09:23-05:00","name":"Arch
109
+ 2012.08"},{"id":31,"status":"ACTIVE","updated":"2010-01-26T12:07:44-06:00","name":"Windows
110
+ Server 2008 SP2 x86"},{"id":91,"status":"ACTIVE","updated":"2012-04-24T16:44:01-05:00","name":"Windows
111
+ Server 2008 R2 x64 + SQL Server 2012 Standard"},{"id":111,"status":"ACTIVE","updated":"2011-09-12T10:53:12-05:00","name":"Red
112
+ Hat Enterprise Linux 6"},{"id":92,"status":"ACTIVE","updated":"2012-04-24T16:44:01-05:00","name":"Windows
113
+ Server 2008 R2 x64 + SQL Server 2012 Web"},{"id":57,"status":"ACTIVE","updated":"2010-09-17T07:16:25-05:00","name":"Windows
114
+ Server 2008 SP2 x64 + SQL Server 2008 R2 Standard"},{"id":120,"status":"ACTIVE","updated":"2012-01-03T04:39:05-06:00","name":"Fedora
115
+ 16"},{"id":86,"status":"ACTIVE","updated":"2010-09-17T07:19:20-05:00","name":"Windows
116
+ Server 2008 R2 x64 + SQL Server 2008 R2 Standard"},{"id":108,"status":"ACTIVE","updated":"2011-11-01T08:32:30-05:00","name":"Gentoo
117
+ 12.3"},{"id":126,"status":"ACTIVE","updated":"2012-05-29T17:11:45-05:00","name":"Fedora
118
+ 17"},{"id":121,"status":"ACTIVE","updated":"2012-05-04T10:51:28-05:00","name":"CentOS
119
+ 5.8"},{"id":89,"status":"ACTIVE","updated":"2011-10-04T08:39:34-05:00","name":"Windows
120
+ Server 2008 R2 x64 + SQL Server 2008 R2 Web"}]}'
121
+ http_version:
122
+ recorded_at: Thu, 06 Jun 2013 15:49:23 GMT
123
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,462 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://auth.api.rackspacecloud.com/v1.0
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - fog/1.11.1
12
+ X-Auth-Key:
13
+ - _RAX_PASSWORD_
14
+ X-Auth-User:
15
+ - _RAX_USERNAME_
16
+ response:
17
+ status:
18
+ code: 204
19
+ message:
20
+ headers:
21
+ Server:
22
+ - nginx/0.8.55
23
+ vary:
24
+ - Accept, Accept-Encoding, X-Auth-Token, X-Auth-Key, X-Storage-User, X-Storage-Pass,
25
+ X-Auth-User
26
+ X-Storage-Url:
27
+ - https://storage101.dfw1.clouddrive.com/v1/_CDN-TENANT-NAME_
28
+ Cache-Control:
29
+ - s-maxage=85674
30
+ X-Cloud-Auth:
31
+ - 'true'
32
+ Date:
33
+ - Thu, 06 Jun 2013 15:49:22 GMT
34
+ Front-End-Https:
35
+ - 'on'
36
+ X-Auth-Token: _ONE-TIME-TOKEN_
37
+ X-Storage-Token: _ONE-TIME-TOKEN_
38
+ X-Server-Management-Url:
39
+ - https://servers.api.rackspacecloud.com/v1.0/000000
40
+ VIA:
41
+ - 1.0 Repose (Repose/2.3.5)
42
+ X-Global-Auth:
43
+ - 'true'
44
+ Connection:
45
+ - keep-alive
46
+ X-CDN-Management-Url:
47
+ - https://cdn1.clouddrive.com/v1/_CDN-TENANT-NAME_
48
+ body:
49
+ encoding: UTF-8
50
+ string: ''
51
+ http_version:
52
+ recorded_at: Thu, 06 Jun 2013 15:49:22 GMT
53
+ - request:
54
+ method: get
55
+ uri: https://servers.api.rackspacecloud.com/v1.0/000000/flavors/detail.json
56
+ body:
57
+ encoding: US-ASCII
58
+ string: ''
59
+ headers:
60
+ User-Agent:
61
+ - fog/1.11.1
62
+ Content-Type:
63
+ - application/json
64
+ X-Auth-Token: _ONE-TIME-TOKEN_
65
+ response:
66
+ status:
67
+ code: 203
68
+ message:
69
+ headers:
70
+ Server:
71
+ - Apache-Coyote/1.1
72
+ vary:
73
+ - Accept, Accept-Encoding, X-Auth-Token
74
+ Last-Modified:
75
+ - Tue, 06 Dec 2011 17:31:55 GMT
76
+ X-PURGE-KEY:
77
+ - /flavors
78
+ Cache-Control:
79
+ - s-maxage=1800
80
+ Content-Type:
81
+ - application/json
82
+ Content-Length:
83
+ - '422'
84
+ Date:
85
+ - Thu, 06 Jun 2013 15:49:22 GMT
86
+ X-Varnish: _VARNISH-REQUEST-ID_
87
+ Age:
88
+ - '708'
89
+ Via:
90
+ - 1.1 varnish
91
+ Connection:
92
+ - keep-alive
93
+ body:
94
+ encoding: UTF-8
95
+ string: ! '{"flavors":[{"id":1,"ram":256,"disk":10,"name":"256 server"},{"id":2,"ram":512,"disk":20,"name":"512
96
+ server"},{"id":3,"ram":1024,"disk":40,"name":"1GB server"},{"id":4,"ram":2048,"disk":80,"name":"2GB
97
+ server"},{"id":5,"ram":4096,"disk":160,"name":"4GB server"},{"id":6,"ram":8192,"disk":320,"name":"8GB
98
+ server"},{"id":7,"ram":15872,"disk":620,"name":"15.5GB server"},{"id":8,"ram":30720,"disk":1200,"name":"30GB
99
+ server"}]}'
100
+ http_version:
101
+ recorded_at: Thu, 06 Jun 2013 15:49:22 GMT
102
+ - request:
103
+ method: get
104
+ uri: https://servers.api.rackspacecloud.com/v1.0/000000/flavors/1.json
105
+ body:
106
+ encoding: US-ASCII
107
+ string: ''
108
+ headers:
109
+ User-Agent:
110
+ - fog/1.11.1
111
+ Content-Type:
112
+ - application/json
113
+ X-Auth-Token: _ONE-TIME-TOKEN_
114
+ response:
115
+ status:
116
+ code: 203
117
+ message:
118
+ headers:
119
+ Server:
120
+ - Apache-Coyote/1.1
121
+ vary:
122
+ - Accept, Accept-Encoding, X-Auth-Token
123
+ Last-Modified:
124
+ - Wed, 19 Sep 2007 18:24:59 GMT
125
+ X-PURGE-KEY:
126
+ - /flavors
127
+ Cache-Control:
128
+ - s-maxage=1800
129
+ Content-Type:
130
+ - application/json
131
+ Content-Length:
132
+ - '59'
133
+ Date:
134
+ - Thu, 06 Jun 2013 15:49:23 GMT
135
+ X-Varnish: _VARNISH-REQUEST-ID_
136
+ Age:
137
+ - '708'
138
+ Via:
139
+ - 1.1 varnish
140
+ Connection:
141
+ - keep-alive
142
+ body:
143
+ encoding: UTF-8
144
+ string: ! '{"flavor":{"id":1,"ram":256,"disk":10,"name":"256 server"}}'
145
+ http_version:
146
+ recorded_at: Thu, 06 Jun 2013 15:49:22 GMT
147
+ - request:
148
+ method: get
149
+ uri: https://servers.api.rackspacecloud.com/v1.0/000000/flavors/2.json
150
+ body:
151
+ encoding: US-ASCII
152
+ string: ''
153
+ headers:
154
+ User-Agent:
155
+ - fog/1.11.1
156
+ Content-Type:
157
+ - application/json
158
+ X-Auth-Token: _ONE-TIME-TOKEN_
159
+ response:
160
+ status:
161
+ code: 203
162
+ message:
163
+ headers:
164
+ Server:
165
+ - Apache-Coyote/1.1
166
+ vary:
167
+ - Accept, Accept-Encoding, X-Auth-Token
168
+ Last-Modified:
169
+ - Wed, 19 Sep 2007 18:25:10 GMT
170
+ X-PURGE-KEY:
171
+ - /flavors
172
+ Cache-Control:
173
+ - s-maxage=1800
174
+ Content-Type:
175
+ - application/json
176
+ Content-Length:
177
+ - '59'
178
+ Date:
179
+ - Thu, 06 Jun 2013 15:49:23 GMT
180
+ X-Varnish: _VARNISH-REQUEST-ID_
181
+ Age:
182
+ - '724'
183
+ Via:
184
+ - 1.1 varnish
185
+ Connection:
186
+ - keep-alive
187
+ body:
188
+ encoding: UTF-8
189
+ string: ! '{"flavor":{"id":2,"ram":512,"disk":20,"name":"512 server"}}'
190
+ http_version:
191
+ recorded_at: Thu, 06 Jun 2013 15:49:22 GMT
192
+ - request:
193
+ method: get
194
+ uri: https://servers.api.rackspacecloud.com/v1.0/000000/flavors/3.json
195
+ body:
196
+ encoding: US-ASCII
197
+ string: ''
198
+ headers:
199
+ User-Agent:
200
+ - fog/1.11.1
201
+ Content-Type:
202
+ - application/json
203
+ X-Auth-Token: _ONE-TIME-TOKEN_
204
+ response:
205
+ status:
206
+ code: 203
207
+ message:
208
+ headers:
209
+ Server:
210
+ - Apache-Coyote/1.1
211
+ vary:
212
+ - Accept, Accept-Encoding, X-Auth-Token
213
+ Last-Modified:
214
+ - Fri, 21 Sep 2007 23:11:39 GMT
215
+ X-PURGE-KEY:
216
+ - /flavors
217
+ Cache-Control:
218
+ - s-maxage=1800
219
+ Content-Type:
220
+ - application/json
221
+ Content-Length:
222
+ - '60'
223
+ Date:
224
+ - Thu, 06 Jun 2013 15:49:23 GMT
225
+ X-Varnish: _VARNISH-REQUEST-ID_
226
+ Age:
227
+ - '708'
228
+ Via:
229
+ - 1.1 varnish
230
+ Connection:
231
+ - keep-alive
232
+ body:
233
+ encoding: UTF-8
234
+ string: ! '{"flavor":{"id":3,"ram":1024,"disk":40,"name":"1GB server"}}'
235
+ http_version:
236
+ recorded_at: Thu, 06 Jun 2013 15:49:22 GMT
237
+ - request:
238
+ method: get
239
+ uri: https://servers.api.rackspacecloud.com/v1.0/000000/flavors/4.json
240
+ body:
241
+ encoding: US-ASCII
242
+ string: ''
243
+ headers:
244
+ User-Agent:
245
+ - fog/1.11.1
246
+ Content-Type:
247
+ - application/json
248
+ X-Auth-Token: _ONE-TIME-TOKEN_
249
+ response:
250
+ status:
251
+ code: 203
252
+ message:
253
+ headers:
254
+ Server:
255
+ - Apache-Coyote/1.1
256
+ vary:
257
+ - Accept, Accept-Encoding, X-Auth-Token
258
+ Last-Modified:
259
+ - Wed, 19 Sep 2007 18:25:33 GMT
260
+ X-PURGE-KEY:
261
+ - /flavors
262
+ Cache-Control:
263
+ - s-maxage=1800
264
+ Content-Type:
265
+ - application/json
266
+ Content-Length:
267
+ - '60'
268
+ Date:
269
+ - Thu, 06 Jun 2013 15:49:23 GMT
270
+ X-Varnish: _VARNISH-REQUEST-ID_
271
+ Age:
272
+ - '10'
273
+ Via:
274
+ - 1.1 varnish
275
+ Connection:
276
+ - keep-alive
277
+ body:
278
+ encoding: UTF-8
279
+ string: ! '{"flavor":{"id":4,"ram":2048,"disk":80,"name":"2GB server"}}'
280
+ http_version:
281
+ recorded_at: Thu, 06 Jun 2013 15:49:22 GMT
282
+ - request:
283
+ method: get
284
+ uri: https://servers.api.rackspacecloud.com/v1.0/000000/flavors/5.json
285
+ body:
286
+ encoding: US-ASCII
287
+ string: ''
288
+ headers:
289
+ User-Agent:
290
+ - fog/1.11.1
291
+ Content-Type:
292
+ - application/json
293
+ X-Auth-Token: _ONE-TIME-TOKEN_
294
+ response:
295
+ status:
296
+ code: 200
297
+ message:
298
+ headers:
299
+ Server:
300
+ - Apache-Coyote/1.1
301
+ vary:
302
+ - Accept, Accept-Encoding, X-Auth-Token
303
+ Last-Modified:
304
+ - Tue, 18 Mar 2008 17:54:15 GMT
305
+ X-PURGE-KEY:
306
+ - /flavors
307
+ Cache-Control:
308
+ - s-maxage=1800
309
+ Content-Type:
310
+ - application/json
311
+ Content-Length:
312
+ - '61'
313
+ Date:
314
+ - Thu, 06 Jun 2013 15:49:23 GMT
315
+ X-Varnish: _VARNISH-REQUEST-ID_
316
+ Age:
317
+ - '0'
318
+ Via:
319
+ - 1.1 varnish
320
+ Connection:
321
+ - keep-alive
322
+ body:
323
+ encoding: UTF-8
324
+ string: ! '{"flavor":{"id":5,"ram":4096,"disk":160,"name":"4GB server"}}'
325
+ http_version:
326
+ recorded_at: Thu, 06 Jun 2013 15:49:22 GMT
327
+ - request:
328
+ method: get
329
+ uri: https://servers.api.rackspacecloud.com/v1.0/000000/flavors/6.json
330
+ body:
331
+ encoding: US-ASCII
332
+ string: ''
333
+ headers:
334
+ User-Agent:
335
+ - fog/1.11.1
336
+ Content-Type:
337
+ - application/json
338
+ X-Auth-Token: _ONE-TIME-TOKEN_
339
+ response:
340
+ status:
341
+ code: 200
342
+ message:
343
+ headers:
344
+ Server:
345
+ - Apache-Coyote/1.1
346
+ vary:
347
+ - Accept, Accept-Encoding, X-Auth-Token
348
+ Last-Modified:
349
+ - Mon, 28 Jan 2008 13:35:30 GMT
350
+ X-PURGE-KEY:
351
+ - /flavors
352
+ Cache-Control:
353
+ - s-maxage=1800
354
+ Content-Type:
355
+ - application/json
356
+ Content-Length:
357
+ - '61'
358
+ Date:
359
+ - Thu, 06 Jun 2013 15:49:23 GMT
360
+ X-Varnish: _VARNISH-REQUEST-ID_
361
+ Age:
362
+ - '0'
363
+ Via:
364
+ - 1.1 varnish
365
+ Connection:
366
+ - keep-alive
367
+ body:
368
+ encoding: UTF-8
369
+ string: ! '{"flavor":{"id":6,"ram":8192,"disk":320,"name":"8GB server"}}'
370
+ http_version:
371
+ recorded_at: Thu, 06 Jun 2013 15:49:23 GMT
372
+ - request:
373
+ method: get
374
+ uri: https://servers.api.rackspacecloud.com/v1.0/000000/flavors/7.json
375
+ body:
376
+ encoding: US-ASCII
377
+ string: ''
378
+ headers:
379
+ User-Agent:
380
+ - fog/1.11.1
381
+ Content-Type:
382
+ - application/json
383
+ X-Auth-Token: _ONE-TIME-TOKEN_
384
+ response:
385
+ status:
386
+ code: 203
387
+ message:
388
+ headers:
389
+ Server:
390
+ - Apache-Coyote/1.1
391
+ vary:
392
+ - Accept, Accept-Encoding, X-Auth-Token
393
+ Last-Modified:
394
+ - Fri, 01 Apr 2011 00:02:01 GMT
395
+ X-PURGE-KEY:
396
+ - /flavors
397
+ Cache-Control:
398
+ - s-maxage=1800
399
+ Content-Type:
400
+ - application/json
401
+ Content-Length:
402
+ - '65'
403
+ Date:
404
+ - Thu, 06 Jun 2013 15:49:23 GMT
405
+ X-Varnish: _VARNISH-REQUEST-ID_
406
+ Age:
407
+ - '721'
408
+ Via:
409
+ - 1.1 varnish
410
+ Connection:
411
+ - keep-alive
412
+ body:
413
+ encoding: UTF-8
414
+ string: ! '{"flavor":{"id":7,"ram":15872,"disk":620,"name":"15.5GB server"}}'
415
+ http_version:
416
+ recorded_at: Thu, 06 Jun 2013 15:49:23 GMT
417
+ - request:
418
+ method: get
419
+ uri: https://servers.api.rackspacecloud.com/v1.0/000000/flavors/8.json
420
+ body:
421
+ encoding: US-ASCII
422
+ string: ''
423
+ headers:
424
+ User-Agent:
425
+ - fog/1.11.1
426
+ Content-Type:
427
+ - application/json
428
+ X-Auth-Token: _ONE-TIME-TOKEN_
429
+ response:
430
+ status:
431
+ code: 203
432
+ message:
433
+ headers:
434
+ Server:
435
+ - Apache-Coyote/1.1
436
+ vary:
437
+ - Accept, Accept-Encoding, X-Auth-Token
438
+ Last-Modified:
439
+ - Tue, 06 Dec 2011 17:31:55 GMT
440
+ X-PURGE-KEY:
441
+ - /flavors
442
+ Cache-Control:
443
+ - s-maxage=1800
444
+ Content-Type:
445
+ - application/json
446
+ Content-Length:
447
+ - '64'
448
+ Date:
449
+ - Thu, 06 Jun 2013 15:49:23 GMT
450
+ X-Varnish: _VARNISH-REQUEST-ID_
451
+ Age:
452
+ - '10'
453
+ Via:
454
+ - 1.1 varnish
455
+ Connection:
456
+ - keep-alive
457
+ body:
458
+ encoding: UTF-8
459
+ string: ! '{"flavor":{"id":8,"ram":30720,"disk":1200,"name":"30GB server"}}'
460
+ http_version:
461
+ recorded_at: Thu, 06 Jun 2013 15:49:23 GMT
462
+ recorded_with: VCR 2.5.0