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,399 @@
|
|
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
|
+
X-Deltacloud-Driver:
|
13
|
+
- ec2
|
14
|
+
Authorization:
|
15
|
+
- Basic QUtJQUpZT1FZTExPSVdONUxRM0E6UmEyVmlZYVlnb2NBSnFQQVFIeE1WVS9sMnNHR1UycGlmbVdUNHEzSA==
|
16
|
+
User-Agent:
|
17
|
+
- Faraday v0.8.6
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message:
|
22
|
+
headers:
|
23
|
+
content-type:
|
24
|
+
- application/xml
|
25
|
+
server:
|
26
|
+
- Apache-Deltacloud/1.1.1
|
27
|
+
x-deltacloud-driver:
|
28
|
+
- ec2
|
29
|
+
content-length:
|
30
|
+
- '2150'
|
31
|
+
x-content-type-options:
|
32
|
+
- nosniff
|
33
|
+
etag:
|
34
|
+
- 7b1418b5852df20853f413124d4ff440
|
35
|
+
cache-control:
|
36
|
+
- max-age=0, private, must-revalidate
|
37
|
+
date:
|
38
|
+
- Wed, 06 Mar 2013 15:30:03 GMT
|
39
|
+
connection:
|
40
|
+
- close
|
41
|
+
body:
|
42
|
+
encoding: US-ASCII
|
43
|
+
string: ! "<api driver='ec2' version='1.1.1'>\n <link href='http://localhost:3001/api/instance_states'
|
44
|
+
rel='instance_states'>\n </link>\n <link href='http://localhost:3001/api/storage_volumes'
|
45
|
+
rel='storage_volumes'>\n </link>\n <link href='http://localhost:3001/api/firewalls'
|
46
|
+
rel='firewalls'>\n </link>\n <link href='http://localhost:3001/api/metrics'
|
47
|
+
rel='metrics'>\n </link>\n <link href='http://localhost:3001/api/hardware_profiles'
|
48
|
+
rel='hardware_profiles'>\n </link>\n <link href='http://localhost:3001/api/instances'
|
49
|
+
rel='instances'>\n <feature name='metrics' rel='create'>\n <param
|
50
|
+
name='metrics' />\n </feature>\n <feature name='user_data' rel='create'>\n
|
51
|
+
\ <param name='user_data' />\n </feature>\n <feature name='firewalls'
|
52
|
+
rel='create'>\n <param name='firewalls' />\n </feature>\n <feature
|
53
|
+
name='authentication_key' rel='create'>\n <param name='keyname' />\n
|
54
|
+
\ </feature>\n <feature name='instance_count' rel='create'>\n <param
|
55
|
+
name='instance_count' />\n </feature>\n <feature name='attach_snapshot'
|
56
|
+
rel='create'>\n <param name='snapshot_id' />\n <param name='device_name'
|
57
|
+
/>\n </feature>\n </link>\n <link href='http://localhost:3001/api/realms'
|
58
|
+
rel='realms'>\n </link>\n <link href='http://localhost:3001/api/storage_snapshots'
|
59
|
+
rel='storage_snapshots'>\n </link>\n <link href='http://localhost:3001/api/images'
|
60
|
+
rel='images'>\n <feature name='owner_id' rel='index'>\n <param name='owner_id'
|
61
|
+
/>\n </feature>\n <feature name='image_name' rel='create'>\n <param
|
62
|
+
name='name' />\n </feature>\n <feature name='image_description' rel='create'>\n
|
63
|
+
\ <param name='description' />\n </feature>\n </link>\n <link href='http://localhost:3001/api/addresses'
|
64
|
+
rel='addresses'>\n </link>\n <link href='http://localhost:3001/api/drivers'
|
65
|
+
rel='drivers'>\n </link>\n <link href='http://localhost:3001/api/buckets'
|
66
|
+
rel='buckets'>\n <feature name='bucket_location' rel='create'>\n <param
|
67
|
+
name='location' />\n </feature>\n </link>\n <link href='http://localhost:3001/api/keys'
|
68
|
+
rel='keys'>\n </link>\n <link href='http://localhost:3001/api/load_balancers'
|
69
|
+
rel='load_balancers'>\n </link>\n</api>\n"
|
70
|
+
http_version:
|
71
|
+
recorded_at: Wed, 06 Mar 2013 15:30:03 GMT
|
72
|
+
- request:
|
73
|
+
method: get
|
74
|
+
uri: http://localhost:3001/api/firewalls
|
75
|
+
body:
|
76
|
+
encoding: US-ASCII
|
77
|
+
string: ''
|
78
|
+
headers:
|
79
|
+
Accept:
|
80
|
+
- application/xml
|
81
|
+
X-Deltacloud-Driver:
|
82
|
+
- ec2
|
83
|
+
Authorization:
|
84
|
+
- Basic QUtJQUpZT1FZTExPSVdONUxRM0E6UmEyVmlZYVlnb2NBSnFQQVFIeE1WVS9sMnNHR1UycGlmbVdUNHEzSA==
|
85
|
+
User-Agent:
|
86
|
+
- Faraday v0.8.6
|
87
|
+
response:
|
88
|
+
status:
|
89
|
+
code: 200
|
90
|
+
message:
|
91
|
+
headers:
|
92
|
+
content-type:
|
93
|
+
- application/xml
|
94
|
+
x-backend-runtime:
|
95
|
+
- '1.063826322555542'
|
96
|
+
server:
|
97
|
+
- Apache-Deltacloud/1.1.1
|
98
|
+
x-deltacloud-driver:
|
99
|
+
- ec2
|
100
|
+
content-length:
|
101
|
+
- '6053'
|
102
|
+
x-content-type-options:
|
103
|
+
- nosniff
|
104
|
+
etag:
|
105
|
+
- 8508f760dcc9cf541a1f75558ed9f5bd
|
106
|
+
cache-control:
|
107
|
+
- max-age=0, private, must-revalidate
|
108
|
+
date:
|
109
|
+
- Wed, 06 Mar 2013 15:30:04 GMT
|
110
|
+
connection:
|
111
|
+
- close
|
112
|
+
body:
|
113
|
+
encoding: US-ASCII
|
114
|
+
string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<firewalls>\n <firewall
|
115
|
+
href='http://localhost:3001/api/firewalls/default' id='default'>\n <actions>\n
|
116
|
+
\ <link href='http://localhost:3001/api/firewalls/default' id='default'
|
117
|
+
method='delete' rel='destroy' />\n <link href='http://localhost:3001/api/firewalls/default/rules'
|
118
|
+
id='default' method='post' rel='add_rule' />\n </actions>\n <name><![CDATA[default]]></name>\n
|
119
|
+
\ <description><![CDATA[default group]]></description>\n <owner_id>293787749884</owner_id>\n
|
120
|
+
\ <rules>\n <rule id='293787749884~tcp~0~65535~@group,293787749884,default'>\n
|
121
|
+
\ <actions>\n <link href='http://localhost:3001/api/firewalls/default/293787749884~tcp~0~65535~@group,293787749884,default'
|
122
|
+
id='293787749884~tcp~0~65535~@group,293787749884,default' method='delete'
|
123
|
+
rel='destroy' />\n </actions>\n <allow_protocol>tcp</allow_protocol>\n
|
124
|
+
\ <port_from>0</port_from>\n <port_to>65535</port_to>\n <direction>ingress</direction>\n
|
125
|
+
\ <rule_action></rule_action>\n <log_rule></log_rule>\n <sources>\n
|
126
|
+
\ <source name='default' owner='293787749884' type='group'></source>\n
|
127
|
+
\ </sources>\n </rule>\n <rule id='293787749884~udp~0~65535~@group,293787749884,default'>\n
|
128
|
+
\ <actions>\n <link href='http://localhost:3001/api/firewalls/default/293787749884~udp~0~65535~@group,293787749884,default'
|
129
|
+
id='293787749884~udp~0~65535~@group,293787749884,default' method='delete'
|
130
|
+
rel='destroy' />\n </actions>\n <allow_protocol>udp</allow_protocol>\n
|
131
|
+
\ <port_from>0</port_from>\n <port_to>65535</port_to>\n <direction>ingress</direction>\n
|
132
|
+
\ <rule_action></rule_action>\n <log_rule></log_rule>\n <sources>\n
|
133
|
+
\ <source name='default' owner='293787749884' type='group'></source>\n
|
134
|
+
\ </sources>\n </rule>\n <rule id='293787749884~icmp~-1~-1~@group,293787749884,default'>\n
|
135
|
+
\ <actions>\n <link href='http://localhost:3001/api/firewalls/default/293787749884~icmp~-1~-1~@group,293787749884,default'
|
136
|
+
id='293787749884~icmp~-1~-1~@group,293787749884,default' method='delete' rel='destroy'
|
137
|
+
/>\n </actions>\n <allow_protocol>icmp</allow_protocol>\n <port_from>-1</port_from>\n
|
138
|
+
\ <port_to>-1</port_to>\n <direction>ingress</direction>\n <rule_action></rule_action>\n
|
139
|
+
\ <log_rule></log_rule>\n <sources>\n <source name='default'
|
140
|
+
owner='293787749884' type='group'></source>\n </sources>\n </rule>\n
|
141
|
+
\ <rule id='293787749884~tcp~22~22~@address,ipv4,0.0.0.0,0'>\n <actions>\n
|
142
|
+
\ <link href='http://localhost:3001/api/firewalls/default/293787749884~tcp~22~22~@address,ipv4,0.0.0.0,0'
|
143
|
+
id='293787749884~tcp~22~22~@address,ipv4,0.0.0.0,0' method='delete' rel='destroy'
|
144
|
+
/>\n </actions>\n <allow_protocol>tcp</allow_protocol>\n <port_from>22</port_from>\n
|
145
|
+
\ <port_to>22</port_to>\n <direction>ingress</direction>\n <rule_action></rule_action>\n
|
146
|
+
\ <log_rule></log_rule>\n <sources>\n <source address='0.0.0.0'
|
147
|
+
family='ipv4' prefix='0' type='address'></source>\n </sources>\n </rule>\n
|
148
|
+
\ <rule id='293787749884~tcp~8983~8983~@address,ipv4,0.0.0.0,0'>\n <actions>\n
|
149
|
+
\ <link href='http://localhost:3001/api/firewalls/default/293787749884~tcp~8983~8983~@address,ipv4,0.0.0.0,0'
|
150
|
+
id='293787749884~tcp~8983~8983~@address,ipv4,0.0.0.0,0' method='delete' rel='destroy'
|
151
|
+
/>\n </actions>\n <allow_protocol>tcp</allow_protocol>\n <port_from>8983</port_from>\n
|
152
|
+
\ <port_to>8983</port_to>\n <direction>ingress</direction>\n
|
153
|
+
\ <rule_action></rule_action>\n <log_rule></log_rule>\n <sources>\n
|
154
|
+
\ <source address='0.0.0.0' family='ipv4' prefix='0' type='address'></source>\n
|
155
|
+
\ </sources>\n </rule>\n </rules>\n </firewall>\n <firewall
|
156
|
+
href='http://localhost:3001/api/firewalls/quicklaunch-1' id='quicklaunch-1'>\n
|
157
|
+
\ <actions>\n <link href='http://localhost:3001/api/firewalls/quicklaunch-1'
|
158
|
+
id='quicklaunch-1' method='delete' rel='destroy' />\n <link href='http://localhost:3001/api/firewalls/quicklaunch-1/rules'
|
159
|
+
id='quicklaunch-1' method='post' rel='add_rule' />\n </actions>\n <name><![CDATA[quicklaunch-1]]></name>\n
|
160
|
+
\ <description><![CDATA[quicklaunch-1]]></description>\n <owner_id>293787749884</owner_id>\n
|
161
|
+
\ <rules>\n <rule id='293787749884~tcp~22~22~@address,ipv4,0.0.0.0,0'>\n
|
162
|
+
\ <actions>\n <link href='http://localhost:3001/api/firewalls/quicklaunch-1/293787749884~tcp~22~22~@address,ipv4,0.0.0.0,0'
|
163
|
+
id='293787749884~tcp~22~22~@address,ipv4,0.0.0.0,0' method='delete' rel='destroy'
|
164
|
+
/>\n </actions>\n <allow_protocol>tcp</allow_protocol>\n <port_from>22</port_from>\n
|
165
|
+
\ <port_to>22</port_to>\n <direction>ingress</direction>\n <rule_action></rule_action>\n
|
166
|
+
\ <log_rule></log_rule>\n <sources>\n <source address='0.0.0.0'
|
167
|
+
family='ipv4' prefix='0' type='address'></source>\n </sources>\n </rule>\n
|
168
|
+
\ </rules>\n </firewall>\n <firewall href='http://localhost:3001/api/firewalls/test123'
|
169
|
+
id='test123'>\n <actions>\n <link href='http://localhost:3001/api/firewalls/test123'
|
170
|
+
id='test123' method='delete' rel='destroy' />\n <link href='http://localhost:3001/api/firewalls/test123/rules'
|
171
|
+
id='test123' method='post' rel='add_rule' />\n </actions>\n <name><![CDATA[test123]]></name>\n
|
172
|
+
\ <description><![CDATA[sdsd]]></description>\n <owner_id>293787749884</owner_id>\n
|
173
|
+
\ <rules>\n </rules>\n </firewall>\n <firewall href='http://localhost:3001/api/firewalls/mfojtik'
|
174
|
+
id='mfojtik'>\n <actions>\n <link href='http://localhost:3001/api/firewalls/mfojtik'
|
175
|
+
id='mfojtik' method='delete' rel='destroy' />\n <link href='http://localhost:3001/api/firewalls/mfojtik/rules'
|
176
|
+
id='mfojtik' method='post' rel='add_rule' />\n </actions>\n <name><![CDATA[mfojtik]]></name>\n
|
177
|
+
\ <description><![CDATA[test1]]></description>\n <owner_id>293787749884</owner_id>\n
|
178
|
+
\ <rules>\n </rules>\n </firewall>\n</firewalls>\n"
|
179
|
+
http_version:
|
180
|
+
recorded_at: Wed, 06 Mar 2013 15:30:04 GMT
|
181
|
+
- request:
|
182
|
+
method: get
|
183
|
+
uri: http://localhost:3001/api/firewalls
|
184
|
+
body:
|
185
|
+
encoding: US-ASCII
|
186
|
+
string: ''
|
187
|
+
headers:
|
188
|
+
Accept:
|
189
|
+
- application/xml
|
190
|
+
X-Deltacloud-Driver:
|
191
|
+
- ec2
|
192
|
+
Authorization:
|
193
|
+
- Basic QUtJQUpZT1FZTExPSVdONUxRM0E6UmEyVmlZYVlnb2NBSnFQQVFIeE1WVS9sMnNHR1UycGlmbVdUNHEzSA==
|
194
|
+
User-Agent:
|
195
|
+
- Faraday v0.8.6
|
196
|
+
response:
|
197
|
+
status:
|
198
|
+
code: 200
|
199
|
+
message:
|
200
|
+
headers:
|
201
|
+
content-type:
|
202
|
+
- application/xml
|
203
|
+
x-backend-runtime:
|
204
|
+
- '0.6391136646270752'
|
205
|
+
server:
|
206
|
+
- Apache-Deltacloud/1.1.1
|
207
|
+
x-deltacloud-driver:
|
208
|
+
- ec2
|
209
|
+
content-length:
|
210
|
+
- '6053'
|
211
|
+
x-content-type-options:
|
212
|
+
- nosniff
|
213
|
+
etag:
|
214
|
+
- 8508f760dcc9cf541a1f75558ed9f5bd
|
215
|
+
cache-control:
|
216
|
+
- max-age=0, private, must-revalidate
|
217
|
+
date:
|
218
|
+
- Wed, 06 Mar 2013 15:30:04 GMT
|
219
|
+
connection:
|
220
|
+
- close
|
221
|
+
body:
|
222
|
+
encoding: US-ASCII
|
223
|
+
string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<firewalls>\n <firewall
|
224
|
+
href='http://localhost:3001/api/firewalls/default' id='default'>\n <actions>\n
|
225
|
+
\ <link href='http://localhost:3001/api/firewalls/default' id='default'
|
226
|
+
method='delete' rel='destroy' />\n <link href='http://localhost:3001/api/firewalls/default/rules'
|
227
|
+
id='default' method='post' rel='add_rule' />\n </actions>\n <name><![CDATA[default]]></name>\n
|
228
|
+
\ <description><![CDATA[default group]]></description>\n <owner_id>293787749884</owner_id>\n
|
229
|
+
\ <rules>\n <rule id='293787749884~tcp~0~65535~@group,293787749884,default'>\n
|
230
|
+
\ <actions>\n <link href='http://localhost:3001/api/firewalls/default/293787749884~tcp~0~65535~@group,293787749884,default'
|
231
|
+
id='293787749884~tcp~0~65535~@group,293787749884,default' method='delete'
|
232
|
+
rel='destroy' />\n </actions>\n <allow_protocol>tcp</allow_protocol>\n
|
233
|
+
\ <port_from>0</port_from>\n <port_to>65535</port_to>\n <direction>ingress</direction>\n
|
234
|
+
\ <rule_action></rule_action>\n <log_rule></log_rule>\n <sources>\n
|
235
|
+
\ <source name='default' owner='293787749884' type='group'></source>\n
|
236
|
+
\ </sources>\n </rule>\n <rule id='293787749884~udp~0~65535~@group,293787749884,default'>\n
|
237
|
+
\ <actions>\n <link href='http://localhost:3001/api/firewalls/default/293787749884~udp~0~65535~@group,293787749884,default'
|
238
|
+
id='293787749884~udp~0~65535~@group,293787749884,default' method='delete'
|
239
|
+
rel='destroy' />\n </actions>\n <allow_protocol>udp</allow_protocol>\n
|
240
|
+
\ <port_from>0</port_from>\n <port_to>65535</port_to>\n <direction>ingress</direction>\n
|
241
|
+
\ <rule_action></rule_action>\n <log_rule></log_rule>\n <sources>\n
|
242
|
+
\ <source name='default' owner='293787749884' type='group'></source>\n
|
243
|
+
\ </sources>\n </rule>\n <rule id='293787749884~icmp~-1~-1~@group,293787749884,default'>\n
|
244
|
+
\ <actions>\n <link href='http://localhost:3001/api/firewalls/default/293787749884~icmp~-1~-1~@group,293787749884,default'
|
245
|
+
id='293787749884~icmp~-1~-1~@group,293787749884,default' method='delete' rel='destroy'
|
246
|
+
/>\n </actions>\n <allow_protocol>icmp</allow_protocol>\n <port_from>-1</port_from>\n
|
247
|
+
\ <port_to>-1</port_to>\n <direction>ingress</direction>\n <rule_action></rule_action>\n
|
248
|
+
\ <log_rule></log_rule>\n <sources>\n <source name='default'
|
249
|
+
owner='293787749884' type='group'></source>\n </sources>\n </rule>\n
|
250
|
+
\ <rule id='293787749884~tcp~22~22~@address,ipv4,0.0.0.0,0'>\n <actions>\n
|
251
|
+
\ <link href='http://localhost:3001/api/firewalls/default/293787749884~tcp~22~22~@address,ipv4,0.0.0.0,0'
|
252
|
+
id='293787749884~tcp~22~22~@address,ipv4,0.0.0.0,0' method='delete' rel='destroy'
|
253
|
+
/>\n </actions>\n <allow_protocol>tcp</allow_protocol>\n <port_from>22</port_from>\n
|
254
|
+
\ <port_to>22</port_to>\n <direction>ingress</direction>\n <rule_action></rule_action>\n
|
255
|
+
\ <log_rule></log_rule>\n <sources>\n <source address='0.0.0.0'
|
256
|
+
family='ipv4' prefix='0' type='address'></source>\n </sources>\n </rule>\n
|
257
|
+
\ <rule id='293787749884~tcp~8983~8983~@address,ipv4,0.0.0.0,0'>\n <actions>\n
|
258
|
+
\ <link href='http://localhost:3001/api/firewalls/default/293787749884~tcp~8983~8983~@address,ipv4,0.0.0.0,0'
|
259
|
+
id='293787749884~tcp~8983~8983~@address,ipv4,0.0.0.0,0' method='delete' rel='destroy'
|
260
|
+
/>\n </actions>\n <allow_protocol>tcp</allow_protocol>\n <port_from>8983</port_from>\n
|
261
|
+
\ <port_to>8983</port_to>\n <direction>ingress</direction>\n
|
262
|
+
\ <rule_action></rule_action>\n <log_rule></log_rule>\n <sources>\n
|
263
|
+
\ <source address='0.0.0.0' family='ipv4' prefix='0' type='address'></source>\n
|
264
|
+
\ </sources>\n </rule>\n </rules>\n </firewall>\n <firewall
|
265
|
+
href='http://localhost:3001/api/firewalls/quicklaunch-1' id='quicklaunch-1'>\n
|
266
|
+
\ <actions>\n <link href='http://localhost:3001/api/firewalls/quicklaunch-1'
|
267
|
+
id='quicklaunch-1' method='delete' rel='destroy' />\n <link href='http://localhost:3001/api/firewalls/quicklaunch-1/rules'
|
268
|
+
id='quicklaunch-1' method='post' rel='add_rule' />\n </actions>\n <name><![CDATA[quicklaunch-1]]></name>\n
|
269
|
+
\ <description><![CDATA[quicklaunch-1]]></description>\n <owner_id>293787749884</owner_id>\n
|
270
|
+
\ <rules>\n <rule id='293787749884~tcp~22~22~@address,ipv4,0.0.0.0,0'>\n
|
271
|
+
\ <actions>\n <link href='http://localhost:3001/api/firewalls/quicklaunch-1/293787749884~tcp~22~22~@address,ipv4,0.0.0.0,0'
|
272
|
+
id='293787749884~tcp~22~22~@address,ipv4,0.0.0.0,0' method='delete' rel='destroy'
|
273
|
+
/>\n </actions>\n <allow_protocol>tcp</allow_protocol>\n <port_from>22</port_from>\n
|
274
|
+
\ <port_to>22</port_to>\n <direction>ingress</direction>\n <rule_action></rule_action>\n
|
275
|
+
\ <log_rule></log_rule>\n <sources>\n <source address='0.0.0.0'
|
276
|
+
family='ipv4' prefix='0' type='address'></source>\n </sources>\n </rule>\n
|
277
|
+
\ </rules>\n </firewall>\n <firewall href='http://localhost:3001/api/firewalls/test123'
|
278
|
+
id='test123'>\n <actions>\n <link href='http://localhost:3001/api/firewalls/test123'
|
279
|
+
id='test123' method='delete' rel='destroy' />\n <link href='http://localhost:3001/api/firewalls/test123/rules'
|
280
|
+
id='test123' method='post' rel='add_rule' />\n </actions>\n <name><![CDATA[test123]]></name>\n
|
281
|
+
\ <description><![CDATA[sdsd]]></description>\n <owner_id>293787749884</owner_id>\n
|
282
|
+
\ <rules>\n </rules>\n </firewall>\n <firewall href='http://localhost:3001/api/firewalls/mfojtik'
|
283
|
+
id='mfojtik'>\n <actions>\n <link href='http://localhost:3001/api/firewalls/mfojtik'
|
284
|
+
id='mfojtik' method='delete' rel='destroy' />\n <link href='http://localhost:3001/api/firewalls/mfojtik/rules'
|
285
|
+
id='mfojtik' method='post' rel='add_rule' />\n </actions>\n <name><![CDATA[mfojtik]]></name>\n
|
286
|
+
\ <description><![CDATA[test1]]></description>\n <owner_id>293787749884</owner_id>\n
|
287
|
+
\ <rules>\n </rules>\n </firewall>\n</firewalls>\n"
|
288
|
+
http_version:
|
289
|
+
recorded_at: Wed, 06 Mar 2013 15:30:04 GMT
|
290
|
+
- request:
|
291
|
+
method: get
|
292
|
+
uri: http://localhost:3001/api/firewalls
|
293
|
+
body:
|
294
|
+
encoding: US-ASCII
|
295
|
+
string: ''
|
296
|
+
headers:
|
297
|
+
Accept:
|
298
|
+
- application/xml
|
299
|
+
X-Deltacloud-Driver:
|
300
|
+
- ec2
|
301
|
+
Authorization:
|
302
|
+
- Basic QUtJQUpZT1FZTExPSVdONUxRM0E6UmEyVmlZYVlnb2NBSnFQQVFIeE1WVS9sMnNHR1UycGlmbVdUNHEzSA==
|
303
|
+
User-Agent:
|
304
|
+
- Faraday v0.8.6
|
305
|
+
response:
|
306
|
+
status:
|
307
|
+
code: 200
|
308
|
+
message:
|
309
|
+
headers:
|
310
|
+
content-type:
|
311
|
+
- application/xml
|
312
|
+
x-backend-runtime:
|
313
|
+
- '0.6027324199676514'
|
314
|
+
server:
|
315
|
+
- Apache-Deltacloud/1.1.1
|
316
|
+
x-deltacloud-driver:
|
317
|
+
- ec2
|
318
|
+
content-length:
|
319
|
+
- '6053'
|
320
|
+
x-content-type-options:
|
321
|
+
- nosniff
|
322
|
+
etag:
|
323
|
+
- 8508f760dcc9cf541a1f75558ed9f5bd
|
324
|
+
cache-control:
|
325
|
+
- max-age=0, private, must-revalidate
|
326
|
+
date:
|
327
|
+
- Wed, 06 Mar 2013 15:30:05 GMT
|
328
|
+
connection:
|
329
|
+
- close
|
330
|
+
body:
|
331
|
+
encoding: US-ASCII
|
332
|
+
string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<firewalls>\n <firewall
|
333
|
+
href='http://localhost:3001/api/firewalls/default' id='default'>\n <actions>\n
|
334
|
+
\ <link href='http://localhost:3001/api/firewalls/default' id='default'
|
335
|
+
method='delete' rel='destroy' />\n <link href='http://localhost:3001/api/firewalls/default/rules'
|
336
|
+
id='default' method='post' rel='add_rule' />\n </actions>\n <name><![CDATA[default]]></name>\n
|
337
|
+
\ <description><![CDATA[default group]]></description>\n <owner_id>293787749884</owner_id>\n
|
338
|
+
\ <rules>\n <rule id='293787749884~tcp~0~65535~@group,293787749884,default'>\n
|
339
|
+
\ <actions>\n <link href='http://localhost:3001/api/firewalls/default/293787749884~tcp~0~65535~@group,293787749884,default'
|
340
|
+
id='293787749884~tcp~0~65535~@group,293787749884,default' method='delete'
|
341
|
+
rel='destroy' />\n </actions>\n <allow_protocol>tcp</allow_protocol>\n
|
342
|
+
\ <port_from>0</port_from>\n <port_to>65535</port_to>\n <direction>ingress</direction>\n
|
343
|
+
\ <rule_action></rule_action>\n <log_rule></log_rule>\n <sources>\n
|
344
|
+
\ <source name='default' owner='293787749884' type='group'></source>\n
|
345
|
+
\ </sources>\n </rule>\n <rule id='293787749884~udp~0~65535~@group,293787749884,default'>\n
|
346
|
+
\ <actions>\n <link href='http://localhost:3001/api/firewalls/default/293787749884~udp~0~65535~@group,293787749884,default'
|
347
|
+
id='293787749884~udp~0~65535~@group,293787749884,default' method='delete'
|
348
|
+
rel='destroy' />\n </actions>\n <allow_protocol>udp</allow_protocol>\n
|
349
|
+
\ <port_from>0</port_from>\n <port_to>65535</port_to>\n <direction>ingress</direction>\n
|
350
|
+
\ <rule_action></rule_action>\n <log_rule></log_rule>\n <sources>\n
|
351
|
+
\ <source name='default' owner='293787749884' type='group'></source>\n
|
352
|
+
\ </sources>\n </rule>\n <rule id='293787749884~icmp~-1~-1~@group,293787749884,default'>\n
|
353
|
+
\ <actions>\n <link href='http://localhost:3001/api/firewalls/default/293787749884~icmp~-1~-1~@group,293787749884,default'
|
354
|
+
id='293787749884~icmp~-1~-1~@group,293787749884,default' method='delete' rel='destroy'
|
355
|
+
/>\n </actions>\n <allow_protocol>icmp</allow_protocol>\n <port_from>-1</port_from>\n
|
356
|
+
\ <port_to>-1</port_to>\n <direction>ingress</direction>\n <rule_action></rule_action>\n
|
357
|
+
\ <log_rule></log_rule>\n <sources>\n <source name='default'
|
358
|
+
owner='293787749884' type='group'></source>\n </sources>\n </rule>\n
|
359
|
+
\ <rule id='293787749884~tcp~22~22~@address,ipv4,0.0.0.0,0'>\n <actions>\n
|
360
|
+
\ <link href='http://localhost:3001/api/firewalls/default/293787749884~tcp~22~22~@address,ipv4,0.0.0.0,0'
|
361
|
+
id='293787749884~tcp~22~22~@address,ipv4,0.0.0.0,0' method='delete' rel='destroy'
|
362
|
+
/>\n </actions>\n <allow_protocol>tcp</allow_protocol>\n <port_from>22</port_from>\n
|
363
|
+
\ <port_to>22</port_to>\n <direction>ingress</direction>\n <rule_action></rule_action>\n
|
364
|
+
\ <log_rule></log_rule>\n <sources>\n <source address='0.0.0.0'
|
365
|
+
family='ipv4' prefix='0' type='address'></source>\n </sources>\n </rule>\n
|
366
|
+
\ <rule id='293787749884~tcp~8983~8983~@address,ipv4,0.0.0.0,0'>\n <actions>\n
|
367
|
+
\ <link href='http://localhost:3001/api/firewalls/default/293787749884~tcp~8983~8983~@address,ipv4,0.0.0.0,0'
|
368
|
+
id='293787749884~tcp~8983~8983~@address,ipv4,0.0.0.0,0' method='delete' rel='destroy'
|
369
|
+
/>\n </actions>\n <allow_protocol>tcp</allow_protocol>\n <port_from>8983</port_from>\n
|
370
|
+
\ <port_to>8983</port_to>\n <direction>ingress</direction>\n
|
371
|
+
\ <rule_action></rule_action>\n <log_rule></log_rule>\n <sources>\n
|
372
|
+
\ <source address='0.0.0.0' family='ipv4' prefix='0' type='address'></source>\n
|
373
|
+
\ </sources>\n </rule>\n </rules>\n </firewall>\n <firewall
|
374
|
+
href='http://localhost:3001/api/firewalls/quicklaunch-1' id='quicklaunch-1'>\n
|
375
|
+
\ <actions>\n <link href='http://localhost:3001/api/firewalls/quicklaunch-1'
|
376
|
+
id='quicklaunch-1' method='delete' rel='destroy' />\n <link href='http://localhost:3001/api/firewalls/quicklaunch-1/rules'
|
377
|
+
id='quicklaunch-1' method='post' rel='add_rule' />\n </actions>\n <name><![CDATA[quicklaunch-1]]></name>\n
|
378
|
+
\ <description><![CDATA[quicklaunch-1]]></description>\n <owner_id>293787749884</owner_id>\n
|
379
|
+
\ <rules>\n <rule id='293787749884~tcp~22~22~@address,ipv4,0.0.0.0,0'>\n
|
380
|
+
\ <actions>\n <link href='http://localhost:3001/api/firewalls/quicklaunch-1/293787749884~tcp~22~22~@address,ipv4,0.0.0.0,0'
|
381
|
+
id='293787749884~tcp~22~22~@address,ipv4,0.0.0.0,0' method='delete' rel='destroy'
|
382
|
+
/>\n </actions>\n <allow_protocol>tcp</allow_protocol>\n <port_from>22</port_from>\n
|
383
|
+
\ <port_to>22</port_to>\n <direction>ingress</direction>\n <rule_action></rule_action>\n
|
384
|
+
\ <log_rule></log_rule>\n <sources>\n <source address='0.0.0.0'
|
385
|
+
family='ipv4' prefix='0' type='address'></source>\n </sources>\n </rule>\n
|
386
|
+
\ </rules>\n </firewall>\n <firewall href='http://localhost:3001/api/firewalls/test123'
|
387
|
+
id='test123'>\n <actions>\n <link href='http://localhost:3001/api/firewalls/test123'
|
388
|
+
id='test123' method='delete' rel='destroy' />\n <link href='http://localhost:3001/api/firewalls/test123/rules'
|
389
|
+
id='test123' method='post' rel='add_rule' />\n </actions>\n <name><![CDATA[test123]]></name>\n
|
390
|
+
\ <description><![CDATA[sdsd]]></description>\n <owner_id>293787749884</owner_id>\n
|
391
|
+
\ <rules>\n </rules>\n </firewall>\n <firewall href='http://localhost:3001/api/firewalls/mfojtik'
|
392
|
+
id='mfojtik'>\n <actions>\n <link href='http://localhost:3001/api/firewalls/mfojtik'
|
393
|
+
id='mfojtik' method='delete' rel='destroy' />\n <link href='http://localhost:3001/api/firewalls/mfojtik/rules'
|
394
|
+
id='mfojtik' method='post' rel='add_rule' />\n </actions>\n <name><![CDATA[mfojtik]]></name>\n
|
395
|
+
\ <description><![CDATA[test1]]></description>\n <owner_id>293787749884</owner_id>\n
|
396
|
+
\ <rules>\n </rules>\n </firewall>\n</firewalls>\n"
|
397
|
+
http_version:
|
398
|
+
recorded_at: Wed, 06 Mar 2013 15:30:05 GMT
|
399
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,262 @@
|
|
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: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/hardware_profiles
|
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
|
+
- '9.846687316894531e-05'
|
82
|
+
server:
|
83
|
+
- Apache-Deltacloud/1.1.1
|
84
|
+
x-deltacloud-driver:
|
85
|
+
- mock
|
86
|
+
content-length:
|
87
|
+
- '2513'
|
88
|
+
x-content-type-options:
|
89
|
+
- nosniff
|
90
|
+
etag:
|
91
|
+
- 6fb008e6971780cc37ce300cb7ede981
|
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<hardware_profiles>\n <hardware_profile
|
101
|
+
href='http://localhost:3001/api/hardware_profiles/m1-small' id='m1-small'>\n
|
102
|
+
\ <id>m1-small</id>\n <name>m1-small</name>\n <property kind='fixed'
|
103
|
+
name='cpu' unit='count' value='1' />\n <property kind='fixed' name='memory'
|
104
|
+
unit='MB' value='1740.8' />\n <property kind='fixed' name='storage' unit='GB'
|
105
|
+
value='160' />\n <property kind='fixed' name='architecture' unit='label'
|
106
|
+
value='i386' />\n </hardware_profile>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-large'
|
107
|
+
id='m1-large'>\n <id>m1-large</id>\n <name>m1-large</name>\n <property
|
108
|
+
kind='range' name='cpu' unit='count' value='1'>\n <param href='http://localhost:3001/api/instances'
|
109
|
+
method='post' name='hwp_cpu' operation='create' />\n <range first='1'
|
110
|
+
last='6' />\n </property>\n <property kind='range' name='memory' unit='MB'
|
111
|
+
value='10240'>\n <param href='http://localhost:3001/api/instances' method='post'
|
112
|
+
name='hwp_memory' operation='create' />\n <range first='7680' last='15360'
|
113
|
+
/>\n </property>\n <property kind='enum' name='storage' unit='GB' value='850'>\n
|
114
|
+
\ <param href='http://localhost:3001/api/instances' method='post' name='hwp_storage'
|
115
|
+
operation='create' />\n <enum>\n <entry value='850' />\n <entry
|
116
|
+
value='1024' />\n </enum>\n </property>\n <property kind='fixed'
|
117
|
+
name='architecture' unit='label' value='x86_64' />\n </hardware_profile>\n
|
118
|
+
\ <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-xlarge'
|
119
|
+
id='m1-xlarge'>\n <id>m1-xlarge</id>\n <name>m1-xlarge</name>\n <property
|
120
|
+
kind='fixed' name='cpu' unit='count' value='4' />\n <property kind='range'
|
121
|
+
name='memory' unit='MB' value='12288'>\n <param href='http://localhost:3001/api/instances'
|
122
|
+
method='post' name='hwp_memory' operation='create' />\n <range first='12288'
|
123
|
+
last='32768' />\n </property>\n <property kind='enum' name='storage'
|
124
|
+
unit='GB' value='1024'>\n <param href='http://localhost:3001/api/instances'
|
125
|
+
method='post' name='hwp_storage' operation='create' />\n <enum>\n <entry
|
126
|
+
value='1024' />\n <entry value='2048' />\n <entry value='4096'
|
127
|
+
/>\n </enum>\n </property>\n <property kind='fixed' name='architecture'
|
128
|
+
unit='label' value='x86_64' />\n </hardware_profile>\n <hardware_profile
|
129
|
+
href='http://localhost:3001/api/hardware_profiles/opaque' id='opaque'>\n <id>opaque</id>\n
|
130
|
+
\ <name>opaque</name>\n </hardware_profile>\n</hardware_profiles>\n"
|
131
|
+
http_version:
|
132
|
+
recorded_at: Wed, 06 Mar 2013 08:56:17 GMT
|
133
|
+
- request:
|
134
|
+
method: get
|
135
|
+
uri: http://localhost:3001/api/hardware_profiles
|
136
|
+
body:
|
137
|
+
encoding: US-ASCII
|
138
|
+
string: ''
|
139
|
+
headers:
|
140
|
+
Accept:
|
141
|
+
- application/xml
|
142
|
+
Authorization:
|
143
|
+
- Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
|
144
|
+
User-Agent:
|
145
|
+
- Faraday v0.8.6
|
146
|
+
response:
|
147
|
+
status:
|
148
|
+
code: 200
|
149
|
+
message:
|
150
|
+
headers:
|
151
|
+
content-type:
|
152
|
+
- application/xml
|
153
|
+
x-backend-runtime:
|
154
|
+
- '4.506111145019531e-05'
|
155
|
+
server:
|
156
|
+
- Apache-Deltacloud/1.1.1
|
157
|
+
x-deltacloud-driver:
|
158
|
+
- mock
|
159
|
+
content-length:
|
160
|
+
- '2513'
|
161
|
+
x-content-type-options:
|
162
|
+
- nosniff
|
163
|
+
etag:
|
164
|
+
- 6fb008e6971780cc37ce300cb7ede981
|
165
|
+
cache-control:
|
166
|
+
- max-age=0, private, must-revalidate
|
167
|
+
date:
|
168
|
+
- Wed, 06 Mar 2013 08:56:17 GMT
|
169
|
+
connection:
|
170
|
+
- close
|
171
|
+
body:
|
172
|
+
encoding: US-ASCII
|
173
|
+
string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<hardware_profiles>\n <hardware_profile
|
174
|
+
href='http://localhost:3001/api/hardware_profiles/m1-small' id='m1-small'>\n
|
175
|
+
\ <id>m1-small</id>\n <name>m1-small</name>\n <property kind='fixed'
|
176
|
+
name='cpu' unit='count' value='1' />\n <property kind='fixed' name='memory'
|
177
|
+
unit='MB' value='1740.8' />\n <property kind='fixed' name='storage' unit='GB'
|
178
|
+
value='160' />\n <property kind='fixed' name='architecture' unit='label'
|
179
|
+
value='i386' />\n </hardware_profile>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-large'
|
180
|
+
id='m1-large'>\n <id>m1-large</id>\n <name>m1-large</name>\n <property
|
181
|
+
kind='range' name='cpu' unit='count' value='1'>\n <param href='http://localhost:3001/api/instances'
|
182
|
+
method='post' name='hwp_cpu' operation='create' />\n <range first='1'
|
183
|
+
last='6' />\n </property>\n <property kind='range' name='memory' unit='MB'
|
184
|
+
value='10240'>\n <param href='http://localhost:3001/api/instances' method='post'
|
185
|
+
name='hwp_memory' operation='create' />\n <range first='7680' last='15360'
|
186
|
+
/>\n </property>\n <property kind='enum' name='storage' unit='GB' value='850'>\n
|
187
|
+
\ <param href='http://localhost:3001/api/instances' method='post' name='hwp_storage'
|
188
|
+
operation='create' />\n <enum>\n <entry value='850' />\n <entry
|
189
|
+
value='1024' />\n </enum>\n </property>\n <property kind='fixed'
|
190
|
+
name='architecture' unit='label' value='x86_64' />\n </hardware_profile>\n
|
191
|
+
\ <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-xlarge'
|
192
|
+
id='m1-xlarge'>\n <id>m1-xlarge</id>\n <name>m1-xlarge</name>\n <property
|
193
|
+
kind='fixed' name='cpu' unit='count' value='4' />\n <property kind='range'
|
194
|
+
name='memory' unit='MB' value='12288'>\n <param href='http://localhost:3001/api/instances'
|
195
|
+
method='post' name='hwp_memory' operation='create' />\n <range first='12288'
|
196
|
+
last='32768' />\n </property>\n <property kind='enum' name='storage'
|
197
|
+
unit='GB' value='1024'>\n <param href='http://localhost:3001/api/instances'
|
198
|
+
method='post' name='hwp_storage' operation='create' />\n <enum>\n <entry
|
199
|
+
value='1024' />\n <entry value='2048' />\n <entry value='4096'
|
200
|
+
/>\n </enum>\n </property>\n <property kind='fixed' name='architecture'
|
201
|
+
unit='label' value='x86_64' />\n </hardware_profile>\n <hardware_profile
|
202
|
+
href='http://localhost:3001/api/hardware_profiles/opaque' id='opaque'>\n <id>opaque</id>\n
|
203
|
+
\ <name>opaque</name>\n </hardware_profile>\n</hardware_profiles>\n"
|
204
|
+
http_version:
|
205
|
+
recorded_at: Wed, 06 Mar 2013 08:56:17 GMT
|
206
|
+
- request:
|
207
|
+
method: get
|
208
|
+
uri: http://localhost:3001/api/images/img1
|
209
|
+
body:
|
210
|
+
encoding: US-ASCII
|
211
|
+
string: ''
|
212
|
+
headers:
|
213
|
+
Accept:
|
214
|
+
- application/xml
|
215
|
+
Authorization:
|
216
|
+
- Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
|
217
|
+
User-Agent:
|
218
|
+
- Faraday v0.8.6
|
219
|
+
response:
|
220
|
+
status:
|
221
|
+
code: 200
|
222
|
+
message:
|
223
|
+
headers:
|
224
|
+
content-type:
|
225
|
+
- application/xml
|
226
|
+
x-backend-runtime:
|
227
|
+
- '0.0009150505065917969'
|
228
|
+
server:
|
229
|
+
- Apache-Deltacloud/1.1.1
|
230
|
+
x-deltacloud-driver:
|
231
|
+
- mock
|
232
|
+
content-length:
|
233
|
+
- '1195'
|
234
|
+
x-content-type-options:
|
235
|
+
- nosniff
|
236
|
+
etag:
|
237
|
+
- 78fce4b6967945208246f8ec7ccba460
|
238
|
+
cache-control:
|
239
|
+
- max-age=0, private, must-revalidate
|
240
|
+
date:
|
241
|
+
- Wed, 06 Mar 2013 15:40:09 GMT
|
242
|
+
connection:
|
243
|
+
- close
|
244
|
+
body:
|
245
|
+
encoding: US-ASCII
|
246
|
+
string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<image href='http://localhost:3001/api/images/img1'
|
247
|
+
id='img1'>\n <name>img1</name>\n <description>Fedora 10</description>\n
|
248
|
+
\ <owner_id>fedoraproject</owner_id>\n <architecture>x86_64</architecture>\n
|
249
|
+
\ <state>AVAILABLE</state>\n <creation_time>Thu Oct 25 14:27:53 CEST 2012</creation_time>\n
|
250
|
+
\ <hardware_profiles>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
|
251
|
+
id='m1-small' rel='hardware_profile'></hardware_profile>\n <hardware_profile
|
252
|
+
href='http://localhost:3001/api/hardware_profiles/m1-large' id='m1-large'
|
253
|
+
rel='hardware_profile'></hardware_profile>\n <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-xlarge'
|
254
|
+
id='m1-xlarge' rel='hardware_profile'></hardware_profile>\n <hardware_profile
|
255
|
+
href='http://localhost:3001/api/hardware_profiles/opaque' id='opaque' rel='hardware_profile'></hardware_profile>\n
|
256
|
+
\ </hardware_profiles>\n <root_type>transient</root_type>\n <actions>\n
|
257
|
+
\ <link href='http://localhost:3001/api/instances;image_id=img1' method='post'
|
258
|
+
rel='create_instance' />\n <link href='http://localhost:3001/api/images/img1'
|
259
|
+
method='delete' rel='destroy_image' />\n </actions>\n</image>\n"
|
260
|
+
http_version:
|
261
|
+
recorded_at: Wed, 06 Mar 2013 15:40:09 GMT
|
262
|
+
recorded_with: VCR 2.4.0
|