You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2013/03/26 18:58:01 UTC
[15/30] Client: Added VCR fixtures for testing
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/0439fc75/client/tests/fixtures/test_0001_supports_storage_volumes.yml
----------------------------------------------------------------------
diff --git a/client/tests/fixtures/test_0001_supports_storage_volumes.yml b/client/tests/fixtures/test_0001_supports_storage_volumes.yml
new file mode 100644
index 0000000..dd124e3
--- /dev/null
+++ b/client/tests/fixtures/test_0001_supports_storage_volumes.yml
@@ -0,0 +1,176 @@
+---
+http_interactions:
+- request:
+ method: get
+ uri: http://localhost:3001/api
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '1368'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - e43d25244dc2b8ce1da6fa91131507ee
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 08:56:19 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<api driver='mock' version='1.1.1'>\n <link href='http://localhost:3001/api/instance_states'
+ rel='instance_states'>\n </link>\n <link href='http://localhost:3001/api/storage_volumes'
+ rel='storage_volumes'>\n </link>\n <link href='http://localhost:3001/api/metrics'
+ rel='metrics'>\n </link>\n <link href='http://localhost:3001/api/hardware_profiles'
+ rel='hardware_profiles'>\n </link>\n <link href='http://localhost:3001/api/instances'
+ rel='instances'>\n <feature name='metrics' rel='create'>\n <param
+ name='metrics' />\n </feature>\n <feature name='realm_filter' rel='index'>\n
+ \ <param name='realm_id' />\n </feature>\n <feature name='user_name'
+ rel='create'>\n <param name='name' />\n </feature>\n <feature name='authentication_key'
+ rel='create'>\n <param name='keyname' />\n </feature>\n </link>\n
+ \ <link href='http://localhost:3001/api/realms' rel='realms'>\n </link>\n
+ \ <link href='http://localhost:3001/api/storage_snapshots' rel='storage_snapshots'>\n
+ \ </link>\n <link href='http://localhost:3001/api/images' rel='images'>\n
+ \ </link>\n <link href='http://localhost:3001/api/addresses' rel='addresses'>\n
+ \ </link>\n <link href='http://localhost:3001/api/drivers' rel='drivers'>\n
+ \ </link>\n <link href='http://localhost:3001/api/buckets' rel='buckets'>\n
+ \ </link>\n <link href='http://localhost:3001/api/keys' rel='keys'>\n </link>\n</api>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 08:56:19 GMT
+- request:
+ method: get
+ uri: http://localhost:3001/api/storage_volumes
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ x-backend-runtime:
+ - '0.002794027328491211'
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '1285'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - 3e473ad9ed7a3ed2b3d22f364cb65629
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 08:56:19 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<storage_volumes>\n <storage_volume
+ href='http://localhost:3001/api/storage_volumes/vol3' id='vol3'>\n <created>Thu
+ Jul 30 14:35:11 UTC 2009</created>\n <capacity unit='GB'>1</capacity>\n
+ \ <name>vol3</name>\n <device>/dev/sda1</device>\n <realm href='http://localhost:3001/api/realms/us'
+ id='us'></realm>\n <realm_id>us</realm_id>\n <state>IN-USE</state>\n
+ \ <mount>\n <instance href='http://localhost:3001/api/instances/inst1'
+ id='inst1'></instance>\n <device name='/dev/sda1'></device>\n </mount>\n
+ \ </storage_volume>\n <storage_volume href='http://localhost:3001/api/storage_volumes/vol1'
+ id='vol1'>\n <created>Thu Jul 30 14:35:11 UTC 2009</created>\n <capacity
+ unit='GB'>1</capacity>\n <name>vol1</name>\n <realm href='http://localhost:3001/api/realms/us'
+ id='us'></realm>\n <realm_id>us</realm_id>\n <state>AVAILABLE</state>\n
+ \ </storage_volume>\n <storage_volume href='http://localhost:3001/api/storage_volumes/vol2'
+ id='vol2'>\n <created>Thu Jul 30 14:35:11 UTC 2009</created>\n <capacity
+ unit='GB'>1</capacity>\n <name>vol2</name>\n <realm href='http://localhost:3001/api/realms/us'
+ id='us'></realm>\n <realm_id>us</realm_id>\n <state>AVAILABLE</state>\n
+ \ </storage_volume>\n</storage_volumes>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 08:56:19 GMT
+- request:
+ method: get
+ uri: http://localhost:3001/api/storage_volumes
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ x-backend-runtime:
+ - '0.0017066001892089844'
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '1285'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - 3e473ad9ed7a3ed2b3d22f364cb65629
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 08:56:19 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<storage_volumes>\n <storage_volume
+ href='http://localhost:3001/api/storage_volumes/vol3' id='vol3'>\n <created>Thu
+ Jul 30 14:35:11 UTC 2009</created>\n <capacity unit='GB'>1</capacity>\n
+ \ <name>vol3</name>\n <device>/dev/sda1</device>\n <realm href='http://localhost:3001/api/realms/us'
+ id='us'></realm>\n <realm_id>us</realm_id>\n <state>IN-USE</state>\n
+ \ <mount>\n <instance href='http://localhost:3001/api/instances/inst1'
+ id='inst1'></instance>\n <device name='/dev/sda1'></device>\n </mount>\n
+ \ </storage_volume>\n <storage_volume href='http://localhost:3001/api/storage_volumes/vol1'
+ id='vol1'>\n <created>Thu Jul 30 14:35:11 UTC 2009</created>\n <capacity
+ unit='GB'>1</capacity>\n <name>vol1</name>\n <realm href='http://localhost:3001/api/realms/us'
+ id='us'></realm>\n <realm_id>us</realm_id>\n <state>AVAILABLE</state>\n
+ \ </storage_volume>\n <storage_volume href='http://localhost:3001/api/storage_volumes/vol2'
+ id='vol2'>\n <created>Thu Jul 30 14:35:11 UTC 2009</created>\n <capacity
+ unit='GB'>1</capacity>\n <name>vol2</name>\n <realm href='http://localhost:3001/api/realms/us'
+ id='us'></realm>\n <realm_id>us</realm_id>\n <state>AVAILABLE</state>\n
+ \ </storage_volume>\n</storage_volumes>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 08:56:19 GMT
+recorded_with: VCR 2.4.0
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/0439fc75/client/tests/fixtures/test_0001_supports_to_get_providers.yml
----------------------------------------------------------------------
diff --git a/client/tests/fixtures/test_0001_supports_to_get_providers.yml b/client/tests/fixtures/test_0001_supports_to_get_providers.yml
new file mode 100644
index 0000000..b90a6be
--- /dev/null
+++ b/client/tests/fixtures/test_0001_supports_to_get_providers.yml
@@ -0,0 +1,410 @@
+---
+http_interactions:
+- request:
+ method: get
+ uri: http://localhost:3001/api
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '1368'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - e43d25244dc2b8ce1da6fa91131507ee
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 15:37:26 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<api driver='mock' version='1.1.1'>\n <link href='http://localhost:3001/api/instance_states'
+ rel='instance_states'>\n </link>\n <link href='http://localhost:3001/api/storage_volumes'
+ rel='storage_volumes'>\n </link>\n <link href='http://localhost:3001/api/metrics'
+ rel='metrics'>\n </link>\n <link href='http://localhost:3001/api/hardware_profiles'
+ rel='hardware_profiles'>\n </link>\n <link href='http://localhost:3001/api/instances'
+ rel='instances'>\n <feature name='metrics' rel='create'>\n <param
+ name='metrics' />\n </feature>\n <feature name='realm_filter' rel='index'>\n
+ \ <param name='realm_id' />\n </feature>\n <feature name='user_name'
+ rel='create'>\n <param name='name' />\n </feature>\n <feature name='authentication_key'
+ rel='create'>\n <param name='keyname' />\n </feature>\n </link>\n
+ \ <link href='http://localhost:3001/api/realms' rel='realms'>\n </link>\n
+ \ <link href='http://localhost:3001/api/storage_snapshots' rel='storage_snapshots'>\n
+ \ </link>\n <link href='http://localhost:3001/api/images' rel='images'>\n
+ \ </link>\n <link href='http://localhost:3001/api/addresses' rel='addresses'>\n
+ \ </link>\n <link href='http://localhost:3001/api/drivers' rel='drivers'>\n
+ \ </link>\n <link href='http://localhost:3001/api/buckets' rel='buckets'>\n
+ \ </link>\n <link href='http://localhost:3001/api/keys' rel='keys'>\n </link>\n</api>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 15:37:26 GMT
+- request:
+ method: get
+ uri: http://localhost:3001/api/drivers/ec2
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '2820'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - e46ed1894e2830dc783dca7a7d242352
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 15:37:26 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<driver href='http://localhost:3001/api/drivers/ec2' id='ec2'>\n
+ \ <name>EC2</name>\n <provider id='us-west-1'>\n <entrypoint kind='s3'><![CDATA[s3-us-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.us-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.us-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.us-west-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='us-west-2'>\n <entrypoint kind='s3'><![CDATA[s3-us-west-2.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.us-west-2.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.us-west-2.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.us-west-2.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='ap-southeast-1'>\n <entrypoint kind='s3'><![CDATA[s3-ap-southeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.ap-southeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.ap-southeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.ap-southeast-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='ap-northeast-1'>\n <entrypoint kind='s3'><![CDATA[s3-ap-northeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.ap-northeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.ap-northeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.ap-northeast-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='eu-west-1'>\n <entrypoint kind='s3'><![CDATA[s3-eu-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.eu-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.eu-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.eu-west-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='us-east-1'>\n <entrypoint kind='s3'><![CDATA[s3.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.us-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.us-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.us-east-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='sa-east-1'>\n <entrypoint kind='s3'><![CDATA[s3-sa-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.sa-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.sa-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.sa-east-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n</driver>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 15:37:27 GMT
+- request:
+ method: get
+ uri: http://localhost:3001/api/drivers/ec2
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '2820'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - e46ed1894e2830dc783dca7a7d242352
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 15:37:27 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<driver href='http://localhost:3001/api/drivers/ec2' id='ec2'>\n
+ \ <name>EC2</name>\n <provider id='us-west-1'>\n <entrypoint kind='s3'><![CDATA[s3-us-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.us-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.us-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.us-west-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='us-west-2'>\n <entrypoint kind='s3'><![CDATA[s3-us-west-2.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.us-west-2.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.us-west-2.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.us-west-2.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='ap-southeast-1'>\n <entrypoint kind='s3'><![CDATA[s3-ap-southeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.ap-southeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.ap-southeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.ap-southeast-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='ap-northeast-1'>\n <entrypoint kind='s3'><![CDATA[s3-ap-northeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.ap-northeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.ap-northeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.ap-northeast-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='eu-west-1'>\n <entrypoint kind='s3'><![CDATA[s3-eu-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.eu-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.eu-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.eu-west-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='us-east-1'>\n <entrypoint kind='s3'><![CDATA[s3.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.us-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.us-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.us-east-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='sa-east-1'>\n <entrypoint kind='s3'><![CDATA[s3-sa-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.sa-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.sa-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.sa-east-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n</driver>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 15:37:27 GMT
+- request:
+ method: get
+ uri: http://localhost:3001/api/drivers/ec2
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '2820'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - e46ed1894e2830dc783dca7a7d242352
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 15:38:18 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<driver href='http://localhost:3001/api/drivers/ec2' id='ec2'>\n
+ \ <name>EC2</name>\n <provider id='us-west-1'>\n <entrypoint kind='s3'><![CDATA[s3-us-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.us-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.us-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.us-west-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='us-west-2'>\n <entrypoint kind='s3'><![CDATA[s3-us-west-2.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.us-west-2.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.us-west-2.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.us-west-2.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='ap-southeast-1'>\n <entrypoint kind='s3'><![CDATA[s3-ap-southeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.ap-southeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.ap-southeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.ap-southeast-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='ap-northeast-1'>\n <entrypoint kind='s3'><![CDATA[s3-ap-northeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.ap-northeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.ap-northeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.ap-northeast-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='eu-west-1'>\n <entrypoint kind='s3'><![CDATA[s3-eu-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.eu-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.eu-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.eu-west-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='us-east-1'>\n <entrypoint kind='s3'><![CDATA[s3.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.us-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.us-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.us-east-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='sa-east-1'>\n <entrypoint kind='s3'><![CDATA[s3-sa-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.sa-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.sa-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.sa-east-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n</driver>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 15:38:18 GMT
+- request:
+ method: get
+ uri: http://localhost:3001/api/drivers/ec2
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '2820'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - e46ed1894e2830dc783dca7a7d242352
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 15:38:18 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<driver href='http://localhost:3001/api/drivers/ec2' id='ec2'>\n
+ \ <name>EC2</name>\n <provider id='us-west-1'>\n <entrypoint kind='s3'><![CDATA[s3-us-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.us-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.us-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.us-west-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='us-west-2'>\n <entrypoint kind='s3'><![CDATA[s3-us-west-2.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.us-west-2.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.us-west-2.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.us-west-2.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='ap-southeast-1'>\n <entrypoint kind='s3'><![CDATA[s3-ap-southeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.ap-southeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.ap-southeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.ap-southeast-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='ap-northeast-1'>\n <entrypoint kind='s3'><![CDATA[s3-ap-northeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.ap-northeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.ap-northeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.ap-northeast-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='eu-west-1'>\n <entrypoint kind='s3'><![CDATA[s3-eu-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.eu-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.eu-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.eu-west-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='us-east-1'>\n <entrypoint kind='s3'><![CDATA[s3.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.us-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.us-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.us-east-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='sa-east-1'>\n <entrypoint kind='s3'><![CDATA[s3-sa-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.sa-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.sa-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.sa-east-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n</driver>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 15:38:18 GMT
+- request:
+ method: get
+ uri: http://localhost:3001/api/drivers/ec2
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '2820'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - e46ed1894e2830dc783dca7a7d242352
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 15:38:38 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<driver href='http://localhost:3001/api/drivers/ec2' id='ec2'>\n
+ \ <name>EC2</name>\n <provider id='us-west-1'>\n <entrypoint kind='s3'><![CDATA[s3-us-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.us-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.us-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.us-west-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='us-west-2'>\n <entrypoint kind='s3'><![CDATA[s3-us-west-2.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.us-west-2.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.us-west-2.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.us-west-2.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='ap-southeast-1'>\n <entrypoint kind='s3'><![CDATA[s3-ap-southeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.ap-southeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.ap-southeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.ap-southeast-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='ap-northeast-1'>\n <entrypoint kind='s3'><![CDATA[s3-ap-northeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.ap-northeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.ap-northeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.ap-northeast-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='eu-west-1'>\n <entrypoint kind='s3'><![CDATA[s3-eu-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.eu-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.eu-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.eu-west-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='us-east-1'>\n <entrypoint kind='s3'><![CDATA[s3.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.us-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.us-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.us-east-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='sa-east-1'>\n <entrypoint kind='s3'><![CDATA[s3-sa-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.sa-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.sa-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.sa-east-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n</driver>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 15:38:38 GMT
+recorded_with: VCR 2.4.0
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/0439fc75/client/tests/fixtures/test_0002_support_blob.yml
----------------------------------------------------------------------
diff --git a/client/tests/fixtures/test_0002_support_blob.yml b/client/tests/fixtures/test_0002_support_blob.yml
new file mode 100644
index 0000000..208c097
--- /dev/null
+++ b/client/tests/fixtures/test_0002_support_blob.yml
@@ -0,0 +1,148 @@
+---
+http_interactions:
+- request:
+ method: get
+ uri: http://localhost:3001/api
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '1368'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - e43d25244dc2b8ce1da6fa91131507ee
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 08:56:16 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<api driver='mock' version='1.1.1'>\n <link href='http://localhost:3001/api/instance_states'
+ rel='instance_states'>\n </link>\n <link href='http://localhost:3001/api/storage_volumes'
+ rel='storage_volumes'>\n </link>\n <link href='http://localhost:3001/api/metrics'
+ rel='metrics'>\n </link>\n <link href='http://localhost:3001/api/hardware_profiles'
+ rel='hardware_profiles'>\n </link>\n <link href='http://localhost:3001/api/instances'
+ rel='instances'>\n <feature name='metrics' rel='create'>\n <param
+ name='metrics' />\n </feature>\n <feature name='realm_filter' rel='index'>\n
+ \ <param name='realm_id' />\n </feature>\n <feature name='user_name'
+ rel='create'>\n <param name='name' />\n </feature>\n <feature name='authentication_key'
+ rel='create'>\n <param name='keyname' />\n </feature>\n </link>\n
+ \ <link href='http://localhost:3001/api/realms' rel='realms'>\n </link>\n
+ \ <link href='http://localhost:3001/api/storage_snapshots' rel='storage_snapshots'>\n
+ \ </link>\n <link href='http://localhost:3001/api/images' rel='images'>\n
+ \ </link>\n <link href='http://localhost:3001/api/addresses' rel='addresses'>\n
+ \ </link>\n <link href='http://localhost:3001/api/drivers' rel='drivers'>\n
+ \ </link>\n <link href='http://localhost:3001/api/buckets' rel='buckets'>\n
+ \ </link>\n <link href='http://localhost:3001/api/keys' rel='keys'>\n </link>\n</api>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 08:56:16 GMT
+- request:
+ method: get
+ uri: http://localhost:3001/api/buckets/bucket1/blob1
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '485'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - 6ffb9a8c697a593bc98fed727e98f855
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 08:56:16 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<blob href='http://localhost:3001/api/buckets/bucket1/blob1'
+ id='blob1'>\n <bucket>bucket1</bucket>\n <content_length>17</content_length>\n
+ \ <content_type>text/plain</content_type>\n <last_modified>2010-09-23 17:44:54
+ +0200</last_modified>\n <user_metadata>\n <entry key='SOMENEWKEY'><![CDATA[NEWVALUE]]></entry>\n
+ \ </user_metadata>\n <content href='http://localhost:3001/api/buckets/bucket1/blob1/content'
+ rel='blob_content'></content>\n</blob>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 08:56:16 GMT
+- request:
+ method: get
+ uri: http://localhost:3001/api/buckets/bucket1/foo
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 404
+ message:
+ headers:
+ content-type:
+ - application/xml
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '485'
+ x-content-type-options:
+ - nosniff
+ date:
+ - Wed, 06 Mar 2013 08:56:16 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<error status='404' url='/api/buckets/bucket1/foo'>\n
+ \ <backend driver='mock' provider='default'></backend>\n <code>404</code>\n
+ \ <message><![CDATA[Not Found]]></message>\n <backtrace></backtrace>\n <request>\n
+ \ <param name='splat'><![CDATA[[]]]></param>\n <param name='captures'><![CDATA[[\"bucket1\",
+ \"foo\"]]]></param>\n <param name='id'><![CDATA[\"bucket1\"]]></param>\n
+ \ <param name='blob_id'><![CDATA[\"foo\"]]></param>\n </request>\n</error>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 08:56:16 GMT
+recorded_with: VCR 2.4.0
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/0439fc75/client/tests/fixtures/test_0002_support_instance_state.yml
----------------------------------------------------------------------
diff --git a/client/tests/fixtures/test_0002_support_instance_state.yml b/client/tests/fixtures/test_0002_support_instance_state.yml
new file mode 100644
index 0000000..464dd0e
--- /dev/null
+++ b/client/tests/fixtures/test_0002_support_instance_state.yml
@@ -0,0 +1,204 @@
+---
+http_interactions:
+- request:
+ method: get
+ uri: http://localhost:3001/api
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '1368'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - e43d25244dc2b8ce1da6fa91131507ee
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 08:56:18 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<api driver='mock' version='1.1.1'>\n <link href='http://localhost:3001/api/instance_states'
+ rel='instance_states'>\n </link>\n <link href='http://localhost:3001/api/storage_volumes'
+ rel='storage_volumes'>\n </link>\n <link href='http://localhost:3001/api/metrics'
+ rel='metrics'>\n </link>\n <link href='http://localhost:3001/api/hardware_profiles'
+ rel='hardware_profiles'>\n </link>\n <link href='http://localhost:3001/api/instances'
+ rel='instances'>\n <feature name='metrics' rel='create'>\n <param
+ name='metrics' />\n </feature>\n <feature name='realm_filter' rel='index'>\n
+ \ <param name='realm_id' />\n </feature>\n <feature name='user_name'
+ rel='create'>\n <param name='name' />\n </feature>\n <feature name='authentication_key'
+ rel='create'>\n <param name='keyname' />\n </feature>\n </link>\n
+ \ <link href='http://localhost:3001/api/realms' rel='realms'>\n </link>\n
+ \ <link href='http://localhost:3001/api/storage_snapshots' rel='storage_snapshots'>\n
+ \ </link>\n <link href='http://localhost:3001/api/images' rel='images'>\n
+ \ </link>\n <link href='http://localhost:3001/api/addresses' rel='addresses'>\n
+ \ </link>\n <link href='http://localhost:3001/api/drivers' rel='drivers'>\n
+ \ </link>\n <link href='http://localhost:3001/api/buckets' rel='buckets'>\n
+ \ </link>\n <link href='http://localhost:3001/api/keys' rel='keys'>\n </link>\n</api>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 08:56:18 GMT
+- request:
+ method: get
+ uri: http://localhost:3001/api/instance_states
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '543'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - fa9267298fdf7b936d9635aa5ce29640
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 08:56:18 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<states>\n <state name='start'>\n <transition action='create'
+ to='pending'></transition>\n </state>\n <state name='pending'>\n <transition
+ auto='true' to='running'></transition>\n </state>\n <state name='running'>\n
+ \ <transition action='reboot' to='running'></transition>\n <transition
+ action='stop' to='stopped'></transition>\n </state>\n <state name='stopped'>\n
+ \ <transition action='start' to='running'></transition>\n <transition
+ action='destroy' to='finish'></transition>\n </state>\n <state name='finish'>\n
+ \ </state>\n</states>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 08:56:18 GMT
+- request:
+ method: get
+ uri: http://localhost:3001/api/instance_states
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '543'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - fa9267298fdf7b936d9635aa5ce29640
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 08:56:18 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<states>\n <state name='start'>\n <transition action='create'
+ to='pending'></transition>\n </state>\n <state name='pending'>\n <transition
+ auto='true' to='running'></transition>\n </state>\n <state name='running'>\n
+ \ <transition action='reboot' to='running'></transition>\n <transition
+ action='stop' to='stopped'></transition>\n </state>\n <state name='stopped'>\n
+ \ <transition action='start' to='running'></transition>\n <transition
+ action='destroy' to='finish'></transition>\n </state>\n <state name='finish'>\n
+ \ </state>\n</states>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 08:56:18 GMT
+- request:
+ method: get
+ uri: http://localhost:3001/api/instance_states
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '543'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - fa9267298fdf7b936d9635aa5ce29640
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 08:56:18 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<states>\n <state name='start'>\n <transition action='create'
+ to='pending'></transition>\n </state>\n <state name='pending'>\n <transition
+ auto='true' to='running'></transition>\n </state>\n <state name='running'>\n
+ \ <transition action='reboot' to='running'></transition>\n <transition
+ action='stop' to='stopped'></transition>\n </state>\n <state name='stopped'>\n
+ \ <transition action='start' to='running'></transition>\n <transition
+ action='destroy' to='finish'></transition>\n </state>\n <state name='finish'>\n
+ \ </state>\n</states>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 08:56:18 GMT
+recorded_with: VCR 2.4.0
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/0439fc75/client/tests/fixtures/test_0002_support_memory.yml
----------------------------------------------------------------------
diff --git a/client/tests/fixtures/test_0002_support_memory.yml b/client/tests/fixtures/test_0002_support_memory.yml
new file mode 100644
index 0000000..a5264a7
--- /dev/null
+++ b/client/tests/fixtures/test_0002_support_memory.yml
@@ -0,0 +1,444 @@
+---
+http_interactions:
+- request:
+ method: get
+ uri: http://localhost:3001/api
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '1368'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - e43d25244dc2b8ce1da6fa91131507ee
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 15:47:04 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<api driver='mock' version='1.1.1'>\n <link href='http://localhost:3001/api/instance_states'
+ rel='instance_states'>\n </link>\n <link href='http://localhost:3001/api/storage_volumes'
+ rel='storage_volumes'>\n </link>\n <link href='http://localhost:3001/api/metrics'
+ rel='metrics'>\n </link>\n <link href='http://localhost:3001/api/hardware_profiles'
+ rel='hardware_profiles'>\n </link>\n <link href='http://localhost:3001/api/instances'
+ rel='instances'>\n <feature name='metrics' rel='create'>\n <param
+ name='metrics' />\n </feature>\n <feature name='realm_filter' rel='index'>\n
+ \ <param name='realm_id' />\n </feature>\n <feature name='user_name'
+ rel='create'>\n <param name='name' />\n </feature>\n <feature name='authentication_key'
+ rel='create'>\n <param name='keyname' />\n </feature>\n </link>\n
+ \ <link href='http://localhost:3001/api/realms' rel='realms'>\n </link>\n
+ \ <link href='http://localhost:3001/api/storage_snapshots' rel='storage_snapshots'>\n
+ \ </link>\n <link href='http://localhost:3001/api/images' rel='images'>\n
+ \ </link>\n <link href='http://localhost:3001/api/addresses' rel='addresses'>\n
+ \ </link>\n <link href='http://localhost:3001/api/drivers' rel='drivers'>\n
+ \ </link>\n <link href='http://localhost:3001/api/buckets' rel='buckets'>\n
+ \ </link>\n <link href='http://localhost:3001/api/keys' rel='keys'>\n </link>\n</api>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 15:47:04 GMT
+- request:
+ method: get
+ uri: http://localhost:3001/api/hardware_profiles/m1-small
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ x-backend-runtime:
+ - '7.009506225585938e-05'
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '465'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - 28c52ced85d102f8d21eafb861582994
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 15:47:04 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
+ id='m1-small'>\n <id>m1-small</id>\n <name>m1-small</name>\n <property
+ kind='fixed' name='cpu' unit='count' value='1' />\n <property kind='fixed'
+ name='memory' unit='MB' value='1740.8' />\n <property kind='fixed' name='storage'
+ unit='GB' value='160' />\n <property kind='fixed' name='architecture' unit='label'
+ value='i386' />\n</hardware_profile>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 15:47:04 GMT
+- request:
+ method: get
+ uri: http://localhost:3001/api/hardware_profiles/m1-small
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ x-backend-runtime:
+ - '8.153915405273438e-05'
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '465'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - 28c52ced85d102f8d21eafb861582994
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 15:47:04 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
+ id='m1-small'>\n <id>m1-small</id>\n <name>m1-small</name>\n <property
+ kind='fixed' name='cpu' unit='count' value='1' />\n <property kind='fixed'
+ name='memory' unit='MB' value='1740.8' />\n <property kind='fixed' name='storage'
+ unit='GB' value='160' />\n <property kind='fixed' name='architecture' unit='label'
+ value='i386' />\n</hardware_profile>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 15:47:04 GMT
+- request:
+ method: get
+ uri: http://localhost:3001/api/hardware_profiles/m1-small
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ x-backend-runtime:
+ - '0.00016379356384277344'
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '465'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - 28c52ced85d102f8d21eafb861582994
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 15:47:04 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
+ id='m1-small'>\n <id>m1-small</id>\n <name>m1-small</name>\n <property
+ kind='fixed' name='cpu' unit='count' value='1' />\n <property kind='fixed'
+ name='memory' unit='MB' value='1740.8' />\n <property kind='fixed' name='storage'
+ unit='GB' value='160' />\n <property kind='fixed' name='architecture' unit='label'
+ value='i386' />\n</hardware_profile>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 15:47:04 GMT
+- request:
+ method: get
+ uri: http://localhost:3001/api/hardware_profiles/m1-small
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ x-backend-runtime:
+ - '0.00017213821411132812'
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '465'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - 28c52ced85d102f8d21eafb861582994
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 15:47:04 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
+ id='m1-small'>\n <id>m1-small</id>\n <name>m1-small</name>\n <property
+ kind='fixed' name='cpu' unit='count' value='1' />\n <property kind='fixed'
+ name='memory' unit='MB' value='1740.8' />\n <property kind='fixed' name='storage'
+ unit='GB' value='160' />\n <property kind='fixed' name='architecture' unit='label'
+ value='i386' />\n</hardware_profile>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 15:47:04 GMT
+- request:
+ method: get
+ uri: http://localhost:3001/api/hardware_profiles/m1-small
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ x-backend-runtime:
+ - '0.00012111663818359375'
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '465'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - 28c52ced85d102f8d21eafb861582994
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 15:47:04 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
+ id='m1-small'>\n <id>m1-small</id>\n <name>m1-small</name>\n <property
+ kind='fixed' name='cpu' unit='count' value='1' />\n <property kind='fixed'
+ name='memory' unit='MB' value='1740.8' />\n <property kind='fixed' name='storage'
+ unit='GB' value='160' />\n <property kind='fixed' name='architecture' unit='label'
+ value='i386' />\n</hardware_profile>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 15:47:04 GMT
+- request:
+ method: get
+ uri: http://localhost:3001/api/hardware_profiles/m1-small
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ x-backend-runtime:
+ - '5.53131103515625e-05'
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '465'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - 28c52ced85d102f8d21eafb861582994
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 15:47:04 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
+ id='m1-small'>\n <id>m1-small</id>\n <name>m1-small</name>\n <property
+ kind='fixed' name='cpu' unit='count' value='1' />\n <property kind='fixed'
+ name='memory' unit='MB' value='1740.8' />\n <property kind='fixed' name='storage'
+ unit='GB' value='160' />\n <property kind='fixed' name='architecture' unit='label'
+ value='i386' />\n</hardware_profile>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 15:47:04 GMT
+- request:
+ method: get
+ uri: http://localhost:3001/api/hardware_profiles/m1-small
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ x-backend-runtime:
+ - '6.389617919921875e-05'
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '465'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - 28c52ced85d102f8d21eafb861582994
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 15:47:04 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
+ id='m1-small'>\n <id>m1-small</id>\n <name>m1-small</name>\n <property
+ kind='fixed' name='cpu' unit='count' value='1' />\n <property kind='fixed'
+ name='memory' unit='MB' value='1740.8' />\n <property kind='fixed' name='storage'
+ unit='GB' value='160' />\n <property kind='fixed' name='architecture' unit='label'
+ value='i386' />\n</hardware_profile>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 15:47:04 GMT
+- request:
+ method: get
+ uri: http://localhost:3001/api/hardware_profiles/m1-small
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ x-backend-runtime:
+ - '5.888938903808594e-05'
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '465'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - 28c52ced85d102f8d21eafb861582994
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 15:47:04 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small'
+ id='m1-small'>\n <id>m1-small</id>\n <name>m1-small</name>\n <property
+ kind='fixed' name='cpu' unit='count' value='1' />\n <property kind='fixed'
+ name='memory' unit='MB' value='1740.8' />\n <property kind='fixed' name='storage'
+ unit='GB' value='160' />\n <property kind='fixed' name='architecture' unit='label'
+ value='i386' />\n</hardware_profile>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 15:47:04 GMT
+recorded_with: VCR 2.4.0
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/0439fc75/client/tests/fixtures/test_0002_support_on_Provider.yml
----------------------------------------------------------------------
diff --git a/client/tests/fixtures/test_0002_support_on_Provider.yml b/client/tests/fixtures/test_0002_support_on_Provider.yml
new file mode 100644
index 0000000..3a17e59
--- /dev/null
+++ b/client/tests/fixtures/test_0002_support_on_Provider.yml
@@ -0,0 +1,130 @@
+---
+http_interactions:
+- request:
+ method: get
+ uri: http://localhost:3001/api
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '1368'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - e43d25244dc2b8ce1da6fa91131507ee
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 15:54:59 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<api driver='mock' version='1.1.1'>\n <link href='http://localhost:3001/api/instance_states'
+ rel='instance_states'>\n </link>\n <link href='http://localhost:3001/api/storage_volumes'
+ rel='storage_volumes'>\n </link>\n <link href='http://localhost:3001/api/metrics'
+ rel='metrics'>\n </link>\n <link href='http://localhost:3001/api/hardware_profiles'
+ rel='hardware_profiles'>\n </link>\n <link href='http://localhost:3001/api/instances'
+ rel='instances'>\n <feature name='metrics' rel='create'>\n <param
+ name='metrics' />\n </feature>\n <feature name='realm_filter' rel='index'>\n
+ \ <param name='realm_id' />\n </feature>\n <feature name='user_name'
+ rel='create'>\n <param name='name' />\n </feature>\n <feature name='authentication_key'
+ rel='create'>\n <param name='keyname' />\n </feature>\n </link>\n
+ \ <link href='http://localhost:3001/api/realms' rel='realms'>\n </link>\n
+ \ <link href='http://localhost:3001/api/storage_snapshots' rel='storage_snapshots'>\n
+ \ </link>\n <link href='http://localhost:3001/api/images' rel='images'>\n
+ \ </link>\n <link href='http://localhost:3001/api/addresses' rel='addresses'>\n
+ \ </link>\n <link href='http://localhost:3001/api/drivers' rel='drivers'>\n
+ \ </link>\n <link href='http://localhost:3001/api/buckets' rel='buckets'>\n
+ \ </link>\n <link href='http://localhost:3001/api/keys' rel='keys'>\n </link>\n</api>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 15:54:59 GMT
+- request:
+ method: get
+ uri: http://localhost:3001/api/drivers/ec2
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '2820'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - e46ed1894e2830dc783dca7a7d242352
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 15:54:59 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<driver href='http://localhost:3001/api/drivers/ec2' id='ec2'>\n
+ \ <name>EC2</name>\n <provider id='us-west-1'>\n <entrypoint kind='s3'><![CDATA[s3-us-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.us-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.us-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.us-west-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='us-west-2'>\n <entrypoint kind='s3'><![CDATA[s3-us-west-2.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.us-west-2.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.us-west-2.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.us-west-2.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='ap-southeast-1'>\n <entrypoint kind='s3'><![CDATA[s3-ap-southeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.ap-southeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.ap-southeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.ap-southeast-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='ap-northeast-1'>\n <entrypoint kind='s3'><![CDATA[s3-ap-northeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.ap-northeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.ap-northeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.ap-northeast-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='eu-west-1'>\n <entrypoint kind='s3'><![CDATA[s3-eu-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.eu-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.eu-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.eu-west-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='us-east-1'>\n <entrypoint kind='s3'><![CDATA[s3.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.us-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.us-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.us-east-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='sa-east-1'>\n <entrypoint kind='s3'><![CDATA[s3-sa-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.sa-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.sa-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.sa-east-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n</driver>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 15:54:59 GMT
+recorded_with: VCR 2.4.0
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/0439fc75/client/tests/fixtures/test_0002_supports_api_port.yml
----------------------------------------------------------------------
diff --git a/client/tests/fixtures/test_0002_supports_api_port.yml b/client/tests/fixtures/test_0002_supports_api_port.yml
new file mode 100644
index 0000000..6ca2841
--- /dev/null
+++ b/client/tests/fixtures/test_0002_supports_api_port.yml
@@ -0,0 +1,60 @@
+---
+http_interactions:
+- request:
+ method: get
+ uri: http://localhost:3001/api
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '1368'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - e43d25244dc2b8ce1da6fa91131507ee
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 08:56:16 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<api driver='mock' version='1.1.1'>\n <link href='http://localhost:3001/api/instance_states'
+ rel='instance_states'>\n </link>\n <link href='http://localhost:3001/api/storage_volumes'
+ rel='storage_volumes'>\n </link>\n <link href='http://localhost:3001/api/metrics'
+ rel='metrics'>\n </link>\n <link href='http://localhost:3001/api/hardware_profiles'
+ rel='hardware_profiles'>\n </link>\n <link href='http://localhost:3001/api/instances'
+ rel='instances'>\n <feature name='metrics' rel='create'>\n <param
+ name='metrics' />\n </feature>\n <feature name='realm_filter' rel='index'>\n
+ \ <param name='realm_id' />\n </feature>\n <feature name='user_name'
+ rel='create'>\n <param name='name' />\n </feature>\n <feature name='authentication_key'
+ rel='create'>\n <param name='keyname' />\n </feature>\n </link>\n
+ \ <link href='http://localhost:3001/api/realms' rel='realms'>\n </link>\n
+ \ <link href='http://localhost:3001/api/storage_snapshots' rel='storage_snapshots'>\n
+ \ </link>\n <link href='http://localhost:3001/api/images' rel='images'>\n
+ \ </link>\n <link href='http://localhost:3001/api/addresses' rel='addresses'>\n
+ \ </link>\n <link href='http://localhost:3001/api/drivers' rel='drivers'>\n
+ \ </link>\n <link href='http://localhost:3001/api/buckets' rel='buckets'>\n
+ \ </link>\n <link href='http://localhost:3001/api/keys' rel='keys'>\n </link>\n</api>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 08:56:16 GMT
+recorded_with: VCR 2.4.0
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/0439fc75/client/tests/fixtures/test_0002_supports_api_uri.yml
----------------------------------------------------------------------
diff --git a/client/tests/fixtures/test_0002_supports_api_uri.yml b/client/tests/fixtures/test_0002_supports_api_uri.yml
new file mode 100644
index 0000000..c7191f8
--- /dev/null
+++ b/client/tests/fixtures/test_0002_supports_api_uri.yml
@@ -0,0 +1,60 @@
+---
+http_interactions:
+- request:
+ method: get
+ uri: http://localhost:3001/api
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '1368'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - e43d25244dc2b8ce1da6fa91131507ee
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 08:56:15 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<api driver='mock' version='1.1.1'>\n <link href='http://localhost:3001/api/instance_states'
+ rel='instance_states'>\n </link>\n <link href='http://localhost:3001/api/storage_volumes'
+ rel='storage_volumes'>\n </link>\n <link href='http://localhost:3001/api/metrics'
+ rel='metrics'>\n </link>\n <link href='http://localhost:3001/api/hardware_profiles'
+ rel='hardware_profiles'>\n </link>\n <link href='http://localhost:3001/api/instances'
+ rel='instances'>\n <feature name='metrics' rel='create'>\n <param
+ name='metrics' />\n </feature>\n <feature name='realm_filter' rel='index'>\n
+ \ <param name='realm_id' />\n </feature>\n <feature name='user_name'
+ rel='create'>\n <param name='name' />\n </feature>\n <feature name='authentication_key'
+ rel='create'>\n <param name='keyname' />\n </feature>\n </link>\n
+ \ <link href='http://localhost:3001/api/realms' rel='realms'>\n </link>\n
+ \ <link href='http://localhost:3001/api/storage_snapshots' rel='storage_snapshots'>\n
+ \ </link>\n <link href='http://localhost:3001/api/images' rel='images'>\n
+ \ </link>\n <link href='http://localhost:3001/api/addresses' rel='addresses'>\n
+ \ </link>\n <link href='http://localhost:3001/api/drivers' rel='drivers'>\n
+ \ </link>\n <link href='http://localhost:3001/api/buckets' rel='buckets'>\n
+ \ </link>\n <link href='http://localhost:3001/api/keys' rel='keys'>\n </link>\n</api>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 08:56:15 GMT
+recorded_with: VCR 2.4.0
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/0439fc75/client/tests/fixtures/test_0002_supports_driver.yml
----------------------------------------------------------------------
diff --git a/client/tests/fixtures/test_0002_supports_driver.yml b/client/tests/fixtures/test_0002_supports_driver.yml
new file mode 100644
index 0000000..f122d5a
--- /dev/null
+++ b/client/tests/fixtures/test_0002_supports_driver.yml
@@ -0,0 +1,219 @@
+---
+http_interactions:
+- request:
+ method: get
+ uri: http://localhost:3001/api
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '1368'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - e43d25244dc2b8ce1da6fa91131507ee
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 08:56:17 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<api driver='mock' version='1.1.1'>\n <link href='http://localhost:3001/api/instance_states'
+ rel='instance_states'>\n </link>\n <link href='http://localhost:3001/api/storage_volumes'
+ rel='storage_volumes'>\n </link>\n <link href='http://localhost:3001/api/metrics'
+ rel='metrics'>\n </link>\n <link href='http://localhost:3001/api/hardware_profiles'
+ rel='hardware_profiles'>\n </link>\n <link href='http://localhost:3001/api/instances'
+ rel='instances'>\n <feature name='metrics' rel='create'>\n <param
+ name='metrics' />\n </feature>\n <feature name='realm_filter' rel='index'>\n
+ \ <param name='realm_id' />\n </feature>\n <feature name='user_name'
+ rel='create'>\n <param name='name' />\n </feature>\n <feature name='authentication_key'
+ rel='create'>\n <param name='keyname' />\n </feature>\n </link>\n
+ \ <link href='http://localhost:3001/api/realms' rel='realms'>\n </link>\n
+ \ <link href='http://localhost:3001/api/storage_snapshots' rel='storage_snapshots'>\n
+ \ </link>\n <link href='http://localhost:3001/api/images' rel='images'>\n
+ \ </link>\n <link href='http://localhost:3001/api/addresses' rel='addresses'>\n
+ \ </link>\n <link href='http://localhost:3001/api/drivers' rel='drivers'>\n
+ \ </link>\n <link href='http://localhost:3001/api/buckets' rel='buckets'>\n
+ \ </link>\n <link href='http://localhost:3001/api/keys' rel='keys'>\n </link>\n</api>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 08:56:17 GMT
+- request:
+ method: get
+ uri: http://localhost:3001/api/drivers/ec2
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '2820'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - e46ed1894e2830dc783dca7a7d242352
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 08:56:17 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<driver href='http://localhost:3001/api/drivers/ec2' id='ec2'>\n
+ \ <name>EC2</name>\n <provider id='us-west-1'>\n <entrypoint kind='s3'><![CDATA[s3-us-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.us-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.us-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.us-west-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='us-west-2'>\n <entrypoint kind='s3'><![CDATA[s3-us-west-2.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.us-west-2.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.us-west-2.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.us-west-2.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='ap-southeast-1'>\n <entrypoint kind='s3'><![CDATA[s3-ap-southeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.ap-southeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.ap-southeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.ap-southeast-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='ap-northeast-1'>\n <entrypoint kind='s3'><![CDATA[s3-ap-northeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.ap-northeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.ap-northeast-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.ap-northeast-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='eu-west-1'>\n <entrypoint kind='s3'><![CDATA[s3-eu-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.eu-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.eu-west-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.eu-west-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='us-east-1'>\n <entrypoint kind='s3'><![CDATA[s3.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.us-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.us-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.us-east-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n <provider id='sa-east-1'>\n <entrypoint kind='s3'><![CDATA[s3-sa-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='elb'><![CDATA[elasticloadbalancing.sa-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='ec2'><![CDATA[ec2.sa-east-1.amazonaws.com]]></entrypoint>\n
+ \ <entrypoint kind='mon'><![CDATA[monitoring.sa-east-1.amazonaws.com]]></entrypoint>\n
+ \ </provider>\n</driver>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 08:56:17 GMT
+- request:
+ method: get
+ uri: http://localhost:3001/api/drivers/
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 404
+ message:
+ headers:
+ content-type:
+ - text/html;charset=utf-8
+ x-cascade:
+ - pass
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '448'
+ x-xss-protection:
+ - 1; mode=block
+ x-content-type-options:
+ - nosniff
+ x-frame-options:
+ - SAMEORIGIN
+ date:
+ - Wed, 06 Mar 2013 08:56:17 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<!DOCTYPE html>\n<html>\n<head>\n <style type=\"text/css\">\n body
+ { text-align:center;font-family:helvetica,arial;font-size:22px;\n color:#888;margin:20px}\n
+ \ #c {margin:0 auto;width:500px;text-align:left}\n </style>\n</head>\n<body>\n
+ \ <h2>Sinatra doesn’t know this ditty.</h2>\n <img src='http://localhost:3001/api/__sinatra__/404.png'>\n
+ \ <div id=\"c\">\n Try this:\n <pre>get '/drivers/' do\n \"Hello World\"\nend</pre>\n
+ \ </div>\n</body>\n</html>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 08:56:17 GMT
+- request:
+ method: get
+ uri: http://localhost:3001/api/drivers/foo
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 404
+ message:
+ headers:
+ content-type:
+ - text/html;charset=utf-8
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '0'
+ x-xss-protection:
+ - 1; mode=block
+ x-content-type-options:
+ - nosniff
+ x-frame-options:
+ - SAMEORIGIN
+ date:
+ - Wed, 06 Mar 2013 08:56:17 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ''
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 08:56:17 GMT
+recorded_with: VCR 2.4.0
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/0439fc75/client/tests/fixtures/test_0002_supports_extract_xml_body_using_faraday_connection.yml
----------------------------------------------------------------------
diff --git a/client/tests/fixtures/test_0002_supports_extract_xml_body_using_faraday_connection.yml b/client/tests/fixtures/test_0002_supports_extract_xml_body_using_faraday_connection.yml
new file mode 100644
index 0000000..0b93677
--- /dev/null
+++ b/client/tests/fixtures/test_0002_supports_extract_xml_body_using_faraday_connection.yml
@@ -0,0 +1,117 @@
+---
+http_interactions:
+- request:
+ method: get
+ uri: http://localhost:3001/api
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '1368'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - e43d25244dc2b8ce1da6fa91131507ee
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 08:56:15 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<api driver='mock' version='1.1.1'>\n <link href='http://localhost:3001/api/instance_states'
+ rel='instance_states'>\n </link>\n <link href='http://localhost:3001/api/storage_volumes'
+ rel='storage_volumes'>\n </link>\n <link href='http://localhost:3001/api/metrics'
+ rel='metrics'>\n </link>\n <link href='http://localhost:3001/api/hardware_profiles'
+ rel='hardware_profiles'>\n </link>\n <link href='http://localhost:3001/api/instances'
+ rel='instances'>\n <feature name='metrics' rel='create'>\n <param
+ name='metrics' />\n </feature>\n <feature name='realm_filter' rel='index'>\n
+ \ <param name='realm_id' />\n </feature>\n <feature name='user_name'
+ rel='create'>\n <param name='name' />\n </feature>\n <feature name='authentication_key'
+ rel='create'>\n <param name='keyname' />\n </feature>\n </link>\n
+ \ <link href='http://localhost:3001/api/realms' rel='realms'>\n </link>\n
+ \ <link href='http://localhost:3001/api/storage_snapshots' rel='storage_snapshots'>\n
+ \ </link>\n <link href='http://localhost:3001/api/images' rel='images'>\n
+ \ </link>\n <link href='http://localhost:3001/api/addresses' rel='addresses'>\n
+ \ </link>\n <link href='http://localhost:3001/api/drivers' rel='drivers'>\n
+ \ </link>\n <link href='http://localhost:3001/api/buckets' rel='buckets'>\n
+ \ </link>\n <link href='http://localhost:3001/api/keys' rel='keys'>\n </link>\n</api>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 08:56:15 GMT
+- request:
+ method: get
+ uri: http://localhost:3001/api
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - application/xml
+ Authorization:
+ - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
+ User-Agent:
+ - Faraday v0.8.6
+ response:
+ status:
+ code: 200
+ message:
+ headers:
+ content-type:
+ - application/xml
+ server:
+ - Apache-Deltacloud/1.1.1
+ x-deltacloud-driver:
+ - mock
+ content-length:
+ - '1368'
+ x-content-type-options:
+ - nosniff
+ etag:
+ - e43d25244dc2b8ce1da6fa91131507ee
+ cache-control:
+ - max-age=0, private, must-revalidate
+ date:
+ - Wed, 06 Mar 2013 08:56:15 GMT
+ connection:
+ - close
+ body:
+ encoding: US-ASCII
+ string: ! "<api driver='mock' version='1.1.1'>\n <link href='http://localhost:3001/api/instance_states'
+ rel='instance_states'>\n </link>\n <link href='http://localhost:3001/api/storage_volumes'
+ rel='storage_volumes'>\n </link>\n <link href='http://localhost:3001/api/metrics'
+ rel='metrics'>\n </link>\n <link href='http://localhost:3001/api/hardware_profiles'
+ rel='hardware_profiles'>\n </link>\n <link href='http://localhost:3001/api/instances'
+ rel='instances'>\n <feature name='metrics' rel='create'>\n <param
+ name='metrics' />\n </feature>\n <feature name='realm_filter' rel='index'>\n
+ \ <param name='realm_id' />\n </feature>\n <feature name='user_name'
+ rel='create'>\n <param name='name' />\n </feature>\n <feature name='authentication_key'
+ rel='create'>\n <param name='keyname' />\n </feature>\n </link>\n
+ \ <link href='http://localhost:3001/api/realms' rel='realms'>\n </link>\n
+ \ <link href='http://localhost:3001/api/storage_snapshots' rel='storage_snapshots'>\n
+ \ </link>\n <link href='http://localhost:3001/api/images' rel='images'>\n
+ \ </link>\n <link href='http://localhost:3001/api/addresses' rel='addresses'>\n
+ \ </link>\n <link href='http://localhost:3001/api/drivers' rel='drivers'>\n
+ \ </link>\n <link href='http://localhost:3001/api/buckets' rel='buckets'>\n
+ \ </link>\n <link href='http://localhost:3001/api/keys' rel='keys'>\n </link>\n</api>\n"
+ http_version:
+ recorded_at: Wed, 06 Mar 2013 08:56:15 GMT
+recorded_with: VCR 2.4.0