deltacloud-client-vm 1.1.4.2 → 1.1.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (191) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +176 -0
  3. data/NOTICE +8 -0
  4. data/README.md +73 -0
  5. data/Rakefile +122 -0
  6. data/deltacloud-client-vm.gemspec +24 -0
  7. data/lib/deltacloud_vm/client.rb +79 -0
  8. data/lib/deltacloud_vm/client/base_error.rb +80 -0
  9. data/lib/deltacloud_vm/client/connection.rb +139 -0
  10. data/lib/deltacloud_vm/client/helpers/model_helper.rb +69 -0
  11. data/lib/deltacloud_vm/client/helpers/property_helper.rb +103 -0
  12. data/lib/deltacloud_vm/client/helpers/xml_helper.rb +33 -0
  13. data/lib/deltacloud_vm/client/methods.rb +33 -0
  14. data/lib/deltacloud_vm/client/methods/address.rb +67 -0
  15. data/lib/deltacloud_vm/client/methods/api.rb +96 -0
  16. data/lib/deltacloud_vm/client/methods/backward_compatiblity.rb +72 -0
  17. data/lib/deltacloud_vm/client/methods/blob.rb +91 -0
  18. data/lib/deltacloud_vm/client/methods/bucket.rb +55 -0
  19. data/lib/deltacloud_vm/client/methods/common.rb +46 -0
  20. data/lib/deltacloud_vm/client/methods/driver.rb +53 -0
  21. data/lib/deltacloud_vm/client/methods/firewall.rb +67 -0
  22. data/lib/deltacloud_vm/client/methods/hardware_profile.rb +41 -0
  23. data/lib/deltacloud_vm/client/methods/image.rb +61 -0
  24. data/lib/deltacloud_vm/client/methods/instance.rb +141 -0
  25. data/lib/deltacloud_vm/client/methods/instance_state.rb +41 -0
  26. data/lib/deltacloud_vm/client/methods/key.rb +58 -0
  27. data/lib/deltacloud_vm/client/methods/load_balancer.rb +96 -0
  28. data/lib/deltacloud_vm/client/methods/metric.rb +54 -0
  29. data/lib/deltacloud_vm/client/methods/realm.rb +42 -0
  30. data/lib/deltacloud_vm/client/methods/storage_snapshot.rb +61 -0
  31. data/lib/deltacloud_vm/client/methods/storage_volume.rb +94 -0
  32. data/lib/deltacloud_vm/client/models.rb +32 -0
  33. data/lib/deltacloud_vm/client/models/address.rb +57 -0
  34. data/lib/deltacloud_vm/client/models/base.rb +153 -0
  35. data/lib/deltacloud_vm/client/models/blob.rb +56 -0
  36. data/lib/deltacloud_vm/client/models/bucket.rb +65 -0
  37. data/lib/deltacloud_vm/client/models/driver.rb +87 -0
  38. data/lib/deltacloud_vm/client/models/firewall.rb +64 -0
  39. data/lib/deltacloud_vm/client/models/hardware_profile.rb +68 -0
  40. data/lib/deltacloud_vm/client/models/image.rb +60 -0
  41. data/lib/deltacloud_vm/client/models/instance.rb +142 -0
  42. data/lib/deltacloud_vm/client/models/instance_address.rb +40 -0
  43. data/lib/deltacloud_vm/client/models/instance_state.rb +52 -0
  44. data/lib/deltacloud_vm/client/models/key.rb +52 -0
  45. data/lib/deltacloud_vm/client/models/load_balancer.rb +55 -0
  46. data/lib/deltacloud_vm/client/models/metric.rb +72 -0
  47. data/lib/deltacloud_vm/client/models/realm.rb +29 -0
  48. data/lib/deltacloud_vm/client/models/storage_snapshot.rb +54 -0
  49. data/lib/deltacloud_vm/client/models/storage_volume.rb +96 -0
  50. data/lib/deltacloud_vm/core_ext.rb +19 -0
  51. data/lib/deltacloud_vm/core_ext/element.rb +32 -0
  52. data/lib/deltacloud_vm/core_ext/fixnum.rb +30 -0
  53. data/lib/deltacloud_vm/core_ext/nil.rb +22 -0
  54. data/lib/deltacloud_vm/core_ext/string.rb +49 -0
  55. data/lib/deltacloud_vm/error_response.rb +93 -0
  56. data/tests/client/client_test.rb +51 -0
  57. data/tests/client/connection_test.rb +77 -0
  58. data/tests/core_ext/element_test.rb +40 -0
  59. data/tests/core_ext/fixnum_test.rb +35 -0
  60. data/tests/core_ext/nil.rb +27 -0
  61. data/tests/core_ext/string_test.rb +47 -0
  62. data/tests/fixtures/instances_cleanup.yml +681 -0
  63. data/tests/fixtures/test_0001_connects_to_Deltacloud_API.yml +60 -0
  64. data/tests/fixtures/test_0001_support_cpu.yml +444 -0
  65. data/tests/fixtures/test_0001_support_original_body.yml +116 -0
  66. data/tests/fixtures/test_0001_supports_addresses.yml +178 -0
  67. data/tests/fixtures/test_0001_supports_api_host.yml +60 -0
  68. data/tests/fixtures/test_0001_supports_attached_.yml +282 -0
  69. data/tests/fixtures/test_0001_supports_blobs.yml +475 -0
  70. data/tests/fixtures/test_0001_supports_bucket.yml +200 -0
  71. data/tests/fixtures/test_0001_supports_buckets.yml +160 -0
  72. data/tests/fixtures/test_0001_supports_drivers.yml +202 -0
  73. data/tests/fixtures/test_0001_supports_firewalls.yml +399 -0
  74. data/tests/fixtures/test_0001_supports_hardware_profiles.yml +262 -0
  75. data/tests/fixtures/test_0001_supports_images.yml +224 -0
  76. data/tests/fixtures/test_0001_supports_instance_states.yml +156 -0
  77. data/tests/fixtures/test_0001_supports_instances.yml +486 -0
  78. data/tests/fixtures/test_0001_supports_keys.yml +198 -0
  79. data/tests/fixtures/test_0001_supports_path.yml +60 -0
  80. data/tests/fixtures/test_0001_supports_realms.yml +152 -0
  81. data/tests/fixtures/test_0001_supports_storage_snapshots.yml +164 -0
  82. data/tests/fixtures/test_0001_supports_storage_volumes.yml +176 -0
  83. data/tests/fixtures/test_0001_supports_to_get_providers.yml +410 -0
  84. data/tests/fixtures/test_0002_support_blob.yml +148 -0
  85. data/tests/fixtures/test_0002_support_instance_state.yml +204 -0
  86. data/tests/fixtures/test_0002_support_memory.yml +444 -0
  87. data/tests/fixtures/test_0002_support_on_Provider.yml +130 -0
  88. data/tests/fixtures/test_0002_supports_api_port.yml +60 -0
  89. data/tests/fixtures/test_0002_supports_api_uri.yml +60 -0
  90. data/tests/fixtures/test_0002_supports_driver.yml +219 -0
  91. data/tests/fixtures/test_0002_supports_extract_xml_body_using_faraday_connection.yml +117 -0
  92. data/tests/fixtures/test_0002_supports_filtering_addresses_by_id_param.yml +156 -0
  93. data/tests/fixtures/test_0002_supports_filtering_buckets_by_id_param.yml +156 -0
  94. data/tests/fixtures/test_0002_supports_filtering_firewalls_by_id_param.yml +207 -0
  95. data/tests/fixtures/test_0002_supports_filtering_hardware_profiles_by_id_param.yml +158 -0
  96. data/tests/fixtures/test_0002_supports_filtering_images_by_id_param.yml +165 -0
  97. data/tests/fixtures/test_0002_supports_filtering_instances_by_id_param.yml +164 -0
  98. data/tests/fixtures/test_0002_supports_filtering_keys_by_id_param.yml +178 -0
  99. data/tests/fixtures/test_0002_supports_filtering_realms_by_id.yml +104 -0
  100. data/tests/fixtures/test_0002_supports_filtering_storage_snapshots_by_id_param.yml +155 -0
  101. data/tests/fixtures/test_0002_supports_filtering_storage_volumes_by_id_param.yml +157 -0
  102. data/tests/fixtures/test_0002_supports_hardware_profiles.yml +262 -0
  103. data/tests/fixtures/test_0002_supports_is_compatible_.yml +116 -0
  104. data/tests/fixtures/test_0002_supports_snapshot_.yml +202 -0
  105. data/tests/fixtures/test_0002_supports_version.yml +60 -0
  106. data/tests/fixtures/test_0003_caches_the_API_entrypoint.yml +60 -0
  107. data/tests/fixtures/test_0003_support_address.yml +197 -0
  108. data/tests/fixtures/test_0003_support_bucket.yml +198 -0
  109. data/tests/fixtures/test_0003_support_create_blob.yml +105 -0
  110. data/tests/fixtures/test_0003_support_create_blob_and_destroy_blob.yml +138 -0
  111. data/tests/fixtures/test_0003_support_firewall.yml +768 -0
  112. data/tests/fixtures/test_0003_support_hardware_profile.yml +199 -0
  113. data/tests/fixtures/test_0003_support_image.yml +207 -0
  114. data/tests/fixtures/test_0003_support_instance.yml +206 -0
  115. data/tests/fixtures/test_0003_support_key.yml +220 -0
  116. data/tests/fixtures/test_0003_support_realm.yml +195 -0
  117. data/tests/fixtures/test_0003_support_storage.yml +444 -0
  118. data/tests/fixtures/test_0003_support_storage_snapshot.yml +196 -0
  119. data/tests/fixtures/test_0003_support_storage_volume.yml +197 -0
  120. data/tests/fixtures/test_0003_support_to_change_driver_with_Client.yml +72 -0
  121. data/tests/fixtures/test_0003_supports_connect.yml +60 -0
  122. data/tests/fixtures/test_0003_supports_extract_xml_body_using_nokogiri_document.yml +117 -0
  123. data/tests/fixtures/test_0003_supports_instance.yml +396 -0
  124. data/tests/fixtures/test_0003_supports_is_compatible_.yml +116 -0
  125. data/tests/fixtures/test_0003_supports_lunch_image.yml +367 -0
  126. data/tests/fixtures/test_0003_supports_providers.yml +102 -0
  127. data/tests/fixtures/test_0003_supports_version.yml +60 -0
  128. data/tests/fixtures/test_0004_support_architecture.yml +444 -0
  129. data/tests/fixtures/test_0004_support_create_address.yml +197 -0
  130. data/tests/fixtures/test_0004_support_create_blob_and_destroy_blob_with_meta_params.yml +139 -0
  131. data/tests/fixtures/test_0004_support_create_bucket.yml +180 -0
  132. data/tests/fixtures/test_0004_support_create_bucket_and_destroy_bucket.yml +180 -0
  133. data/tests/fixtures/test_0004_support_create_firewall_and_destroy_firewall.yml +496 -0
  134. data/tests/fixtures/test_0004_support_create_image_and_destroy_image.yml +1527 -0
  135. data/tests/fixtures/test_0004_support_create_instance.yml +115 -0
  136. data/tests/fixtures/test_0004_support_create_key_and_destroy_key.yml +206 -0
  137. data/tests/fixtures/test_0004_support_create_volume.yml +105 -0
  138. data/tests/fixtures/test_0004_support_create_volume_and_destroy_volume.yml +181 -0
  139. data/tests/fixtures/test_0004_support_to_test_of_valid_DC_connection.yml +60 -0
  140. data/tests/fixtures/test_0004_supports_current_driver.yml +60 -0
  141. data/tests/fixtures/test_0004_supports_extract_xml_body_using_nokogiri_element.yml +117 -0
  142. data/tests/fixtures/test_0004_supports_lunch_image.yml +312 -0
  143. data/tests/fixtures/test_0004_supports_valid_credentials_.yml +215 -0
  144. data/tests/fixtures/test_0004_supports_with_config.yml +129 -0
  145. data/tests/fixtures/test_0005_support_attach_storage_volume.yml +102 -0
  146. data/tests/fixtures/test_0005_support_attach_storage_volume_and_detach_storage_volume.yml +142 -0
  147. data/tests/fixtures/test_0005_support_create_instance_with_hwp_id.yml +115 -0
  148. data/tests/fixtures/test_0005_support_opaque_.yml +152 -0
  149. data/tests/fixtures/test_0005_supports_current_provider.yml +134 -0
  150. data/tests/fixtures/test_0005_supports_id.yml +116 -0
  151. data/tests/fixtures/test_0005_supports_switching_drivers_per_instance.yml +129 -0
  152. data/tests/fixtures/test_0005_supports_use_driver.yml +60 -0
  153. data/tests/fixtures/test_0006_support_create_instance_with_realm_id.yml +115 -0
  154. data/tests/fixtures/test_0006_supports_discovered_.yml +60 -0
  155. data/tests/fixtures/test_0006_supports_supported_collections.yml +60 -0
  156. data/tests/fixtures/test_0006_supports_switching_providers_per_instance.yml +208 -0
  157. data/tests/fixtures/test_0007_support_create_instance_with_name.yml +115 -0
  158. data/tests/fixtures/test_0007_support_switching_provider_without_credentials.yml +208 -0
  159. data/tests/fixtures/test_0007_supports_support_.yml +60 -0
  160. data/tests/fixtures/test_0007_supports_valid_credentials_on_class.yml +370 -0
  161. data/tests/fixtures/test_0008_support_stop_instance.yml +166 -0
  162. data/tests/fixtures/test_0008_supports_must_support_.yml +60 -0
  163. data/tests/fixtures/test_0009_support_start_instance.yml +217 -0
  164. data/tests/fixtures/test_0009_supports_features.yml +60 -0
  165. data/tests/fixtures/test_0010_support_reboot_instance.yml +166 -0
  166. data/tests/fixtures/test_0010_supports_feature_.yml +60 -0
  167. data/tests/helpers/model_test.rb +33 -0
  168. data/tests/helpers/xml_test.rb +56 -0
  169. data/tests/methods/address_test.rb +64 -0
  170. data/tests/methods/api_test.rb +97 -0
  171. data/tests/methods/backward_compatibility_test.rb +87 -0
  172. data/tests/methods/blob_test.rb +64 -0
  173. data/tests/methods/bucket_test.rb +62 -0
  174. data/tests/methods/driver_test.rb +48 -0
  175. data/tests/methods/firewall_test.rb +84 -0
  176. data/tests/methods/hardware_profile_test.rb +53 -0
  177. data/tests/methods/image_test.rb +64 -0
  178. data/tests/methods/instance_state_test.rb +43 -0
  179. data/tests/methods/instance_test.rb +126 -0
  180. data/tests/methods/key_test.rb +63 -0
  181. data/tests/methods/realm_test.rb +50 -0
  182. data/tests/methods/storage_snapshot_test.rb +53 -0
  183. data/tests/methods/storage_volume_test.rb +81 -0
  184. data/tests/models/blob_test.rb +40 -0
  185. data/tests/models/bucket_test.rb +37 -0
  186. data/tests/models/driver_test.rb +42 -0
  187. data/tests/models/hardware_profile_test.rb +80 -0
  188. data/tests/models/image_test.rb +65 -0
  189. data/tests/models/storage_volume_test.rb +52 -0
  190. data/tests/test_helper.rb +64 -0
  191. metadata +191 -2
