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.
- checksums.yaml +4 -4
- data/LICENSE +176 -0
- data/NOTICE +8 -0
- data/README.md +73 -0
- data/Rakefile +122 -0
- data/deltacloud-client-vm.gemspec +24 -0
- data/lib/deltacloud_vm/client.rb +79 -0
- data/lib/deltacloud_vm/client/base_error.rb +80 -0
- data/lib/deltacloud_vm/client/connection.rb +139 -0
- data/lib/deltacloud_vm/client/helpers/model_helper.rb +69 -0
- data/lib/deltacloud_vm/client/helpers/property_helper.rb +103 -0
- data/lib/deltacloud_vm/client/helpers/xml_helper.rb +33 -0
- data/lib/deltacloud_vm/client/methods.rb +33 -0
- data/lib/deltacloud_vm/client/methods/address.rb +67 -0
- data/lib/deltacloud_vm/client/methods/api.rb +96 -0
- data/lib/deltacloud_vm/client/methods/backward_compatiblity.rb +72 -0
- data/lib/deltacloud_vm/client/methods/blob.rb +91 -0
- data/lib/deltacloud_vm/client/methods/bucket.rb +55 -0
- data/lib/deltacloud_vm/client/methods/common.rb +46 -0
- data/lib/deltacloud_vm/client/methods/driver.rb +53 -0
- data/lib/deltacloud_vm/client/methods/firewall.rb +67 -0
- data/lib/deltacloud_vm/client/methods/hardware_profile.rb +41 -0
- data/lib/deltacloud_vm/client/methods/image.rb +61 -0
- data/lib/deltacloud_vm/client/methods/instance.rb +141 -0
- data/lib/deltacloud_vm/client/methods/instance_state.rb +41 -0
- data/lib/deltacloud_vm/client/methods/key.rb +58 -0
- data/lib/deltacloud_vm/client/methods/load_balancer.rb +96 -0
- data/lib/deltacloud_vm/client/methods/metric.rb +54 -0
- data/lib/deltacloud_vm/client/methods/realm.rb +42 -0
- data/lib/deltacloud_vm/client/methods/storage_snapshot.rb +61 -0
- data/lib/deltacloud_vm/client/methods/storage_volume.rb +94 -0
- data/lib/deltacloud_vm/client/models.rb +32 -0
- data/lib/deltacloud_vm/client/models/address.rb +57 -0
- data/lib/deltacloud_vm/client/models/base.rb +153 -0
- data/lib/deltacloud_vm/client/models/blob.rb +56 -0
- data/lib/deltacloud_vm/client/models/bucket.rb +65 -0
- data/lib/deltacloud_vm/client/models/driver.rb +87 -0
- data/lib/deltacloud_vm/client/models/firewall.rb +64 -0
- data/lib/deltacloud_vm/client/models/hardware_profile.rb +68 -0
- data/lib/deltacloud_vm/client/models/image.rb +60 -0
- data/lib/deltacloud_vm/client/models/instance.rb +142 -0
- data/lib/deltacloud_vm/client/models/instance_address.rb +40 -0
- data/lib/deltacloud_vm/client/models/instance_state.rb +52 -0
- data/lib/deltacloud_vm/client/models/key.rb +52 -0
- data/lib/deltacloud_vm/client/models/load_balancer.rb +55 -0
- data/lib/deltacloud_vm/client/models/metric.rb +72 -0
- data/lib/deltacloud_vm/client/models/realm.rb +29 -0
- data/lib/deltacloud_vm/client/models/storage_snapshot.rb +54 -0
- data/lib/deltacloud_vm/client/models/storage_volume.rb +96 -0
- data/lib/deltacloud_vm/core_ext.rb +19 -0
- data/lib/deltacloud_vm/core_ext/element.rb +32 -0
- data/lib/deltacloud_vm/core_ext/fixnum.rb +30 -0
- data/lib/deltacloud_vm/core_ext/nil.rb +22 -0
- data/lib/deltacloud_vm/core_ext/string.rb +49 -0
- data/lib/deltacloud_vm/error_response.rb +93 -0
- data/tests/client/client_test.rb +51 -0
- data/tests/client/connection_test.rb +77 -0
- data/tests/core_ext/element_test.rb +40 -0
- data/tests/core_ext/fixnum_test.rb +35 -0
- data/tests/core_ext/nil.rb +27 -0
- data/tests/core_ext/string_test.rb +47 -0
- data/tests/fixtures/instances_cleanup.yml +681 -0
- data/tests/fixtures/test_0001_connects_to_Deltacloud_API.yml +60 -0
- data/tests/fixtures/test_0001_support_cpu.yml +444 -0
- data/tests/fixtures/test_0001_support_original_body.yml +116 -0
- data/tests/fixtures/test_0001_supports_addresses.yml +178 -0
- data/tests/fixtures/test_0001_supports_api_host.yml +60 -0
- data/tests/fixtures/test_0001_supports_attached_.yml +282 -0
- data/tests/fixtures/test_0001_supports_blobs.yml +475 -0
- data/tests/fixtures/test_0001_supports_bucket.yml +200 -0
- data/tests/fixtures/test_0001_supports_buckets.yml +160 -0
- data/tests/fixtures/test_0001_supports_drivers.yml +202 -0
- data/tests/fixtures/test_0001_supports_firewalls.yml +399 -0
- data/tests/fixtures/test_0001_supports_hardware_profiles.yml +262 -0
- data/tests/fixtures/test_0001_supports_images.yml +224 -0
- data/tests/fixtures/test_0001_supports_instance_states.yml +156 -0
- data/tests/fixtures/test_0001_supports_instances.yml +486 -0
- data/tests/fixtures/test_0001_supports_keys.yml +198 -0
- data/tests/fixtures/test_0001_supports_path.yml +60 -0
- data/tests/fixtures/test_0001_supports_realms.yml +152 -0
- data/tests/fixtures/test_0001_supports_storage_snapshots.yml +164 -0
- data/tests/fixtures/test_0001_supports_storage_volumes.yml +176 -0
- data/tests/fixtures/test_0001_supports_to_get_providers.yml +410 -0
- data/tests/fixtures/test_0002_support_blob.yml +148 -0
- data/tests/fixtures/test_0002_support_instance_state.yml +204 -0
- data/tests/fixtures/test_0002_support_memory.yml +444 -0
- data/tests/fixtures/test_0002_support_on_Provider.yml +130 -0
- data/tests/fixtures/test_0002_supports_api_port.yml +60 -0
- data/tests/fixtures/test_0002_supports_api_uri.yml +60 -0
- data/tests/fixtures/test_0002_supports_driver.yml +219 -0
- data/tests/fixtures/test_0002_supports_extract_xml_body_using_faraday_connection.yml +117 -0
- data/tests/fixtures/test_0002_supports_filtering_addresses_by_id_param.yml +156 -0
- data/tests/fixtures/test_0002_supports_filtering_buckets_by_id_param.yml +156 -0
- data/tests/fixtures/test_0002_supports_filtering_firewalls_by_id_param.yml +207 -0
- data/tests/fixtures/test_0002_supports_filtering_hardware_profiles_by_id_param.yml +158 -0
- data/tests/fixtures/test_0002_supports_filtering_images_by_id_param.yml +165 -0
- data/tests/fixtures/test_0002_supports_filtering_instances_by_id_param.yml +164 -0
- data/tests/fixtures/test_0002_supports_filtering_keys_by_id_param.yml +178 -0
- data/tests/fixtures/test_0002_supports_filtering_realms_by_id.yml +104 -0
- data/tests/fixtures/test_0002_supports_filtering_storage_snapshots_by_id_param.yml +155 -0
- data/tests/fixtures/test_0002_supports_filtering_storage_volumes_by_id_param.yml +157 -0
- data/tests/fixtures/test_0002_supports_hardware_profiles.yml +262 -0
- data/tests/fixtures/test_0002_supports_is_compatible_.yml +116 -0
- data/tests/fixtures/test_0002_supports_snapshot_.yml +202 -0
- data/tests/fixtures/test_0002_supports_version.yml +60 -0
- data/tests/fixtures/test_0003_caches_the_API_entrypoint.yml +60 -0
- data/tests/fixtures/test_0003_support_address.yml +197 -0
- data/tests/fixtures/test_0003_support_bucket.yml +198 -0
- data/tests/fixtures/test_0003_support_create_blob.yml +105 -0
- data/tests/fixtures/test_0003_support_create_blob_and_destroy_blob.yml +138 -0
- data/tests/fixtures/test_0003_support_firewall.yml +768 -0
- data/tests/fixtures/test_0003_support_hardware_profile.yml +199 -0
- data/tests/fixtures/test_0003_support_image.yml +207 -0
- data/tests/fixtures/test_0003_support_instance.yml +206 -0
- data/tests/fixtures/test_0003_support_key.yml +220 -0
- data/tests/fixtures/test_0003_support_realm.yml +195 -0
- data/tests/fixtures/test_0003_support_storage.yml +444 -0
- data/tests/fixtures/test_0003_support_storage_snapshot.yml +196 -0
- data/tests/fixtures/test_0003_support_storage_volume.yml +197 -0
- data/tests/fixtures/test_0003_support_to_change_driver_with_Client.yml +72 -0
- data/tests/fixtures/test_0003_supports_connect.yml +60 -0
- data/tests/fixtures/test_0003_supports_extract_xml_body_using_nokogiri_document.yml +117 -0
- data/tests/fixtures/test_0003_supports_instance.yml +396 -0
- data/tests/fixtures/test_0003_supports_is_compatible_.yml +116 -0
- data/tests/fixtures/test_0003_supports_lunch_image.yml +367 -0
- data/tests/fixtures/test_0003_supports_providers.yml +102 -0
- data/tests/fixtures/test_0003_supports_version.yml +60 -0
- data/tests/fixtures/test_0004_support_architecture.yml +444 -0
- data/tests/fixtures/test_0004_support_create_address.yml +197 -0
- data/tests/fixtures/test_0004_support_create_blob_and_destroy_blob_with_meta_params.yml +139 -0
- data/tests/fixtures/test_0004_support_create_bucket.yml +180 -0
- data/tests/fixtures/test_0004_support_create_bucket_and_destroy_bucket.yml +180 -0
- data/tests/fixtures/test_0004_support_create_firewall_and_destroy_firewall.yml +496 -0
- data/tests/fixtures/test_0004_support_create_image_and_destroy_image.yml +1527 -0
- data/tests/fixtures/test_0004_support_create_instance.yml +115 -0
- data/tests/fixtures/test_0004_support_create_key_and_destroy_key.yml +206 -0
- data/tests/fixtures/test_0004_support_create_volume.yml +105 -0
- data/tests/fixtures/test_0004_support_create_volume_and_destroy_volume.yml +181 -0
- data/tests/fixtures/test_0004_support_to_test_of_valid_DC_connection.yml +60 -0
- data/tests/fixtures/test_0004_supports_current_driver.yml +60 -0
- data/tests/fixtures/test_0004_supports_extract_xml_body_using_nokogiri_element.yml +117 -0
- data/tests/fixtures/test_0004_supports_lunch_image.yml +312 -0
- data/tests/fixtures/test_0004_supports_valid_credentials_.yml +215 -0
- data/tests/fixtures/test_0004_supports_with_config.yml +129 -0
- data/tests/fixtures/test_0005_support_attach_storage_volume.yml +102 -0
- data/tests/fixtures/test_0005_support_attach_storage_volume_and_detach_storage_volume.yml +142 -0
- data/tests/fixtures/test_0005_support_create_instance_with_hwp_id.yml +115 -0
- data/tests/fixtures/test_0005_support_opaque_.yml +152 -0
- data/tests/fixtures/test_0005_supports_current_provider.yml +134 -0
- data/tests/fixtures/test_0005_supports_id.yml +116 -0
- data/tests/fixtures/test_0005_supports_switching_drivers_per_instance.yml +129 -0
- data/tests/fixtures/test_0005_supports_use_driver.yml +60 -0
- data/tests/fixtures/test_0006_support_create_instance_with_realm_id.yml +115 -0
- data/tests/fixtures/test_0006_supports_discovered_.yml +60 -0
- data/tests/fixtures/test_0006_supports_supported_collections.yml +60 -0
- data/tests/fixtures/test_0006_supports_switching_providers_per_instance.yml +208 -0
- data/tests/fixtures/test_0007_support_create_instance_with_name.yml +115 -0
- data/tests/fixtures/test_0007_support_switching_provider_without_credentials.yml +208 -0
- data/tests/fixtures/test_0007_supports_support_.yml +60 -0
- data/tests/fixtures/test_0007_supports_valid_credentials_on_class.yml +370 -0
- data/tests/fixtures/test_0008_support_stop_instance.yml +166 -0
- data/tests/fixtures/test_0008_supports_must_support_.yml +60 -0
- data/tests/fixtures/test_0009_support_start_instance.yml +217 -0
- data/tests/fixtures/test_0009_supports_features.yml +60 -0
- data/tests/fixtures/test_0010_support_reboot_instance.yml +166 -0
- data/tests/fixtures/test_0010_supports_feature_.yml +60 -0
- data/tests/helpers/model_test.rb +33 -0
- data/tests/helpers/xml_test.rb +56 -0
- data/tests/methods/address_test.rb +64 -0
- data/tests/methods/api_test.rb +97 -0
- data/tests/methods/backward_compatibility_test.rb +87 -0
- data/tests/methods/blob_test.rb +64 -0
- data/tests/methods/bucket_test.rb +62 -0
- data/tests/methods/driver_test.rb +48 -0
- data/tests/methods/firewall_test.rb +84 -0
- data/tests/methods/hardware_profile_test.rb +53 -0
- data/tests/methods/image_test.rb +64 -0
- data/tests/methods/instance_state_test.rb +43 -0
- data/tests/methods/instance_test.rb +126 -0
- data/tests/methods/key_test.rb +63 -0
- data/tests/methods/realm_test.rb +50 -0
- data/tests/methods/storage_snapshot_test.rb +53 -0
- data/tests/methods/storage_volume_test.rb +81 -0
- data/tests/models/blob_test.rb +40 -0
- data/tests/models/bucket_test.rb +37 -0
- data/tests/models/driver_test.rb +42 -0
- data/tests/models/hardware_profile_test.rb +80 -0
- data/tests/models/image_test.rb +65 -0
- data/tests/models/storage_volume_test.rb +52 -0
- data/tests/test_helper.rb +64 -0
- metadata +191 -2
@@ -0,0 +1,178 @@
|
|
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/keys?id=test-key
|
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.0009126663208007812'
|
82
|
+
server:
|
83
|
+
- Apache-DeltacloudVM/1.1.1
|
84
|
+
x-deltacloud-driver:
|
85
|
+
- mock
|
86
|
+
content-length:
|
87
|
+
- '2299'
|
88
|
+
x-content-type-options:
|
89
|
+
- nosniff
|
90
|
+
etag:
|
91
|
+
- b5777985297c503ddf06535a89966e7c
|
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<keys>\n <key href='http://localhost:3001/api/keys/test-key'
|
101
|
+
id='test-key' type='key'>\n <name>test-key</name>\n <actions>\n <link
|
102
|
+
href='http://localhost:3001/api/keys/test-key' method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\n </key>\n</keys>\n"
|
127
|
+
http_version:
|
128
|
+
recorded_at: Wed, 06 Mar 2013 08:56:18 GMT
|
129
|
+
- request:
|
130
|
+
method: get
|
131
|
+
uri: http://localhost:3001/api/keys?id=unknown
|
132
|
+
body:
|
133
|
+
encoding: US-ASCII
|
134
|
+
string: ''
|
135
|
+
headers:
|
136
|
+
Accept:
|
137
|
+
- application/xml
|
138
|
+
Authorization:
|
139
|
+
- Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
|
140
|
+
User-Agent:
|
141
|
+
- Faraday v0.8.6
|
142
|
+
response:
|
143
|
+
status:
|
144
|
+
code: 200
|
145
|
+
message:
|
146
|
+
headers:
|
147
|
+
content-type:
|
148
|
+
- application/xml
|
149
|
+
x-backend-runtime:
|
150
|
+
- '0.0008585453033447266'
|
151
|
+
server:
|
152
|
+
- Apache-DeltacloudVM/1.1.1
|
153
|
+
x-deltacloud-driver:
|
154
|
+
- mock
|
155
|
+
content-length:
|
156
|
+
- '55'
|
157
|
+
x-content-type-options:
|
158
|
+
- nosniff
|
159
|
+
etag:
|
160
|
+
- 2fb4eb7676058e511b73644ff4369884
|
161
|
+
cache-control:
|
162
|
+
- max-age=0, private, must-revalidate
|
163
|
+
date:
|
164
|
+
- Wed, 06 Mar 2013 08:56:19 GMT
|
165
|
+
connection:
|
166
|
+
- close
|
167
|
+
body:
|
168
|
+
encoding: US-ASCII
|
169
|
+
string: ! '<?xml version=''1.0'' encoding=''utf-8'' ?>
|
170
|
+
|
171
|
+
<keys>
|
172
|
+
|
173
|
+
</keys>
|
174
|
+
|
175
|
+
'
|
176
|
+
http_version:
|
177
|
+
recorded_at: Wed, 06 Mar 2013 08:56:19 GMT
|
178
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,104 @@
|
|
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:19 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:19 GMT
|
60
|
+
- request:
|
61
|
+
method: get
|
62
|
+
uri: http://localhost:3001/api/realms?id=eu
|
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.00010061264038085938'
|
82
|
+
server:
|
83
|
+
- Apache-DeltacloudVM/1.1.1
|
84
|
+
x-deltacloud-driver:
|
85
|
+
- mock
|
86
|
+
content-length:
|
87
|
+
- '184'
|
88
|
+
x-content-type-options:
|
89
|
+
- nosniff
|
90
|
+
etag:
|
91
|
+
- d7b06f0f8d745d59818cf2259b19af63
|
92
|
+
cache-control:
|
93
|
+
- max-age=0, private, must-revalidate
|
94
|
+
date:
|
95
|
+
- Wed, 06 Mar 2013 08:56:19 GMT
|
96
|
+
connection:
|
97
|
+
- close
|
98
|
+
body:
|
99
|
+
encoding: US-ASCII
|
100
|
+
string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<realms>\n <realm href='http://localhost:3001/api/realms/eu'
|
101
|
+
id='eu'>\n <name>Europe</name>\n <state>AVAILABLE</state>\n </realm>\n</realms>\n"
|
102
|
+
http_version:
|
103
|
+
recorded_at: Wed, 06 Mar 2013 08:56:19 GMT
|
104
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,155 @@
|
|
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:19 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:19 GMT
|
60
|
+
- request:
|
61
|
+
method: get
|
62
|
+
uri: http://localhost:3001/api/storage_snapshots?id=snap1
|
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.0009429454803466797'
|
82
|
+
server:
|
83
|
+
- Apache-DeltacloudVM/1.1.1
|
84
|
+
x-deltacloud-driver:
|
85
|
+
- mock
|
86
|
+
content-length:
|
87
|
+
- '369'
|
88
|
+
x-content-type-options:
|
89
|
+
- nosniff
|
90
|
+
etag:
|
91
|
+
- 660ce0a308d333fd4971e02b01839878
|
92
|
+
cache-control:
|
93
|
+
- max-age=0, private, must-revalidate
|
94
|
+
date:
|
95
|
+
- Wed, 06 Mar 2013 08:56:19 GMT
|
96
|
+
connection:
|
97
|
+
- close
|
98
|
+
body:
|
99
|
+
encoding: US-ASCII
|
100
|
+
string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<storage_snapshots>\n <storage_snapshot
|
101
|
+
href='http://localhost:3001/api/storage_snapshots/snap1' id='snap1'>\n <name>snap1</name>\n
|
102
|
+
\ <created>Wed Jul 29 18:15:24 UTC 2009</created>\n <storage_volume href='http://localhost:3001/api/storage_volumes/vol1'
|
103
|
+
id='vol1'></storage_volume>\n </storage_snapshot>\n</storage_snapshots>\n"
|
104
|
+
http_version:
|
105
|
+
recorded_at: Wed, 06 Mar 2013 08:56:19 GMT
|
106
|
+
- request:
|
107
|
+
method: get
|
108
|
+
uri: http://localhost:3001/api/storage_snapshots?id=unknown
|
109
|
+
body:
|
110
|
+
encoding: US-ASCII
|
111
|
+
string: ''
|
112
|
+
headers:
|
113
|
+
Accept:
|
114
|
+
- application/xml
|
115
|
+
Authorization:
|
116
|
+
- Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
|
117
|
+
User-Agent:
|
118
|
+
- Faraday v0.8.6
|
119
|
+
response:
|
120
|
+
status:
|
121
|
+
code: 200
|
122
|
+
message:
|
123
|
+
headers:
|
124
|
+
content-type:
|
125
|
+
- application/xml
|
126
|
+
x-backend-runtime:
|
127
|
+
- '0.0005507469177246094'
|
128
|
+
server:
|
129
|
+
- Apache-DeltacloudVM/1.1.1
|
130
|
+
x-deltacloud-driver:
|
131
|
+
- mock
|
132
|
+
content-length:
|
133
|
+
- '81'
|
134
|
+
x-content-type-options:
|
135
|
+
- nosniff
|
136
|
+
etag:
|
137
|
+
- 02d75d472b481145bcc36b841e69e89b
|
138
|
+
cache-control:
|
139
|
+
- max-age=0, private, must-revalidate
|
140
|
+
date:
|
141
|
+
- Wed, 06 Mar 2013 08:56:19 GMT
|
142
|
+
connection:
|
143
|
+
- close
|
144
|
+
body:
|
145
|
+
encoding: US-ASCII
|
146
|
+
string: ! '<?xml version=''1.0'' encoding=''utf-8'' ?>
|
147
|
+
|
148
|
+
<storage_snapshots>
|
149
|
+
|
150
|
+
</storage_snapshots>
|
151
|
+
|
152
|
+
'
|
153
|
+
http_version:
|
154
|
+
recorded_at: Wed, 06 Mar 2013 08:56:19 GMT
|
155
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,157 @@
|
|
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:19 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:19 GMT
|
60
|
+
- request:
|
61
|
+
method: get
|
62
|
+
uri: http://localhost:3001/api/storage_volumes?id=vol1
|
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.0027489662170410156'
|
82
|
+
server:
|
83
|
+
- Apache-DeltacloudVM/1.1.1
|
84
|
+
x-deltacloud-driver:
|
85
|
+
- mock
|
86
|
+
content-length:
|
87
|
+
- '419'
|
88
|
+
x-content-type-options:
|
89
|
+
- nosniff
|
90
|
+
etag:
|
91
|
+
- c7cb59917b9fdfa7d780d37550def67b
|
92
|
+
cache-control:
|
93
|
+
- max-age=0, private, must-revalidate
|
94
|
+
date:
|
95
|
+
- Wed, 06 Mar 2013 08:56:19 GMT
|
96
|
+
connection:
|
97
|
+
- close
|
98
|
+
body:
|
99
|
+
encoding: US-ASCII
|
100
|
+
string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<storage_volumes>\n <storage_volume
|
101
|
+
href='http://localhost:3001/api/storage_volumes/vol1' id='vol1'>\n <created>Thu
|
102
|
+
Jul 30 14:35:11 UTC 2009</created>\n <capacity unit='GB'>1</capacity>\n
|
103
|
+
\ <name>vol1</name>\n <realm href='http://localhost:3001/api/realms/us'
|
104
|
+
id='us'></realm>\n <realm_id>us</realm_id>\n <state>AVAILABLE</state>\n
|
105
|
+
\ </storage_volume>\n</storage_volumes>\n"
|
106
|
+
http_version:
|
107
|
+
recorded_at: Wed, 06 Mar 2013 08:56:19 GMT
|
108
|
+
- request:
|
109
|
+
method: get
|
110
|
+
uri: http://localhost:3001/api/storage_volumes?id=unknown
|
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
|
+
x-backend-runtime:
|
129
|
+
- '0.0023488998413085938'
|
130
|
+
server:
|
131
|
+
- Apache-DeltacloudVM/1.1.1
|
132
|
+
x-deltacloud-driver:
|
133
|
+
- mock
|
134
|
+
content-length:
|
135
|
+
- '77'
|
136
|
+
x-content-type-options:
|
137
|
+
- nosniff
|
138
|
+
etag:
|
139
|
+
- fddd6a94c1e06c66ffa70d87512f89d9
|
140
|
+
cache-control:
|
141
|
+
- max-age=0, private, must-revalidate
|
142
|
+
date:
|
143
|
+
- Wed, 06 Mar 2013 08:56:19 GMT
|
144
|
+
connection:
|
145
|
+
- close
|
146
|
+
body:
|
147
|
+
encoding: US-ASCII
|
148
|
+
string: ! '<?xml version=''1.0'' encoding=''utf-8'' ?>
|
149
|
+
|
150
|
+
<storage_volumes>
|
151
|
+
|
152
|
+
</storage_volumes>
|
153
|
+
|
154
|
+
'
|
155
|
+
http_version:
|
156
|
+
recorded_at: Wed, 06 Mar 2013 08:56:19 GMT
|
157
|
+
recorded_with: VCR 2.4.0
|