deltacloud-client 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +73 -0
- data/Rakefile +88 -5
- data/lib/deltacloud/client.rb +79 -0
- data/lib/deltacloud/client/base_error.rb +80 -0
- data/lib/deltacloud/client/connection.rb +139 -0
- data/lib/deltacloud/client/helpers/model_helper.rb +69 -0
- data/lib/deltacloud/client/helpers/property_helper.rb +103 -0
- data/lib/deltacloud/client/helpers/xml_helper.rb +33 -0
- data/lib/deltacloud/client/methods.rb +33 -0
- data/lib/deltacloud/client/methods/address.rb +67 -0
- data/lib/deltacloud/client/methods/api.rb +96 -0
- data/lib/deltacloud/client/methods/backward_compatiblity.rb +72 -0
- data/lib/deltacloud/client/methods/blob.rb +91 -0
- data/lib/deltacloud/client/methods/bucket.rb +55 -0
- data/lib/deltacloud/client/methods/common.rb +46 -0
- data/lib/deltacloud/client/methods/driver.rb +53 -0
- data/lib/deltacloud/client/methods/firewall.rb +67 -0
- data/lib/deltacloud/client/methods/hardware_profile.rb +41 -0
- data/lib/deltacloud/client/methods/image.rb +61 -0
- data/lib/deltacloud/client/methods/instance.rb +141 -0
- data/lib/deltacloud/client/methods/instance_state.rb +41 -0
- data/lib/deltacloud/client/methods/key.rb +58 -0
- data/lib/deltacloud/client/methods/load_balancer.rb +96 -0
- data/lib/deltacloud/client/methods/metric.rb +54 -0
- data/lib/deltacloud/client/methods/realm.rb +42 -0
- data/lib/deltacloud/client/methods/storage_snapshot.rb +61 -0
- data/lib/deltacloud/client/methods/storage_volume.rb +94 -0
- data/lib/deltacloud/client/models.rb +32 -0
- data/lib/deltacloud/client/models/address.rb +57 -0
- data/lib/deltacloud/client/models/base.rb +153 -0
- data/lib/deltacloud/client/models/blob.rb +56 -0
- data/lib/deltacloud/client/models/bucket.rb +65 -0
- data/lib/deltacloud/client/models/driver.rb +87 -0
- data/lib/deltacloud/client/models/firewall.rb +64 -0
- data/lib/deltacloud/client/models/hardware_profile.rb +68 -0
- data/lib/deltacloud/client/models/image.rb +60 -0
- data/lib/deltacloud/client/models/instance.rb +142 -0
- data/lib/deltacloud/client/models/instance_address.rb +40 -0
- data/lib/{instance_state.rb → deltacloud/client/models/instance_state.rb} +11 -3
- data/lib/deltacloud/client/models/key.rb +52 -0
- data/lib/deltacloud/client/models/load_balancer.rb +55 -0
- data/lib/deltacloud/client/models/metric.rb +72 -0
- data/lib/deltacloud/client/models/realm.rb +29 -0
- data/lib/deltacloud/client/models/storage_snapshot.rb +54 -0
- data/lib/deltacloud/client/models/storage_volume.rb +96 -0
- data/lib/deltacloud/core_ext.rb +19 -0
- data/lib/deltacloud/core_ext/element.rb +32 -0
- data/lib/deltacloud/core_ext/fixnum.rb +30 -0
- data/lib/deltacloud/core_ext/nil.rb +22 -0
- data/lib/{string.rb → deltacloud/core_ext/string.rb} +16 -26
- data/lib/deltacloud/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 +59 -11
- metadata +392 -41
- data/lib/base_object.rb +0 -386
- data/lib/client_bucket_methods.rb +0 -69
- data/lib/deltacloud.rb +0 -486
- data/lib/documentation.rb +0 -59
- data/lib/errors.rb +0 -140
- data/lib/hwp_properties.rb +0 -61
- data/tests/buckets_test.rb +0 -141
- data/tests/client_test.rb +0 -59
- data/tests/content_negotiation_test.rb +0 -127
- data/tests/errors_test.rb +0 -57
- data/tests/hardware_profiles_test.rb +0 -75
- data/tests/images_test.rb +0 -102
- data/tests/instance_states_test.rb +0 -66
- data/tests/instances_test.rb +0 -203
- data/tests/keys_test.rb +0 -81
- data/tests/realms_test.rb +0 -64
- data/tests/storage_snapshot_test.rb +0 -76
- data/tests/storage_volume_test.rb +0 -86
@@ -0,0 +1,148 @@
|
|
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-Deltacloud/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:16 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:16 GMT
|
60
|
+
- request:
|
61
|
+
method: get
|
62
|
+
uri: http://localhost:3001/api/buckets/bucket1/blob1
|
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-Deltacloud/1.1.1
|
82
|
+
x-deltacloud-driver:
|
83
|
+
- mock
|
84
|
+
content-length:
|
85
|
+
- '485'
|
86
|
+
x-content-type-options:
|
87
|
+
- nosniff
|
88
|
+
etag:
|
89
|
+
- 6ffb9a8c697a593bc98fed727e98f855
|
90
|
+
cache-control:
|
91
|
+
- max-age=0, private, must-revalidate
|
92
|
+
date:
|
93
|
+
- Wed, 06 Mar 2013 08:56:16 GMT
|
94
|
+
connection:
|
95
|
+
- close
|
96
|
+
body:
|
97
|
+
encoding: US-ASCII
|
98
|
+
string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<blob href='http://localhost:3001/api/buckets/bucket1/blob1'
|
99
|
+
id='blob1'>\n <bucket>bucket1</bucket>\n <content_length>17</content_length>\n
|
100
|
+
\ <content_type>text/plain</content_type>\n <last_modified>2010-09-23 17:44:54
|
101
|
+
+0200</last_modified>\n <user_metadata>\n <entry key='SOMENEWKEY'><![CDATA[NEWVALUE]]></entry>\n
|
102
|
+
\ </user_metadata>\n <content href='http://localhost:3001/api/buckets/bucket1/blob1/content'
|
103
|
+
rel='blob_content'></content>\n</blob>\n"
|
104
|
+
http_version:
|
105
|
+
recorded_at: Wed, 06 Mar 2013 08:56:16 GMT
|
106
|
+
- request:
|
107
|
+
method: get
|
108
|
+
uri: http://localhost:3001/api/buckets/bucket1/foo
|
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: 404
|
122
|
+
message:
|
123
|
+
headers:
|
124
|
+
content-type:
|
125
|
+
- application/xml
|
126
|
+
server:
|
127
|
+
- Apache-Deltacloud/1.1.1
|
128
|
+
x-deltacloud-driver:
|
129
|
+
- mock
|
130
|
+
content-length:
|
131
|
+
- '485'
|
132
|
+
x-content-type-options:
|
133
|
+
- nosniff
|
134
|
+
date:
|
135
|
+
- Wed, 06 Mar 2013 08:56:16 GMT
|
136
|
+
connection:
|
137
|
+
- close
|
138
|
+
body:
|
139
|
+
encoding: US-ASCII
|
140
|
+
string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<error status='404' url='/api/buckets/bucket1/foo'>\n
|
141
|
+
\ <backend driver='mock' provider='default'></backend>\n <code>404</code>\n
|
142
|
+
\ <message><![CDATA[Not Found]]></message>\n <backtrace></backtrace>\n <request>\n
|
143
|
+
\ <param name='splat'><![CDATA[[]]]></param>\n <param name='captures'><![CDATA[[\"bucket1\",
|
144
|
+
\"foo\"]]]></param>\n <param name='id'><![CDATA[\"bucket1\"]]></param>\n
|
145
|
+
\ <param name='blob_id'><![CDATA[\"foo\"]]></param>\n </request>\n</error>\n"
|
146
|
+
http_version:
|
147
|
+
recorded_at: Wed, 06 Mar 2013 08:56:16 GMT
|
148
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,204 @@
|
|
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-Deltacloud/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-Deltacloud/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-Deltacloud/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
|
+
- request:
|
157
|
+
method: get
|
158
|
+
uri: http://localhost:3001/api/instance_states
|
159
|
+
body:
|
160
|
+
encoding: US-ASCII
|
161
|
+
string: ''
|
162
|
+
headers:
|
163
|
+
Accept:
|
164
|
+
- application/xml
|
165
|
+
Authorization:
|
166
|
+
- Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
|
167
|
+
User-Agent:
|
168
|
+
- Faraday v0.8.6
|
169
|
+
response:
|
170
|
+
status:
|
171
|
+
code: 200
|
172
|
+
message:
|
173
|
+
headers:
|
174
|
+
content-type:
|
175
|
+
- application/xml
|
176
|
+
server:
|
177
|
+
- Apache-Deltacloud/1.1.1
|
178
|
+
x-deltacloud-driver:
|
179
|
+
- mock
|
180
|
+
content-length:
|
181
|
+
- '543'
|
182
|
+
x-content-type-options:
|
183
|
+
- nosniff
|
184
|
+
etag:
|
185
|
+
- fa9267298fdf7b936d9635aa5ce29640
|
186
|
+
cache-control:
|
187
|
+
- max-age=0, private, must-revalidate
|
188
|
+
date:
|
189
|
+
- Wed, 06 Mar 2013 08:56:18 GMT
|
190
|
+
connection:
|
191
|
+
- close
|
192
|
+
body:
|
193
|
+
encoding: US-ASCII
|
194
|
+
string: ! "<states>\n <state name='start'>\n <transition action='create'
|
195
|
+
to='pending'></transition>\n </state>\n <state name='pending'>\n <transition
|
196
|
+
auto='true' to='running'></transition>\n </state>\n <state name='running'>\n
|
197
|
+
\ <transition action='reboot' to='running'></transition>\n <transition
|
198
|
+
action='stop' to='stopped'></transition>\n </state>\n <state name='stopped'>\n
|
199
|
+
\ <transition action='start' to='running'></transition>\n <transition
|
200
|
+
action='destroy' to='finish'></transition>\n </state>\n <state name='finish'>\n
|
201
|
+
\ </state>\n</states>\n"
|
202
|
+
http_version:
|
203
|
+
recorded_at: Wed, 06 Mar 2013 08:56:18 GMT
|
204
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,444 @@
|
|
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-Deltacloud/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 15:47:04 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 15:47:04 GMT
|
60
|
+
- request:
|
61
|
+
method: get
|
62
|
+
uri: http://localhost:3001/api/hardware_profiles/m1-small
|
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
|
+
- '7.009506225585938e-05'
|
82
|
+
server:
|
83
|
+
- Apache-Deltacloud/1.1.1
|
84
|
+
x-deltacloud-driver:
|
85
|
+
- mock
|
86
|
+
content-length:
|
87
|
+
- '465'
|
88
|
+
x-content-type-options:
|
89
|
+
- nosniff
|
90
|
+
etag:
|
91
|
+
- 28c52ced85d102f8d21eafb861582994
|
92
|
+
cache-control:
|
93
|
+
- max-age=0, private, must-revalidate
|
94
|
+
date:
|
95
|
+
- Wed, 06 Mar 2013 15:47:04 GMT
|
96
|
+
connection:
|
97
|
+
- close
|
98
|
+
body:
|
99
|
+
encoding: US-ASCII
|
100
|
+
string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
|
101
|
+
id='m1-small'>\n <id>m1-small</id>\n <name>m1-small</name>\n <property
|
102
|
+
kind='fixed' name='cpu' unit='count' value='1' />\n <property kind='fixed'
|
103
|
+
name='memory' unit='MB' value='1740.8' />\n <property kind='fixed' name='storage'
|
104
|
+
unit='GB' value='160' />\n <property kind='fixed' name='architecture' unit='label'
|
105
|
+
value='i386' />\n</hardware_profile>\n"
|
106
|
+
http_version:
|
107
|
+
recorded_at: Wed, 06 Mar 2013 15:47:04 GMT
|
108
|
+
- request:
|
109
|
+
method: get
|
110
|
+
uri: http://localhost:3001/api/hardware_profiles/m1-small
|
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
|
+
- '8.153915405273438e-05'
|
130
|
+
server:
|
131
|
+
- Apache-Deltacloud/1.1.1
|
132
|
+
x-deltacloud-driver:
|
133
|
+
- mock
|
134
|
+
content-length:
|
135
|
+
- '465'
|
136
|
+
x-content-type-options:
|
137
|
+
- nosniff
|
138
|
+
etag:
|
139
|
+
- 28c52ced85d102f8d21eafb861582994
|
140
|
+
cache-control:
|
141
|
+
- max-age=0, private, must-revalidate
|
142
|
+
date:
|
143
|
+
- Wed, 06 Mar 2013 15:47:04 GMT
|
144
|
+
connection:
|
145
|
+
- close
|
146
|
+
body:
|
147
|
+
encoding: US-ASCII
|
148
|
+
string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
|
149
|
+
id='m1-small'>\n <id>m1-small</id>\n <name>m1-small</name>\n <property
|
150
|
+
kind='fixed' name='cpu' unit='count' value='1' />\n <property kind='fixed'
|
151
|
+
name='memory' unit='MB' value='1740.8' />\n <property kind='fixed' name='storage'
|
152
|
+
unit='GB' value='160' />\n <property kind='fixed' name='architecture' unit='label'
|
153
|
+
value='i386' />\n</hardware_profile>\n"
|
154
|
+
http_version:
|
155
|
+
recorded_at: Wed, 06 Mar 2013 15:47:04 GMT
|
156
|
+
- request:
|
157
|
+
method: get
|
158
|
+
uri: http://localhost:3001/api/hardware_profiles/m1-small
|
159
|
+
body:
|
160
|
+
encoding: US-ASCII
|
161
|
+
string: ''
|
162
|
+
headers:
|
163
|
+
Accept:
|
164
|
+
- application/xml
|
165
|
+
Authorization:
|
166
|
+
- Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
|
167
|
+
User-Agent:
|
168
|
+
- Faraday v0.8.6
|
169
|
+
response:
|
170
|
+
status:
|
171
|
+
code: 200
|
172
|
+
message:
|
173
|
+
headers:
|
174
|
+
content-type:
|
175
|
+
- application/xml
|
176
|
+
x-backend-runtime:
|
177
|
+
- '0.00016379356384277344'
|
178
|
+
server:
|
179
|
+
- Apache-Deltacloud/1.1.1
|
180
|
+
x-deltacloud-driver:
|
181
|
+
- mock
|
182
|
+
content-length:
|
183
|
+
- '465'
|
184
|
+
x-content-type-options:
|
185
|
+
- nosniff
|
186
|
+
etag:
|
187
|
+
- 28c52ced85d102f8d21eafb861582994
|
188
|
+
cache-control:
|
189
|
+
- max-age=0, private, must-revalidate
|
190
|
+
date:
|
191
|
+
- Wed, 06 Mar 2013 15:47:04 GMT
|
192
|
+
connection:
|
193
|
+
- close
|
194
|
+
body:
|
195
|
+
encoding: US-ASCII
|
196
|
+
string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
|
197
|
+
id='m1-small'>\n <id>m1-small</id>\n <name>m1-small</name>\n <property
|
198
|
+
kind='fixed' name='cpu' unit='count' value='1' />\n <property kind='fixed'
|
199
|
+
name='memory' unit='MB' value='1740.8' />\n <property kind='fixed' name='storage'
|
200
|
+
unit='GB' value='160' />\n <property kind='fixed' name='architecture' unit='label'
|
201
|
+
value='i386' />\n</hardware_profile>\n"
|
202
|
+
http_version:
|
203
|
+
recorded_at: Wed, 06 Mar 2013 15:47:04 GMT
|
204
|
+
- request:
|
205
|
+
method: get
|
206
|
+
uri: http://localhost:3001/api/hardware_profiles/m1-small
|
207
|
+
body:
|
208
|
+
encoding: US-ASCII
|
209
|
+
string: ''
|
210
|
+
headers:
|
211
|
+
Accept:
|
212
|
+
- application/xml
|
213
|
+
Authorization:
|
214
|
+
- Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
|
215
|
+
User-Agent:
|
216
|
+
- Faraday v0.8.6
|
217
|
+
response:
|
218
|
+
status:
|
219
|
+
code: 200
|
220
|
+
message:
|
221
|
+
headers:
|
222
|
+
content-type:
|
223
|
+
- application/xml
|
224
|
+
x-backend-runtime:
|
225
|
+
- '0.00017213821411132812'
|
226
|
+
server:
|
227
|
+
- Apache-Deltacloud/1.1.1
|
228
|
+
x-deltacloud-driver:
|
229
|
+
- mock
|
230
|
+
content-length:
|
231
|
+
- '465'
|
232
|
+
x-content-type-options:
|
233
|
+
- nosniff
|
234
|
+
etag:
|
235
|
+
- 28c52ced85d102f8d21eafb861582994
|
236
|
+
cache-control:
|
237
|
+
- max-age=0, private, must-revalidate
|
238
|
+
date:
|
239
|
+
- Wed, 06 Mar 2013 15:47:04 GMT
|
240
|
+
connection:
|
241
|
+
- close
|
242
|
+
body:
|
243
|
+
encoding: US-ASCII
|
244
|
+
string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
|
245
|
+
id='m1-small'>\n <id>m1-small</id>\n <name>m1-small</name>\n <property
|
246
|
+
kind='fixed' name='cpu' unit='count' value='1' />\n <property kind='fixed'
|
247
|
+
name='memory' unit='MB' value='1740.8' />\n <property kind='fixed' name='storage'
|
248
|
+
unit='GB' value='160' />\n <property kind='fixed' name='architecture' unit='label'
|
249
|
+
value='i386' />\n</hardware_profile>\n"
|
250
|
+
http_version:
|
251
|
+
recorded_at: Wed, 06 Mar 2013 15:47:04 GMT
|
252
|
+
- request:
|
253
|
+
method: get
|
254
|
+
uri: http://localhost:3001/api/hardware_profiles/m1-small
|
255
|
+
body:
|
256
|
+
encoding: US-ASCII
|
257
|
+
string: ''
|
258
|
+
headers:
|
259
|
+
Accept:
|
260
|
+
- application/xml
|
261
|
+
Authorization:
|
262
|
+
- Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
|
263
|
+
User-Agent:
|
264
|
+
- Faraday v0.8.6
|
265
|
+
response:
|
266
|
+
status:
|
267
|
+
code: 200
|
268
|
+
message:
|
269
|
+
headers:
|
270
|
+
content-type:
|
271
|
+
- application/xml
|
272
|
+
x-backend-runtime:
|
273
|
+
- '0.00012111663818359375'
|
274
|
+
server:
|
275
|
+
- Apache-Deltacloud/1.1.1
|
276
|
+
x-deltacloud-driver:
|
277
|
+
- mock
|
278
|
+
content-length:
|
279
|
+
- '465'
|
280
|
+
x-content-type-options:
|
281
|
+
- nosniff
|
282
|
+
etag:
|
283
|
+
- 28c52ced85d102f8d21eafb861582994
|
284
|
+
cache-control:
|
285
|
+
- max-age=0, private, must-revalidate
|
286
|
+
date:
|
287
|
+
- Wed, 06 Mar 2013 15:47:04 GMT
|
288
|
+
connection:
|
289
|
+
- close
|
290
|
+
body:
|
291
|
+
encoding: US-ASCII
|
292
|
+
string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
|
293
|
+
id='m1-small'>\n <id>m1-small</id>\n <name>m1-small</name>\n <property
|
294
|
+
kind='fixed' name='cpu' unit='count' value='1' />\n <property kind='fixed'
|
295
|
+
name='memory' unit='MB' value='1740.8' />\n <property kind='fixed' name='storage'
|
296
|
+
unit='GB' value='160' />\n <property kind='fixed' name='architecture' unit='label'
|
297
|
+
value='i386' />\n</hardware_profile>\n"
|
298
|
+
http_version:
|
299
|
+
recorded_at: Wed, 06 Mar 2013 15:47:04 GMT
|
300
|
+
- request:
|
301
|
+
method: get
|
302
|
+
uri: http://localhost:3001/api/hardware_profiles/m1-small
|
303
|
+
body:
|
304
|
+
encoding: US-ASCII
|
305
|
+
string: ''
|
306
|
+
headers:
|
307
|
+
Accept:
|
308
|
+
- application/xml
|
309
|
+
Authorization:
|
310
|
+
- Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
|
311
|
+
User-Agent:
|
312
|
+
- Faraday v0.8.6
|
313
|
+
response:
|
314
|
+
status:
|
315
|
+
code: 200
|
316
|
+
message:
|
317
|
+
headers:
|
318
|
+
content-type:
|
319
|
+
- application/xml
|
320
|
+
x-backend-runtime:
|
321
|
+
- '5.53131103515625e-05'
|
322
|
+
server:
|
323
|
+
- Apache-Deltacloud/1.1.1
|
324
|
+
x-deltacloud-driver:
|
325
|
+
- mock
|
326
|
+
content-length:
|
327
|
+
- '465'
|
328
|
+
x-content-type-options:
|
329
|
+
- nosniff
|
330
|
+
etag:
|
331
|
+
- 28c52ced85d102f8d21eafb861582994
|
332
|
+
cache-control:
|
333
|
+
- max-age=0, private, must-revalidate
|
334
|
+
date:
|
335
|
+
- Wed, 06 Mar 2013 15:47:04 GMT
|
336
|
+
connection:
|
337
|
+
- close
|
338
|
+
body:
|
339
|
+
encoding: US-ASCII
|
340
|
+
string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
|
341
|
+
id='m1-small'>\n <id>m1-small</id>\n <name>m1-small</name>\n <property
|
342
|
+
kind='fixed' name='cpu' unit='count' value='1' />\n <property kind='fixed'
|
343
|
+
name='memory' unit='MB' value='1740.8' />\n <property kind='fixed' name='storage'
|
344
|
+
unit='GB' value='160' />\n <property kind='fixed' name='architecture' unit='label'
|
345
|
+
value='i386' />\n</hardware_profile>\n"
|
346
|
+
http_version:
|
347
|
+
recorded_at: Wed, 06 Mar 2013 15:47:04 GMT
|
348
|
+
- request:
|
349
|
+
method: get
|
350
|
+
uri: http://localhost:3001/api/hardware_profiles/m1-small
|
351
|
+
body:
|
352
|
+
encoding: US-ASCII
|
353
|
+
string: ''
|
354
|
+
headers:
|
355
|
+
Accept:
|
356
|
+
- application/xml
|
357
|
+
Authorization:
|
358
|
+
- Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
|
359
|
+
User-Agent:
|
360
|
+
- Faraday v0.8.6
|
361
|
+
response:
|
362
|
+
status:
|
363
|
+
code: 200
|
364
|
+
message:
|
365
|
+
headers:
|
366
|
+
content-type:
|
367
|
+
- application/xml
|
368
|
+
x-backend-runtime:
|
369
|
+
- '6.389617919921875e-05'
|
370
|
+
server:
|
371
|
+
- Apache-Deltacloud/1.1.1
|
372
|
+
x-deltacloud-driver:
|
373
|
+
- mock
|
374
|
+
content-length:
|
375
|
+
- '465'
|
376
|
+
x-content-type-options:
|
377
|
+
- nosniff
|
378
|
+
etag:
|
379
|
+
- 28c52ced85d102f8d21eafb861582994
|
380
|
+
cache-control:
|
381
|
+
- max-age=0, private, must-revalidate
|
382
|
+
date:
|
383
|
+
- Wed, 06 Mar 2013 15:47:04 GMT
|
384
|
+
connection:
|
385
|
+
- close
|
386
|
+
body:
|
387
|
+
encoding: US-ASCII
|
388
|
+
string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
|
389
|
+
id='m1-small'>\n <id>m1-small</id>\n <name>m1-small</name>\n <property
|
390
|
+
kind='fixed' name='cpu' unit='count' value='1' />\n <property kind='fixed'
|
391
|
+
name='memory' unit='MB' value='1740.8' />\n <property kind='fixed' name='storage'
|
392
|
+
unit='GB' value='160' />\n <property kind='fixed' name='architecture' unit='label'
|
393
|
+
value='i386' />\n</hardware_profile>\n"
|
394
|
+
http_version:
|
395
|
+
recorded_at: Wed, 06 Mar 2013 15:47:04 GMT
|
396
|
+
- request:
|
397
|
+
method: get
|
398
|
+
uri: http://localhost:3001/api/hardware_profiles/m1-small
|
399
|
+
body:
|
400
|
+
encoding: US-ASCII
|
401
|
+
string: ''
|
402
|
+
headers:
|
403
|
+
Accept:
|
404
|
+
- application/xml
|
405
|
+
Authorization:
|
406
|
+
- Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
|
407
|
+
User-Agent:
|
408
|
+
- Faraday v0.8.6
|
409
|
+
response:
|
410
|
+
status:
|
411
|
+
code: 200
|
412
|
+
message:
|
413
|
+
headers:
|
414
|
+
content-type:
|
415
|
+
- application/xml
|
416
|
+
x-backend-runtime:
|
417
|
+
- '5.888938903808594e-05'
|
418
|
+
server:
|
419
|
+
- Apache-Deltacloud/1.1.1
|
420
|
+
x-deltacloud-driver:
|
421
|
+
- mock
|
422
|
+
content-length:
|
423
|
+
- '465'
|
424
|
+
x-content-type-options:
|
425
|
+
- nosniff
|
426
|
+
etag:
|
427
|
+
- 28c52ced85d102f8d21eafb861582994
|
428
|
+
cache-control:
|
429
|
+
- max-age=0, private, must-revalidate
|
430
|
+
date:
|
431
|
+
- Wed, 06 Mar 2013 15:47:04 GMT
|
432
|
+
connection:
|
433
|
+
- close
|
434
|
+
body:
|
435
|
+
encoding: US-ASCII
|
436
|
+
string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
|
437
|
+
id='m1-small'>\n <id>m1-small</id>\n <name>m1-small</name>\n <property
|
438
|
+
kind='fixed' name='cpu' unit='count' value='1' />\n <property kind='fixed'
|
439
|
+
name='memory' unit='MB' value='1740.8' />\n <property kind='fixed' name='storage'
|
440
|
+
unit='GB' value='160' />\n <property kind='fixed' name='architecture' unit='label'
|
441
|
+
value='i386' />\n</hardware_profile>\n"
|
442
|
+
http_version:
|
443
|
+
recorded_at: Wed, 06 Mar 2013 15:47:04 GMT
|
444
|
+
recorded_with: VCR 2.4.0
|