@@ -0,0 +1,224 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3001/api
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/xml
12
+ Authorization:
13
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
14
+ User-Agent:
15
+ - Faraday v0.8.6
16
+ response:
17
+ status:
18
+ code: 200
19
+ message:
20
+ headers:
21
+ content-type:
22
+ - application/xml
23
+ server:
24
+ - Apache-DeltacloudVM/1.1.1
25
+ x-deltacloud-driver:
26
+ - mock
27
+ content-length:
28
+ - '1368'
29
+ x-content-type-options:
30
+ - nosniff
31
+ etag:
32
+ - e43d25244dc2b8ce1da6fa91131507ee
33
+ cache-control:
34
+ - max-age=0, private, must-revalidate
35
+ date:
36
+ - Wed, 06 Mar 2013 08:56:17 GMT
37
+ connection:
38
+ - close
39
+ body:
40
+ encoding: US-ASCII
41
+ string: ! "<api driver='mock' version='1.1.1'>\n <link href='http://localhost:3001/api/instance_states'
42
+ rel='instance_states'>\n </link>\n <link href='http://localhost:3001/api/storage_volumes'
43
+ rel='storage_volumes'>\n </link>\n <link href='http://localhost:3001/api/metrics'
44
+ rel='metrics'>\n </link>\n <link href='http://localhost:3001/api/hardware_profiles'
45
+ rel='hardware_profiles'>\n </link>\n <link href='http://localhost:3001/api/instances'
46
+ rel='instances'>\n <feature name='metrics' rel='create'>\n <param
47
+ name='metrics' />\n </feature>\n <feature name='realm_filter' rel='index'>\n
48
+ \ <param name='realm_id' />\n </feature>\n <feature name='user_name'
49
+ rel='create'>\n <param name='name' />\n </feature>\n <feature name='authentication_key'
50
+ rel='create'>\n <param name='keyname' />\n </feature>\n </link>\n
51
+ \ <link href='http://localhost:3001/api/realms' rel='realms'>\n </link>\n
52
+ \ <link href='http://localhost:3001/api/storage_snapshots' rel='storage_snapshots'>\n
53
+ \ </link>\n <link href='http://localhost:3001/api/images' rel='images'>\n
54
+ \ </link>\n <link href='http://localhost:3001/api/addresses' rel='addresses'>\n
55
+ \ </link>\n <link href='http://localhost:3001/api/drivers' rel='drivers'>\n
56
+ \ </link>\n <link href='http://localhost:3001/api/buckets' rel='buckets'>\n
57
+ \ </link>\n <link href='http://localhost:3001/api/keys' rel='keys'>\n </link>\n</api>\n"
58
+ http_version:
59
+ recorded_at: Wed, 06 Mar 2013 08:56:17 GMT
60
+ - request:
61
+ method: get
62
+ uri: http://localhost:3001/api/images
63
+ body:
64
+ encoding: US-ASCII
65
+ string: ''
66
+ headers:
67
+ Accept:
68
+ - application/xml
69
+ Authorization:
70
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
71
+ User-Agent:
72
+ - Faraday v0.8.6
73
+ response:
74
+ status:
75
+ code: 200
76
+ message:
77
+ headers:
78
+ content-type:
79
+ - application/xml
80
+ x-backend-runtime:
81
+ - '0.0017576217651367188'
82
+ server:
83
+ - Apache-DeltacloudVM/1.1.1
84
+ x-deltacloud-driver:
85
+ - mock
86
+ content-length:
87
+ - '3625'
88
+ x-content-type-options:
89
+ - nosniff
90
+ etag:
91
+ - fb76b11edef9b2b39a729fe308f606d8
92
+ cache-control:
93
+ - max-age=0, private, must-revalidate
94
+ date:
95
+ - Wed, 06 Mar 2013 08:56:17 GMT
96
+ connection:
97
+ - close
98
+ body:
99
+ encoding: US-ASCII
100
+ string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<images>\n <image href='http://localhost:3001/api/images/img1'
101
+ id='img1'>\n <name>img1</name>\n <description>Fedora 10</description>\n
102
+ \ <owner_id>fedoraproject</owner_id>\n <architecture>x86_64</architecture>\n
103
+ \ <state>AVAILABLE</state>\n <creation_time>Thu Oct 25 14:27:53 CEST
104
+ 2012</creation_time>\n <hardware_profiles>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
105
+ id='m1-small' rel='hardware_profile'></hardware_profile>\n <hardware_profile
106
+ href='http://localhost:3001/api/hardware_profiles/m1-large' id='m1-large'
107
+ rel='hardware_profile'></hardware_profile>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-xlarge'
108
+ id='m1-xlarge' rel='hardware_profile'></hardware_profile>\n <hardware_profile
109
+ href='http://localhost:3001/api/hardware_profiles/opaque' id='opaque' rel='hardware_profile'></hardware_profile>\n
110
+ \ </hardware_profiles>\n <root_type>transient</root_type>\n <actions>\n
111
+ \ <link href='http://localhost:3001/api/instances;image_id=img1' method='post'
112
+ rel='create_instance' />\n <link href='http://localhost:3001/api/images/img1'
113
+ method='delete' rel='destroy_image' />\n </actions>\n </image>\n <image
114
+ href='http://localhost:3001/api/images/img2' id='img2'>\n <name>img2</name>\n
115
+ \ <description>Fedora 10</description>\n <owner_id>fedoraproject</owner_id>\n
116
+ \ <architecture>i386</architecture>\n <state>AVAILABLE</state>\n <creation_time>Thu
117
+ Oct 25 14:27:53 CEST 2012</creation_time>\n <hardware_profiles>\n <hardware_profile
118
+ href='http://localhost:3001/api/hardware_profiles/m1-small' id='m1-small'
119
+ rel='hardware_profile'></hardware_profile>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-large'
120
+ id='m1-large' rel='hardware_profile'></hardware_profile>\n <hardware_profile
121
+ href='http://localhost:3001/api/hardware_profiles/m1-xlarge' id='m1-xlarge'
122
+ rel='hardware_profile'></hardware_profile>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/opaque'
123
+ id='opaque' rel='hardware_profile'></hardware_profile>\n </hardware_profiles>\n
124
+ \ <root_type>transient</root_type>\n <actions>\n <link href='http://localhost:3001/api/instances;image_id=img2'
125
+ method='post' rel='create_instance' />\n <link href='http://localhost:3001/api/images/img2'
126
+ method='delete' rel='destroy_image' />\n </actions>\n </image>\n <image
127
+ href='http://localhost:3001/api/images/img3' id='img3'>\n <name>img3</name>\n
128
+ \ <description>JBoss</description>\n <owner_id>mockuser</owner_id>\n
129
+ \ <architecture>i386</architecture>\n <state>AVAILABLE</state>\n <creation_time>Thu
130
+ Oct 25 14:27:53 CEST 2012</creation_time>\n <hardware_profiles>\n <hardware_profile
131
+ href='http://localhost:3001/api/hardware_profiles/m1-small' id='m1-small'
132
+ rel='hardware_profile'></hardware_profile>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-large'
133
+ id='m1-large' rel='hardware_profile'></hardware_profile>\n <hardware_profile
134
+ href='http://localhost:3001/api/hardware_profiles/m1-xlarge' id='m1-xlarge'
135
+ rel='hardware_profile'></hardware_profile>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/opaque'
136
+ id='opaque' rel='hardware_profile'></hardware_profile>\n </hardware_profiles>\n
137
+ \ <root_type>transient</root_type>\n <actions>\n <link href='http://localhost:3001/api/instances;image_id=img3'
138
+ method='post' rel='create_instance' />\n <link href='http://localhost:3001/api/images/img3'
139
+ method='delete' rel='destroy_image' />\n </actions>\n </image>\n</images>\n"
140
+ http_version:
141
+ recorded_at: Wed, 06 Mar 2013 08:56:17 GMT
142
+ - request:
143
+ method: get
144
+ uri: http://localhost:3001/api/images
145
+ body:
146
+ encoding: US-ASCII
147
+ string: ''
148
+ headers:
149
+ Accept:
150
+ - application/xml
151
+ Authorization:
152
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
153
+ User-Agent:
154
+ - Faraday v0.8.6
155
+ response:
156
+ status:
157
+ code: 200
158
+ message:
159
+ headers:
160
+ content-type:
161
+ - application/xml
162
+ x-backend-runtime:
163
+ - '0.0018177032470703125'
164
+ server:
165
+ - Apache-DeltacloudVM/1.1.1
166
+ x-deltacloud-driver:
167
+ - mock
168
+ content-length:
169
+ - '3625'
170
+ x-content-type-options:
171
+ - nosniff
172
+ etag:
173
+ - fb76b11edef9b2b39a729fe308f606d8
174
+ cache-control:
175
+ - max-age=0, private, must-revalidate
176
+ date:
177
+ - Wed, 06 Mar 2013 08:56:17 GMT
178
+ connection:
179
+ - close
180
+ body:
181
+ encoding: US-ASCII
182
+ string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<images>\n <image href='http://localhost:3001/api/images/img1'
183
+ id='img1'>\n <name>img1</name>\n <description>Fedora 10</description>\n
184
+ \ <owner_id>fedoraproject</owner_id>\n <architecture>x86_64</architecture>\n
185
+ \ <state>AVAILABLE</state>\n <creation_time>Thu Oct 25 14:27:53 CEST
186
+ 2012</creation_time>\n <hardware_profiles>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
187
+ id='m1-small' rel='hardware_profile'></hardware_profile>\n <hardware_profile
188
+ href='http://localhost:3001/api/hardware_profiles/m1-large' id='m1-large'
189
+ rel='hardware_profile'></hardware_profile>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-xlarge'
190
+ id='m1-xlarge' rel='hardware_profile'></hardware_profile>\n <hardware_profile
191
+ href='http://localhost:3001/api/hardware_profiles/opaque' id='opaque' rel='hardware_profile'></hardware_profile>\n
192
+ \ </hardware_profiles>\n <root_type>transient</root_type>\n <actions>\n
193
+ \ <link href='http://localhost:3001/api/instances;image_id=img1' method='post'
194
+ rel='create_instance' />\n <link href='http://localhost:3001/api/images/img1'
195
+ method='delete' rel='destroy_image' />\n </actions>\n </image>\n <image
196
+ href='http://localhost:3001/api/images/img2' id='img2'>\n <name>img2</name>\n
197
+ \ <description>Fedora 10</description>\n <owner_id>fedoraproject</owner_id>\n
198
+ \ <architecture>i386</architecture>\n <state>AVAILABLE</state>\n <creation_time>Thu
199
+ Oct 25 14:27:53 CEST 2012</creation_time>\n <hardware_profiles>\n <hardware_profile
200
+ href='http://localhost:3001/api/hardware_profiles/m1-small' id='m1-small'
201
+ rel='hardware_profile'></hardware_profile>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-large'
202
+ id='m1-large' rel='hardware_profile'></hardware_profile>\n <hardware_profile
203
+ href='http://localhost:3001/api/hardware_profiles/m1-xlarge' id='m1-xlarge'
204
+ rel='hardware_profile'></hardware_profile>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/opaque'
205
+ id='opaque' rel='hardware_profile'></hardware_profile>\n </hardware_profiles>\n
206
+ \ <root_type>transient</root_type>\n <actions>\n <link href='http://localhost:3001/api/instances;image_id=img2'
207
+ method='post' rel='create_instance' />\n <link href='http://localhost:3001/api/images/img2'
208
+ method='delete' rel='destroy_image' />\n </actions>\n </image>\n <image
209
+ href='http://localhost:3001/api/images/img3' id='img3'>\n <name>img3</name>\n
210
+ \ <description>JBoss</description>\n <owner_id>mockuser</owner_id>\n
211
+ \ <architecture>i386</architecture>\n <state>AVAILABLE</state>\n <creation_time>Thu
212
+ Oct 25 14:27:53 CEST 2012</creation_time>\n <hardware_profiles>\n <hardware_profile
213
+ href='http://localhost:3001/api/hardware_profiles/m1-small' id='m1-small'
214
+ rel='hardware_profile'></hardware_profile>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-large'
215
+ id='m1-large' rel='hardware_profile'></hardware_profile>\n <hardware_profile
216
+ href='http://localhost:3001/api/hardware_profiles/m1-xlarge' id='m1-xlarge'
217
+ rel='hardware_profile'></hardware_profile>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/opaque'
218
+ id='opaque' rel='hardware_profile'></hardware_profile>\n </hardware_profiles>\n
219
+ \ <root_type>transient</root_type>\n <actions>\n <link href='http://localhost:3001/api/instances;image_id=img3'
220
+ method='post' rel='create_instance' />\n <link href='http://localhost:3001/api/images/img3'
221
+ method='delete' rel='destroy_image' />\n </actions>\n </image>\n</images>\n"
222
+ http_version:
223
+ recorded_at: Wed, 06 Mar 2013 08:56:17 GMT
224
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,156 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3001/api
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/xml
12
+ Authorization:
13
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
14
+ User-Agent:
15
+ - Faraday v0.8.6
16
+ response:
17
+ status:
18
+ code: 200
19
+ message:
20
+ headers:
21
+ content-type:
22
+ - application/xml
23
+ server:
24
+ - Apache-DeltacloudVM/1.1.1
25
+ x-deltacloud-driver:
26
+ - mock
27
+ content-length:
28
+ - '1368'
29
+ x-content-type-options:
30
+ - nosniff
31
+ etag:
32
+ - e43d25244dc2b8ce1da6fa91131507ee
33
+ cache-control:
34
+ - max-age=0, private, must-revalidate
35
+ date:
36
+ - Wed, 06 Mar 2013 08:56:18 GMT
37
+ connection:
38
+ - close
39
+ body:
40
+ encoding: US-ASCII
41
+ string: ! "<api driver='mock' version='1.1.1'>\n <link href='http://localhost:3001/api/instance_states'
42
+ rel='instance_states'>\n </link>\n <link href='http://localhost:3001/api/storage_volumes'
43
+ rel='storage_volumes'>\n </link>\n <link href='http://localhost:3001/api/metrics'
44
+ rel='metrics'>\n </link>\n <link href='http://localhost:3001/api/hardware_profiles'
45
+ rel='hardware_profiles'>\n </link>\n <link href='http://localhost:3001/api/instances'
46
+ rel='instances'>\n <feature name='metrics' rel='create'>\n <param
47
+ name='metrics' />\n </feature>\n <feature name='realm_filter' rel='index'>\n
48
+ \ <param name='realm_id' />\n </feature>\n <feature name='user_name'
49
+ rel='create'>\n <param name='name' />\n </feature>\n <feature name='authentication_key'
50
+ rel='create'>\n <param name='keyname' />\n </feature>\n </link>\n
51
+ \ <link href='http://localhost:3001/api/realms' rel='realms'>\n </link>\n
52
+ \ <link href='http://localhost:3001/api/storage_snapshots' rel='storage_snapshots'>\n
53
+ \ </link>\n <link href='http://localhost:3001/api/images' rel='images'>\n
54
+ \ </link>\n <link href='http://localhost:3001/api/addresses' rel='addresses'>\n
55
+ \ </link>\n <link href='http://localhost:3001/api/drivers' rel='drivers'>\n
56
+ \ </link>\n <link href='http://localhost:3001/api/buckets' rel='buckets'>\n
57
+ \ </link>\n <link href='http://localhost:3001/api/keys' rel='keys'>\n </link>\n</api>\n"
58
+ http_version:
59
+ recorded_at: Wed, 06 Mar 2013 08:56:18 GMT
60
+ - request:
61
+ method: get
62
+ uri: http://localhost:3001/api/instance_states
63
+ body:
64
+ encoding: US-ASCII
65
+ string: ''
66
+ headers:
67
+ Accept:
68
+ - application/xml
69
+ Authorization:
70
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
71
+ User-Agent:
72
+ - Faraday v0.8.6
73
+ response:
74
+ status:
75
+ code: 200
76
+ message:
77
+ headers:
78
+ content-type:
79
+ - application/xml
80
+ server:
81
+ - Apache-DeltacloudVM/1.1.1
82
+ x-deltacloud-driver:
83
+ - mock
84
+ content-length:
85
+ - '543'
86
+ x-content-type-options:
87
+ - nosniff
88
+ etag:
89
+ - fa9267298fdf7b936d9635aa5ce29640
90
+ cache-control:
91
+ - max-age=0, private, must-revalidate
92
+ date:
93
+ - Wed, 06 Mar 2013 08:56:18 GMT
94
+ connection:
95
+ - close
96
+ body:
97
+ encoding: US-ASCII
98
+ string: ! "<states>\n <state name='start'>\n <transition action='create'
99
+ to='pending'></transition>\n </state>\n <state name='pending'>\n <transition
100
+ auto='true' to='running'></transition>\n </state>\n <state name='running'>\n
101
+ \ <transition action='reboot' to='running'></transition>\n <transition
102
+ action='stop' to='stopped'></transition>\n </state>\n <state name='stopped'>\n
103
+ \ <transition action='start' to='running'></transition>\n <transition
104
+ action='destroy' to='finish'></transition>\n </state>\n <state name='finish'>\n
105
+ \ </state>\n</states>\n"
106
+ http_version:
107
+ recorded_at: Wed, 06 Mar 2013 08:56:18 GMT
108
+ - request:
109
+ method: get
110
+ uri: http://localhost:3001/api/instance_states
111
+ body:
112
+ encoding: US-ASCII
113
+ string: ''
114
+ headers:
115
+ Accept:
116
+ - application/xml
117
+ Authorization:
118
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
119
+ User-Agent:
120
+ - Faraday v0.8.6
121
+ response:
122
+ status:
123
+ code: 200
124
+ message:
125
+ headers:
126
+ content-type:
127
+ - application/xml
128
+ server:
129
+ - Apache-DeltacloudVM/1.1.1
130
+ x-deltacloud-driver:
131
+ - mock
132
+ content-length:
133
+ - '543'
134
+ x-content-type-options:
135
+ - nosniff
136
+ etag:
137
+ - fa9267298fdf7b936d9635aa5ce29640
138
+ cache-control:
139
+ - max-age=0, private, must-revalidate
140
+ date:
141
+ - Wed, 06 Mar 2013 08:56:18 GMT
142
+ connection:
143
+ - close
144
+ body:
145
+ encoding: US-ASCII
146
+ string: ! "<states>\n <state name='start'>\n <transition action='create'
147
+ to='pending'></transition>\n </state>\n <state name='pending'>\n <transition
148
+ auto='true' to='running'></transition>\n </state>\n <state name='running'>\n
149
+ \ <transition action='reboot' to='running'></transition>\n <transition
150
+ action='stop' to='stopped'></transition>\n </state>\n <state name='stopped'>\n
151
+ \ <transition action='start' to='running'></transition>\n <transition
152
+ action='destroy' to='finish'></transition>\n </state>\n <state name='finish'>\n
153
+ \ </state>\n</states>\n"
154
+ http_version:
155
+ recorded_at: Wed, 06 Mar 2013 08:56:18 GMT
156
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,486 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3001/api
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/xml
12
+ Authorization:
13
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
14
+ User-Agent:
15
+ - Faraday v0.8.6
16
+ response:
17
+ status:
18
+ code: 200
19
+ message:
20
+ headers:
21
+ content-type:
22
+ - application/xml
23
+ server:
24
+ - Apache-DeltacloudVM/1.1.1
25
+ x-deltacloud-driver:
26
+ - mock
27
+ content-length:
28
+ - '1368'
29
+ x-content-type-options:
30
+ - nosniff
31
+ etag:
32
+ - e43d25244dc2b8ce1da6fa91131507ee
33
+ cache-control:
34
+ - max-age=0, private, must-revalidate
35
+ date:
36
+ - Wed, 06 Mar 2013 08:56:18 GMT
37
+ connection:
38
+ - close
39
+ body:
40
+ encoding: US-ASCII
41
+ string: ! "<api driver='mock' version='1.1.1'>\n <link href='http://localhost:3001/api/instance_states'
42
+ rel='instance_states'>\n </link>\n <link href='http://localhost:3001/api/storage_volumes'
43
+ rel='storage_volumes'>\n </link>\n <link href='http://localhost:3001/api/metrics'
44
+ rel='metrics'>\n </link>\n <link href='http://localhost:3001/api/hardware_profiles'
45
+ rel='hardware_profiles'>\n </link>\n <link href='http://localhost:3001/api/instances'
46
+ rel='instances'>\n <feature name='metrics' rel='create'>\n <param
47
+ name='metrics' />\n </feature>\n <feature name='realm_filter' rel='index'>\n
48
+ \ <param name='realm_id' />\n </feature>\n <feature name='user_name'
49
+ rel='create'>\n <param name='name' />\n </feature>\n <feature name='authentication_key'
50
+ rel='create'>\n <param name='keyname' />\n </feature>\n </link>\n
51
+ \ <link href='http://localhost:3001/api/realms' rel='realms'>\n </link>\n
52
+ \ <link href='http://localhost:3001/api/storage_snapshots' rel='storage_snapshots'>\n
53
+ \ </link>\n <link href='http://localhost:3001/api/images' rel='images'>\n
54
+ \ </link>\n <link href='http://localhost:3001/api/addresses' rel='addresses'>\n
55
+ \ </link>\n <link href='http://localhost:3001/api/drivers' rel='drivers'>\n
56
+ \ </link>\n <link href='http://localhost:3001/api/buckets' rel='buckets'>\n
57
+ \ </link>\n <link href='http://localhost:3001/api/keys' rel='keys'>\n </link>\n</api>\n"
58
+ http_version:
59
+ recorded_at: Wed, 06 Mar 2013 08:56:18 GMT
60
+ - request:
61
+ method: get
62
+ uri: http://localhost:3001/api/instances
63
+ body:
64
+ encoding: US-ASCII
65
+ string: ''
66
+ headers:
67
+ Accept:
68
+ - application/xml
69
+ Authorization:
70
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
71
+ User-Agent:
72
+ - Faraday v0.8.6
73
+ response:
74
+ status:
75
+ code: 200
76
+ message:
77
+ headers:
78
+ content-type:
79
+ - application/xml
80
+ x-backend-runtime:
81
+ - '0.005411386489868164'
82
+ server:
83
+ - Apache-DeltacloudVM/1.1.1
84
+ x-deltacloud-driver:
85
+ - mock
86
+ content-length:
87
+ - '16539'
88
+ x-content-type-options:
89
+ - nosniff
90
+ etag:
91
+ - f155d58829533df9216e29d06b3e73b3
92
+ cache-control:
93
+ - max-age=0, private, must-revalidate
94
+ date:
95
+ - Wed, 06 Mar 2013 08:56:18 GMT
96
+ connection:
97
+ - close
98
+ body:
99
+ encoding: US-ASCII
100
+ string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<instances>\n <instance
101
+ href='http://localhost:3001/api/instances/inst6' id='inst6'>\n <name>i-1362499468</name>\n
102
+ \ <owner_id>mockuser</owner_id>\n <image href='http://localhost:3001/api/images/img1'
103
+ id='img1'></image>\n <realm href='http://localhost:3001/api/realms/us'
104
+ id='us'></realm>\n <state>STOPPED</state>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
105
+ id='m1-small'>\n </hardware_profile>\n <actions>\n <link href='http://localhost:3001/api/instances/inst6/start'
106
+ method='post' rel='start' />\n <link href='http://localhost:3001/api/instances/inst6'
107
+ method='delete' rel='destroy' />\n <link href='http://localhost:3001/api/instances/inst6/run;id=inst6'
108
+ method='post' rel='run' />\n <link href='http://localhost:3001/api/images;instance_id=inst6'
109
+ method='post' rel='create_image' />\n </actions>\n <public_addresses><address
110
+ type='hostname'>img1.inst6.public.com</address></public_addresses>\n <private_addresses><address
111
+ type='hostname'>img1.inst6.private.com</address></private_addresses>\n <storage_volumes></storage_volumes>\n
112
+ \ <authentication type='key'>\n </authentication>\n </instance>\n <instance
113
+ href='http://localhost:3001/api/instances/inst9' id='inst9'>\n <name>i-1362560139</name>\n
114
+ \ <owner_id>mockuser</owner_id>\n <image href='http://localhost:3001/api/images/img1'
115
+ id='img1'></image>\n <realm href='http://localhost:3001/api/realms/eu'
116
+ id='eu'></realm>\n <state>RUNNING</state>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
117
+ id='m1-small'>\n </hardware_profile>\n <actions>\n <link href='http://localhost:3001/api/instances/inst9/reboot'
118
+ method='post' rel='reboot' />\n <link href='http://localhost:3001/api/instances/inst9/stop'
119
+ method='post' rel='stop' />\n <link href='http://localhost:3001/api/instances/inst9/run;id=inst9'
120
+ method='post' rel='run' />\n <link href='http://localhost:3001/api/images;instance_id=inst9'
121
+ method='post' rel='create_image' />\n </actions>\n <public_addresses><address
122
+ type='hostname'>img1.inst9.public.com</address></public_addresses>\n <private_addresses><address
123
+ type='hostname'>img1.inst9.private.com</address></private_addresses>\n <storage_volumes></storage_volumes>\n
124
+ \ <authentication type='key'>\n </authentication>\n </instance>\n <instance
125
+ href='http://localhost:3001/api/instances/inst7' id='inst7'>\n <name>i-1362499468</name>\n
126
+ \ <owner_id>mockuser</owner_id>\n <image href='http://localhost:3001/api/images/img1'
127
+ id='img1'></image>\n <realm href='http://localhost:3001/api/realms/us'
128
+ id='us'></realm>\n <state>RUNNING</state>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
129
+ id='m1-small'>\n </hardware_profile>\n <actions>\n <link href='http://localhost:3001/api/instances/inst7/reboot'
130
+ method='post' rel='reboot' />\n <link href='http://localhost:3001/api/instances/inst7/stop'
131
+ method='post' rel='stop' />\n <link href='http://localhost:3001/api/instances/inst7/run;id=inst7'
132
+ method='post' rel='run' />\n <link href='http://localhost:3001/api/images;instance_id=inst7'
133
+ method='post' rel='create_image' />\n </actions>\n <public_addresses><address
134
+ type='hostname'>img1.inst7.public.com</address></public_addresses>\n <private_addresses><address
135
+ type='hostname'>img1.inst7.private.com</address></private_addresses>\n <storage_volumes></storage_volumes>\n
136
+ \ <authentication type='key'>\n </authentication>\n </instance>\n <instance
137
+ href='http://localhost:3001/api/instances/inst1' id='inst1'>\n <name>MockUserInstance</name>\n
138
+ \ <owner_id>mockuser</owner_id>\n <image href='http://localhost:3001/api/images/img3'
139
+ id='img3'></image>\n <realm href='http://localhost:3001/api/realms/us'
140
+ id='us'></realm>\n <state>RUNNING</state>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
141
+ id='m1-small'>\n </hardware_profile>\n <actions>\n <link href='http://localhost:3001/api/instances/inst1/reboot'
142
+ method='post' rel='reboot' />\n <link href='http://localhost:3001/api/instances/inst1/stop'
143
+ method='post' rel='stop' />\n <link href='http://localhost:3001/api/instances/inst1/run;id=inst1'
144
+ method='post' rel='run' />\n <link href='http://localhost:3001/api/images;instance_id=inst1'
145
+ method='post' rel='create_image' />\n </actions>\n <public_addresses><address
146
+ type='hostname'>img1.inst1.public.com</address></public_addresses>\n <private_addresses><address
147
+ type='hostname'>img1.inst1.private.com</address></private_addresses>\n <storage_volumes></storage_volumes>\n
148
+ \ <authentication type='key'>\n </authentication>\n </instance>\n <instance
149
+ href='http://localhost:3001/api/instances/inst4' id='inst4'>\n <name>test_instance</name>\n
150
+ \ <owner_id>mockuser</owner_id>\n <image href='http://localhost:3001/api/images/img1'
151
+ id='img1'></image>\n <realm href='http://localhost:3001/api/realms/eu'
152
+ id='eu'></realm>\n <state>RUNNING</state>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
153
+ id='m1-small'>\n </hardware_profile>\n <actions>\n <link href='http://localhost:3001/api/instances/inst4/reboot'
154
+ method='post' rel='reboot' />\n <link href='http://localhost:3001/api/instances/inst4/stop'
155
+ method='post' rel='stop' />\n <link href='http://localhost:3001/api/instances/inst4/run;id=inst4'
156
+ method='post' rel='run' />\n <link href='http://localhost:3001/api/images;instance_id=inst4'
157
+ method='post' rel='create_image' />\n </actions>\n <public_addresses><address
158
+ type='hostname'>img1.inst4.public.com</address></public_addresses>\n <private_addresses><address
159
+ type='hostname'>img1.inst4.private.com</address></private_addresses>\n <storage_volumes></storage_volumes>\n
160
+ \ <authentication type='key'>\n </authentication>\n </instance>\n <instance
161
+ href='http://localhost:3001/api/instances/inst0' id='inst0'>\n <name>Mock
162
+ Instance With Profile Change</name>\n <owner_id>mockuser</owner_id>\n <image
163
+ href='http://localhost:3001/api/images/img1' id='img1'></image>\n <realm
164
+ href='http://localhost:3001/api/realms/us' id='us'></realm>\n <state>RUNNING</state>\n
165
+ \ <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-large'
166
+ id='m1-large'>\n <property kind='fixed' name='memory' unit='MB' value='12288'></property>\n
167
+ \ </hardware_profile>\n <actions>\n <link href='http://localhost:3001/api/instances/inst0/reboot'
168
+ method='post' rel='reboot' />\n <link href='http://localhost:3001/api/instances/inst0/stop'
169
+ method='post' rel='stop' />\n <link href='http://localhost:3001/api/instances/inst0/run;id=inst0'
170
+ method='post' rel='run' />\n <link href='http://localhost:3001/api/images;instance_id=inst0'
171
+ method='post' rel='create_image' />\n </actions>\n <public_addresses><address
172
+ type='hostname'>img1.inst0.public.com</address></public_addresses>\n <private_addresses><address
173
+ type='hostname'>img1.inst0.private.com</address></private_addresses>\n <storage_volumes></storage_volumes>\n
174
+ \ <authentication type='key'>\n </authentication>\n </instance>\n <instance
175
+ href='http://localhost:3001/api/instances/inst3' id='inst3'>\n <name>i-1362499363</name>\n
176
+ \ <owner_id>mockuser</owner_id>\n <image href='http://localhost:3001/api/images/img1'
177
+ id='img1'></image>\n <realm href='http://localhost:3001/api/realms/eu'
178
+ id='eu'></realm>\n <state>RUNNING</state>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
179
+ id='m1-small'>\n </hardware_profile>\n <actions>\n <link href='http://localhost:3001/api/instances/inst3/reboot'
180
+ method='post' rel='reboot' />\n <link href='http://localhost:3001/api/instances/inst3/stop'
181
+ method='post' rel='stop' />\n <link href='http://localhost:3001/api/instances/inst3/run;id=inst3'
182
+ method='post' rel='run' />\n <link href='http://localhost:3001/api/images;instance_id=inst3'
183
+ method='post' rel='create_image' />\n </actions>\n <public_addresses><address
184
+ type='hostname'>img1.inst3.public.com</address></public_addresses>\n <private_addresses><address
185
+ type='hostname'>img1.inst3.private.com</address></private_addresses>\n <storage_volumes></storage_volumes>\n
186
+ \ <authentication type='key'>\n </authentication>\n </instance>\n <instance
187
+ href='http://localhost:3001/api/instances/inst8' id='inst8'>\n <name>i-1362499469</name>\n
188
+ \ <owner_id>mockuser</owner_id>\n <image href='http://localhost:3001/api/images/img1'
189
+ id='img1'></image>\n <realm href='http://localhost:3001/api/realms/us'
190
+ id='us'></realm>\n <state>RUNNING</state>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
191
+ id='m1-small'>\n </hardware_profile>\n <actions>\n <link href='http://localhost:3001/api/instances/inst8/reboot'
192
+ method='post' rel='reboot' />\n <link href='http://localhost:3001/api/instances/inst8/stop'
193
+ method='post' rel='stop' />\n <link href='http://localhost:3001/api/instances/inst8/run;id=inst8'
194
+ method='post' rel='run' />\n <link href='http://localhost:3001/api/images;instance_id=inst8'
195
+ method='post' rel='create_image' />\n </actions>\n <public_addresses><address
196
+ type='hostname'>img1.inst8.public.com</address></public_addresses>\n <private_addresses><address
197
+ type='hostname'>img1.inst8.private.com</address></private_addresses>\n <storage_volumes></storage_volumes>\n
198
+ \ <authentication type='key'>\n </authentication>\n </instance>\n <instance
199
+ href='http://localhost:3001/api/instances/inst11' id='inst11'>\n <name>i-1362560140</name>\n
200
+ \ <owner_id>mockuser</owner_id>\n <image href='http://localhost:3001/api/images/img1'
201
+ id='img1'></image>\n <realm href='http://localhost:3001/api/realms/us'
202
+ id='us'></realm>\n <state>RUNNING</state>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
203
+ id='m1-small'>\n </hardware_profile>\n <actions>\n <link href='http://localhost:3001/api/instances/inst11/reboot'
204
+ method='post' rel='reboot' />\n <link href='http://localhost:3001/api/instances/inst11/stop'
205
+ method='post' rel='stop' />\n <link href='http://localhost:3001/api/instances/inst11/run;id=inst11'
206
+ method='post' rel='run' />\n <link href='http://localhost:3001/api/images;instance_id=inst11'
207
+ method='post' rel='create_image' />\n </actions>\n <public_addresses><address
208
+ type='hostname'>img1.inst11.public.com</address></public_addresses>\n <private_addresses><address
209
+ type='hostname'>img1.inst11.private.com</address></private_addresses>\n <storage_volumes></storage_volumes>\n
210
+ \ <authentication type='key'>\n </authentication>\n </instance>\n <instance
211
+ href='http://localhost:3001/api/instances/inst12' id='inst12'>\n <name>i-1362560177</name>\n
212
+ \ <owner_id>mockuser</owner_id>\n <image href='http://localhost:3001/api/images/img1'
213
+ id='img1'></image>\n <realm href='http://localhost:3001/api/realms/us'
214
+ id='us'></realm>\n <state>RUNNING</state>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
215
+ id='m1-small'>\n </hardware_profile>\n <actions>\n <link href='http://localhost:3001/api/instances/inst12/reboot'
216
+ method='post' rel='reboot' />\n <link href='http://localhost:3001/api/instances/inst12/stop'
217
+ method='post' rel='stop' />\n <link href='http://localhost:3001/api/instances/inst12/run;id=inst12'
218
+ method='post' rel='run' />\n <link href='http://localhost:3001/api/images;instance_id=inst12'
219
+ method='post' rel='create_image' />\n </actions>\n <public_addresses><address
220
+ type='hostname'>img1.inst12.public.com</address></public_addresses>\n <private_addresses><address
221
+ type='hostname'>img1.inst12.private.com</address></private_addresses>\n <storage_volumes></storage_volumes>\n
222
+ \ <authentication type='key'>\n </authentication>\n </instance>\n <instance
223
+ href='http://localhost:3001/api/instances/inst5' id='inst5'>\n <name>i-1362499364</name>\n
224
+ \ <owner_id>mockuser</owner_id>\n <image href='http://localhost:3001/api/images/img1'
225
+ id='img1'></image>\n <realm href='http://localhost:3001/api/realms/us'
226
+ id='us'></realm>\n <state>RUNNING</state>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
227
+ id='m1-small'>\n </hardware_profile>\n <actions>\n <link href='http://localhost:3001/api/instances/inst5/reboot'
228
+ method='post' rel='reboot' />\n <link href='http://localhost:3001/api/instances/inst5/stop'
229
+ method='post' rel='stop' />\n <link href='http://localhost:3001/api/instances/inst5/run;id=inst5'
230
+ method='post' rel='run' />\n <link href='http://localhost:3001/api/images;instance_id=inst5'
231
+ method='post' rel='create_image' />\n </actions>\n <public_addresses><address
232
+ type='hostname'>img1.inst5.public.com</address></public_addresses>\n <private_addresses><address
233
+ type='hostname'>img1.inst5.private.com</address></private_addresses>\n <storage_volumes></storage_volumes>\n
234
+ \ <authentication type='key'>\n </authentication>\n </instance>\n <instance
235
+ href='http://localhost:3001/api/instances/inst10' id='inst10'>\n <name>test_instance</name>\n
236
+ \ <owner_id>mockuser</owner_id>\n <image href='http://localhost:3001/api/images/img1'
237
+ id='img1'></image>\n <realm href='http://localhost:3001/api/realms/eu'
238
+ id='eu'></realm>\n <state>RUNNING</state>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
239
+ id='m1-small'>\n </hardware_profile>\n <actions>\n <link href='http://localhost:3001/api/instances/inst10/reboot'
240
+ method='post' rel='reboot' />\n <link href='http://localhost:3001/api/instances/inst10/stop'
241
+ method='post' rel='stop' />\n <link href='http://localhost:3001/api/instances/inst10/run;id=inst10'
242
+ method='post' rel='run' />\n <link href='http://localhost:3001/api/images;instance_id=inst10'
243
+ method='post' rel='create_image' />\n </actions>\n <public_addresses><address
244
+ type='hostname'>img1.inst10.public.com</address></public_addresses>\n <private_addresses><address
245
+ type='hostname'>img1.inst10.private.com</address></private_addresses>\n <storage_volumes></storage_volumes>\n
246
+ \ <authentication type='key'>\n </authentication>\n </instance>\n <instance
247
+ href='http://localhost:3001/api/instances/inst14' id='inst14'>\n <name>test_instance</name>\n
248
+ \ <owner_id>mockuser</owner_id>\n <image href='http://localhost:3001/api/images/img1'
249
+ id='img1'></image>\n <realm href='http://localhost:3001/api/realms/eu'
250
+ id='eu'></realm>\n <state>RUNNING</state>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
251
+ id='m1-small'>\n </hardware_profile>\n <actions>\n <link href='http://localhost:3001/api/instances/inst14/reboot'
252
+ method='post' rel='reboot' />\n <link href='http://localhost:3001/api/instances/inst14/stop'
253
+ method='post' rel='stop' />\n <link href='http://localhost:3001/api/instances/inst14/run;id=inst14'
254
+ method='post' rel='run' />\n <link href='http://localhost:3001/api/images;instance_id=inst14'
255
+ method='post' rel='create_image' />\n </actions>\n <public_addresses><address
256
+ type='hostname'>img1.inst14.public.com</address></public_addresses>\n <private_addresses><address
257
+ type='hostname'>img1.inst14.private.com</address></private_addresses>\n <storage_volumes></storage_volumes>\n
258
+ \ <authentication type='key'>\n </authentication>\n </instance>\n <instance
259
+ href='http://localhost:3001/api/instances/inst13' id='inst13'>\n <name>i-1362560178</name>\n
260
+ \ <owner_id>mockuser</owner_id>\n <image href='http://localhost:3001/api/images/img1'
261
+ id='img1'></image>\n <realm href='http://localhost:3001/api/realms/eu'
262
+ id='eu'></realm>\n <state>RUNNING</state>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
263
+ id='m1-small'>\n </hardware_profile>\n <actions>\n <link href='http://localhost:3001/api/instances/inst13/reboot'
264
+ method='post' rel='reboot' />\n <link href='http://localhost:3001/api/instances/inst13/stop'
265
+ method='post' rel='stop' />\n <link href='http://localhost:3001/api/instances/inst13/run;id=inst13'
266
+ method='post' rel='run' />\n <link href='http://localhost:3001/api/images;instance_id=inst13'
267
+ method='post' rel='create_image' />\n </actions>\n <public_addresses><address
268
+ type='hostname'>img1.inst13.public.com</address></public_addresses>\n <private_addresses><address
269
+ type='hostname'>img1.inst13.private.com</address></private_addresses>\n <storage_volumes></storage_volumes>\n
270
+ \ <authentication type='key'>\n </authentication>\n </instance>\n</instances>\n"
271
+ http_version:
272
+ recorded_at: Wed, 06 Mar 2013 08:56:18 GMT
273
+ - request:
274
+ method: get
275
+ uri: http://localhost:3001/api/instances
276
+ body:
277
+ encoding: US-ASCII
278
+ string: ''
279
+ headers:
280
+ Accept:
281
+ - application/xml
282
+ Authorization:
283
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
284
+ User-Agent:
285
+ - Faraday v0.8.6
286
+ response:
287
+ status:
288
+ code: 200
289
+ message:
290
+ headers:
291
+ content-type:
292
+ - application/xml
293
+ x-backend-runtime:
294
+ - '0.015678882598876953'
295
+ server:
296
+ - Apache-DeltacloudVM/1.1.1
297
+ x-deltacloud-driver:
298
+ - mock
299
+ content-length:
300
+ - '16539'
301
+ x-content-type-options:
302
+ - nosniff
303
+ etag:
304
+ - f155d58829533df9216e29d06b3e73b3
305
+ cache-control:
306
+ - max-age=0, private, must-revalidate
307
+ date:
308
+ - Wed, 06 Mar 2013 08:56:18 GMT
309
+ connection:
310
+ - close
311
+ body:
312
+ encoding: US-ASCII
313
+ string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<instances>\n <instance
314
+ href='http://localhost:3001/api/instances/inst6' id='inst6'>\n <name>i-1362499468</name>\n
315
+ \ <owner_id>mockuser</owner_id>\n <image href='http://localhost:3001/api/images/img1'
316
+ id='img1'></image>\n <realm href='http://localhost:3001/api/realms/us'
317
+ id='us'></realm>\n <state>STOPPED</state>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
318
+ id='m1-small'>\n </hardware_profile>\n <actions>\n <link href='http://localhost:3001/api/instances/inst6/start'
319
+ method='post' rel='start' />\n <link href='http://localhost:3001/api/instances/inst6'
320
+ method='delete' rel='destroy' />\n <link href='http://localhost:3001/api/instances/inst6/run;id=inst6'
321
+ method='post' rel='run' />\n <link href='http://localhost:3001/api/images;instance_id=inst6'
322
+ method='post' rel='create_image' />\n </actions>\n <public_addresses><address
323
+ type='hostname'>img1.inst6.public.com</address></public_addresses>\n <private_addresses><address
324
+ type='hostname'>img1.inst6.private.com</address></private_addresses>\n <storage_volumes></storage_volumes>\n
325
+ \ <authentication type='key'>\n </authentication>\n </instance>\n <instance
326
+ href='http://localhost:3001/api/instances/inst9' id='inst9'>\n <name>i-1362560139</name>\n
327
+ \ <owner_id>mockuser</owner_id>\n <image href='http://localhost:3001/api/images/img1'
328
+ id='img1'></image>\n <realm href='http://localhost:3001/api/realms/eu'
329
+ id='eu'></realm>\n <state>RUNNING</state>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
330
+ id='m1-small'>\n </hardware_profile>\n <actions>\n <link href='http://localhost:3001/api/instances/inst9/reboot'
331
+ method='post' rel='reboot' />\n <link href='http://localhost:3001/api/instances/inst9/stop'
332
+ method='post' rel='stop' />\n <link href='http://localhost:3001/api/instances/inst9/run;id=inst9'
333
+ method='post' rel='run' />\n <link href='http://localhost:3001/api/images;instance_id=inst9'
334
+ method='post' rel='create_image' />\n </actions>\n <public_addresses><address
335
+ type='hostname'>img1.inst9.public.com</address></public_addresses>\n <private_addresses><address
336
+ type='hostname'>img1.inst9.private.com</address></private_addresses>\n <storage_volumes></storage_volumes>\n
337
+ \ <authentication type='key'>\n </authentication>\n </instance>\n <instance
338
+ href='http://localhost:3001/api/instances/inst7' id='inst7'>\n <name>i-1362499468</name>\n
339
+ \ <owner_id>mockuser</owner_id>\n <image href='http://localhost:3001/api/images/img1'
340
+ id='img1'></image>\n <realm href='http://localhost:3001/api/realms/us'
341
+ id='us'></realm>\n <state>RUNNING</state>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
342
+ id='m1-small'>\n </hardware_profile>\n <actions>\n <link href='http://localhost:3001/api/instances/inst7/reboot'
343
+ method='post' rel='reboot' />\n <link href='http://localhost:3001/api/instances/inst7/stop'
344
+ method='post' rel='stop' />\n <link href='http://localhost:3001/api/instances/inst7/run;id=inst7'
345
+ method='post' rel='run' />\n <link href='http://localhost:3001/api/images;instance_id=inst7'
346
+ method='post' rel='create_image' />\n </actions>\n <public_addresses><address
347
+ type='hostname'>img1.inst7.public.com</address></public_addresses>\n <private_addresses><address
348
+ type='hostname'>img1.inst7.private.com</address></private_addresses>\n <storage_volumes></storage_volumes>\n
349
+ \ <authentication type='key'>\n </authentication>\n </instance>\n <instance
350
+ href='http://localhost:3001/api/instances/inst1' id='inst1'>\n <name>MockUserInstance</name>\n
351
+ \ <owner_id>mockuser</owner_id>\n <image href='http://localhost:3001/api/images/img3'
352
+ id='img3'></image>\n <realm href='http://localhost:3001/api/realms/us'
353
+ id='us'></realm>\n <state>RUNNING</state>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
354
+ id='m1-small'>\n </hardware_profile>\n <actions>\n <link href='http://localhost:3001/api/instances/inst1/reboot'
355
+ method='post' rel='reboot' />\n <link href='http://localhost:3001/api/instances/inst1/stop'
356
+ method='post' rel='stop' />\n <link href='http://localhost:3001/api/instances/inst1/run;id=inst1'
357
+ method='post' rel='run' />\n <link href='http://localhost:3001/api/images;instance_id=inst1'
358
+ method='post' rel='create_image' />\n </actions>\n <public_addresses><address
359
+ type='hostname'>img1.inst1.public.com</address></public_addresses>\n <private_addresses><address
360
+ type='hostname'>img1.inst1.private.com</address></private_addresses>\n <storage_volumes></storage_volumes>\n
361
+ \ <authentication type='key'>\n </authentication>\n </instance>\n <instance
362
+ href='http://localhost:3001/api/instances/inst4' id='inst4'>\n <name>test_instance</name>\n
363
+ \ <owner_id>mockuser</owner_id>\n <image href='http://localhost:3001/api/images/img1'
364
+ id='img1'></image>\n <realm href='http://localhost:3001/api/realms/eu'
365
+ id='eu'></realm>\n <state>RUNNING</state>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
366
+ id='m1-small'>\n </hardware_profile>\n <actions>\n <link href='http://localhost:3001/api/instances/inst4/reboot'
367
+ method='post' rel='reboot' />\n <link href='http://localhost:3001/api/instances/inst4/stop'
368
+ method='post' rel='stop' />\n <link href='http://localhost:3001/api/instances/inst4/run;id=inst4'
369
+ method='post' rel='run' />\n <link href='http://localhost:3001/api/images;instance_id=inst4'
370
+ method='post' rel='create_image' />\n </actions>\n <public_addresses><address
371
+ type='hostname'>img1.inst4.public.com</address></public_addresses>\n <private_addresses><address
372
+ type='hostname'>img1.inst4.private.com</address></private_addresses>\n <storage_volumes></storage_volumes>\n
373
+ \ <authentication type='key'>\n </authentication>\n </instance>\n <instance
374
+ href='http://localhost:3001/api/instances/inst0' id='inst0'>\n <name>Mock
375
+ Instance With Profile Change</name>\n <owner_id>mockuser</owner_id>\n <image
376
+ href='http://localhost:3001/api/images/img1' id='img1'></image>\n <realm
377
+ href='http://localhost:3001/api/realms/us' id='us'></realm>\n <state>RUNNING</state>\n
378
+ \ <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-large'
379
+ id='m1-large'>\n <property kind='fixed' name='memory' unit='MB' value='12288'></property>\n
380
+ \ </hardware_profile>\n <actions>\n <link href='http://localhost:3001/api/instances/inst0/reboot'
381
+ method='post' rel='reboot' />\n <link href='http://localhost:3001/api/instances/inst0/stop'
382
+ method='post' rel='stop' />\n <link href='http://localhost:3001/api/instances/inst0/run;id=inst0'
383
+ method='post' rel='run' />\n <link href='http://localhost:3001/api/images;instance_id=inst0'
384
+ method='post' rel='create_image' />\n </actions>\n <public_addresses><address
385
+ type='hostname'>img1.inst0.public.com</address></public_addresses>\n <private_addresses><address
386
+ type='hostname'>img1.inst0.private.com</address></private_addresses>\n <storage_volumes></storage_volumes>\n
387
+ \ <authentication type='key'>\n </authentication>\n </instance>\n <instance
388
+ href='http://localhost:3001/api/instances/inst3' id='inst3'>\n <name>i-1362499363</name>\n
389
+ \ <owner_id>mockuser</owner_id>\n <image href='http://localhost:3001/api/images/img1'
390
+ id='img1'></image>\n <realm href='http://localhost:3001/api/realms/eu'
391
+ id='eu'></realm>\n <state>RUNNING</state>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
392
+ id='m1-small'>\n </hardware_profile>\n <actions>\n <link href='http://localhost:3001/api/instances/inst3/reboot'
393
+ method='post' rel='reboot' />\n <link href='http://localhost:3001/api/instances/inst3/stop'
394
+ method='post' rel='stop' />\n <link href='http://localhost:3001/api/instances/inst3/run;id=inst3'
395
+ method='post' rel='run' />\n <link href='http://localhost:3001/api/images;instance_id=inst3'
396
+ method='post' rel='create_image' />\n </actions>\n <public_addresses><address
397
+ type='hostname'>img1.inst3.public.com</address></public_addresses>\n <private_addresses><address
398
+ type='hostname'>img1.inst3.private.com</address></private_addresses>\n <storage_volumes></storage_volumes>\n
399
+ \ <authentication type='key'>\n </authentication>\n </instance>\n <instance
400
+ href='http://localhost:3001/api/instances/inst8' id='inst8'>\n <name>i-1362499469</name>\n
401
+ \ <owner_id>mockuser</owner_id>\n <image href='http://localhost:3001/api/images/img1'
402
+ id='img1'></image>\n <realm href='http://localhost:3001/api/realms/us'
403
+ id='us'></realm>\n <state>RUNNING</state>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
404
+ id='m1-small'>\n </hardware_profile>\n <actions>\n <link href='http://localhost:3001/api/instances/inst8/reboot'
405
+ method='post' rel='reboot' />\n <link href='http://localhost:3001/api/instances/inst8/stop'
406
+ method='post' rel='stop' />\n <link href='http://localhost:3001/api/instances/inst8/run;id=inst8'
407
+ method='post' rel='run' />\n <link href='http://localhost:3001/api/images;instance_id=inst8'
408
+ method='post' rel='create_image' />\n </actions>\n <public_addresses><address
409
+ type='hostname'>img1.inst8.public.com</address></public_addresses>\n <private_addresses><address
410
+ type='hostname'>img1.inst8.private.com</address></private_addresses>\n <storage_volumes></storage_volumes>\n
411
+ \ <authentication type='key'>\n </authentication>\n </instance>\n <instance
412
+ href='http://localhost:3001/api/instances/inst11' id='inst11'>\n <name>i-1362560140</name>\n
413
+ \ <owner_id>mockuser</owner_id>\n <image href='http://localhost:3001/api/images/img1'
414
+ id='img1'></image>\n <realm href='http://localhost:3001/api/realms/us'
415
+ id='us'></realm>\n <state>RUNNING</state>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
416
+ id='m1-small'>\n </hardware_profile>\n <actions>\n <link href='http://localhost:3001/api/instances/inst11/reboot'
417
+ method='post' rel='reboot' />\n <link href='http://localhost:3001/api/instances/inst11/stop'
418
+ method='post' rel='stop' />\n <link href='http://localhost:3001/api/instances/inst11/run;id=inst11'
419
+ method='post' rel='run' />\n <link href='http://localhost:3001/api/images;instance_id=inst11'
420
+ method='post' rel='create_image' />\n </actions>\n <public_addresses><address
421
+ type='hostname'>img1.inst11.public.com</address></public_addresses>\n <private_addresses><address
422
+ type='hostname'>img1.inst11.private.com</address></private_addresses>\n <storage_volumes></storage_volumes>\n
423
+ \ <authentication type='key'>\n </authentication>\n </instance>\n <instance
424
+ href='http://localhost:3001/api/instances/inst12' id='inst12'>\n <name>i-1362560177</name>\n
425
+ \ <owner_id>mockuser</owner_id>\n <image href='http://localhost:3001/api/images/img1'
426
+ id='img1'></image>\n <realm href='http://localhost:3001/api/realms/us'
427
+ id='us'></realm>\n <state>RUNNING</state>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
428
+ id='m1-small'>\n </hardware_profile>\n <actions>\n <link href='http://localhost:3001/api/instances/inst12/reboot'
429
+ method='post' rel='reboot' />\n <link href='http://localhost:3001/api/instances/inst12/stop'
430
+ method='post' rel='stop' />\n <link href='http://localhost:3001/api/instances/inst12/run;id=inst12'
431
+ method='post' rel='run' />\n <link href='http://localhost:3001/api/images;instance_id=inst12'
432
+ method='post' rel='create_image' />\n </actions>\n <public_addresses><address
433
+ type='hostname'>img1.inst12.public.com</address></public_addresses>\n <private_addresses><address
434
+ type='hostname'>img1.inst12.private.com</address></private_addresses>\n <storage_volumes></storage_volumes>\n
435
+ \ <authentication type='key'>\n </authentication>\n </instance>\n <instance
436
+ href='http://localhost:3001/api/instances/inst5' id='inst5'>\n <name>i-1362499364</name>\n
437
+ \ <owner_id>mockuser</owner_id>\n <image href='http://localhost:3001/api/images/img1'
438
+ id='img1'></image>\n <realm href='http://localhost:3001/api/realms/us'
439
+ id='us'></realm>\n <state>RUNNING</state>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
440
+ id='m1-small'>\n </hardware_profile>\n <actions>\n <link href='http://localhost:3001/api/instances/inst5/reboot'
441
+ method='post' rel='reboot' />\n <link href='http://localhost:3001/api/instances/inst5/stop'
442
+ method='post' rel='stop' />\n <link href='http://localhost:3001/api/instances/inst5/run;id=inst5'
443
+ method='post' rel='run' />\n <link href='http://localhost:3001/api/images;instance_id=inst5'
444
+ method='post' rel='create_image' />\n </actions>\n <public_addresses><address
445
+ type='hostname'>img1.inst5.public.com</address></public_addresses>\n <private_addresses><address
446
+ type='hostname'>img1.inst5.private.com</address></private_addresses>\n <storage_volumes></storage_volumes>\n
447
+ \ <authentication type='key'>\n </authentication>\n </instance>\n <instance
448
+ href='http://localhost:3001/api/instances/inst10' id='inst10'>\n <name>test_instance</name>\n
449
+ \ <owner_id>mockuser</owner_id>\n <image href='http://localhost:3001/api/images/img1'
450
+ id='img1'></image>\n <realm href='http://localhost:3001/api/realms/eu'
451
+ id='eu'></realm>\n <state>RUNNING</state>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
452
+ id='m1-small'>\n </hardware_profile>\n <actions>\n <link href='http://localhost:3001/api/instances/inst10/reboot'
453
+ method='post' rel='reboot' />\n <link href='http://localhost:3001/api/instances/inst10/stop'
454
+ method='post' rel='stop' />\n <link href='http://localhost:3001/api/instances/inst10/run;id=inst10'
455
+ method='post' rel='run' />\n <link href='http://localhost:3001/api/images;instance_id=inst10'
456
+ method='post' rel='create_image' />\n </actions>\n <public_addresses><address
457
+ type='hostname'>img1.inst10.public.com</address></public_addresses>\n <private_addresses><address
458
+ type='hostname'>img1.inst10.private.com</address></private_addresses>\n <storage_volumes></storage_volumes>\n
459
+ \ <authentication type='key'>\n </authentication>\n </instance>\n <instance
460
+ href='http://localhost:3001/api/instances/inst14' id='inst14'>\n <name>test_instance</name>\n
461
+ \ <owner_id>mockuser</owner_id>\n <image href='http://localhost:3001/api/images/img1'
462
+ id='img1'></image>\n <realm href='http://localhost:3001/api/realms/eu'
463
+ id='eu'></realm>\n <state>RUNNING</state>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
464
+ id='m1-small'>\n </hardware_profile>\n <actions>\n <link href='http://localhost:3001/api/instances/inst14/reboot'
465
+ method='post' rel='reboot' />\n <link href='http://localhost:3001/api/instances/inst14/stop'
466
+ method='post' rel='stop' />\n <link href='http://localhost:3001/api/instances/inst14/run;id=inst14'
467
+ method='post' rel='run' />\n <link href='http://localhost:3001/api/images;instance_id=inst14'
468
+ method='post' rel='create_image' />\n </actions>\n <public_addresses><address
469
+ type='hostname'>img1.inst14.public.com</address></public_addresses>\n <private_addresses><address
470
+ type='hostname'>img1.inst14.private.com</address></private_addresses>\n <storage_volumes></storage_volumes>\n
471
+ \ <authentication type='key'>\n </authentication>\n </instance>\n <instance
472
+ href='http://localhost:3001/api/instances/inst13' id='inst13'>\n <name>i-1362560178</name>\n
473
+ \ <owner_id>mockuser</owner_id>\n <image href='http://localhost:3001/api/images/img1'
474
+ id='img1'></image>\n <realm href='http://localhost:3001/api/realms/eu'
475
+ id='eu'></realm>\n <state>RUNNING</state>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
476
+ id='m1-small'>\n </hardware_profile>\n <actions>\n <link href='http://localhost:3001/api/instances/inst13/reboot'
477
+ method='post' rel='reboot' />\n <link href='http://localhost:3001/api/instances/inst13/stop'
478
+ method='post' rel='stop' />\n <link href='http://localhost:3001/api/instances/inst13/run;id=inst13'
479
+ method='post' rel='run' />\n <link href='http://localhost:3001/api/images;instance_id=inst13'
480
+ method='post' rel='create_image' />\n </actions>\n <public_addresses><address
481
+ type='hostname'>img1.inst13.public.com</address></public_addresses>\n <private_addresses><address
482
+ type='hostname'>img1.inst13.private.com</address></private_addresses>\n <storage_volumes></storage_volumes>\n
483
+ \ <authentication type='key'>\n </authentication>\n </instance>\n</instances>\n"
484
+ http_version:
485
+ recorded_at: Wed, 06 Mar 2013 08:56:18 GMT
486
+ recorded_with: VCR 2.4.0