| --- |
| 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 16:38: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 16:38:16 GMT |
| - request: |
| method: get |
| uri: http://localhost:3001/api/storage_volumes/vol2 |
| 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.0027179718017578125' |
| server: |
| - Apache-Deltacloud/1.1.1 |
| x-deltacloud-driver: |
| - mock |
| content-length: |
| - '366' |
| x-content-type-options: |
| - nosniff |
| etag: |
| - 0db0b756867a44a42317b253f83f9a42 |
| cache-control: |
| - max-age=0, private, must-revalidate |
| date: |
| - Wed, 06 Mar 2013 16:38:16 GMT |
| connection: |
| - close |
| body: |
| encoding: US-ASCII |
| string: ! "<?xml version='1.0' encoding='utf-8' ?>\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" |
| http_version: |
| recorded_at: Wed, 06 Mar 2013 16:38:16 GMT |
| - request: |
| method: post |
| uri: http://localhost:3001/api/storage_volumes/vol2/attach?instance_id=inst1&device |
| body: |
| encoding: US-ASCII |
| string: '' |
| headers: |
| Accept: |
| - application/xml |
| Authorization: |
| - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk |
| User-Agent: |
| - Faraday v0.8.6 |
| response: |
| status: |
| code: 202 |
| message: |
| headers: |
| content-type: |
| - application/xml |
| server: |
| - Apache-Deltacloud/1.1.1 |
| x-deltacloud-driver: |
| - mock |
| content-length: |
| - '470' |
| x-content-type-options: |
| - nosniff |
| date: |
| - Wed, 06 Mar 2013 16:38:16 GMT |
| connection: |
| - close |
| body: |
| encoding: US-ASCII |
| string: ! "<?xml version='1.0' encoding='utf-8' ?>\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>IN-USE</state>\n <mount>\n |
| \ <instance href='http://localhost:3001/api/instances/inst1' id='inst1'></instance>\n |
| \ </mount>\n</storage_volume>\n" |
| http_version: |
| recorded_at: Wed, 06 Mar 2013 16:38:16 GMT |
| - request: |
| method: get |
| uri: http://localhost:3001/api/storage_volumes/vol2 |
| 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.0011837482452392578' |
| server: |
| - Apache-Deltacloud/1.1.1 |
| x-deltacloud-driver: |
| - mock |
| content-length: |
| - '470' |
| x-content-type-options: |
| - nosniff |
| etag: |
| - c93b53b8de27b10168fa858ca4210443 |
| cache-control: |
| - max-age=0, private, must-revalidate |
| date: |
| - Wed, 06 Mar 2013 16:38:16 GMT |
| connection: |
| - close |
| body: |
| encoding: US-ASCII |
| string: ! "<?xml version='1.0' encoding='utf-8' ?>\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>IN-USE</state>\n <mount>\n |
| \ <instance href='http://localhost:3001/api/instances/inst1' id='inst1'></instance>\n |
| \ </mount>\n</storage_volume>\n" |
| http_version: |
| recorded_at: Wed, 06 Mar 2013 16:38:16 GMT |
| - request: |
| method: get |
| uri: http://localhost:3001/api/instances/inst1 |
| 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.0006213188171386719' |
| server: |
| - Apache-Deltacloud/1.1.1 |
| x-deltacloud-driver: |
| - mock |
| content-length: |
| - '1365' |
| x-content-type-options: |
| - nosniff |
| etag: |
| - 7d8ea49a94358fd9cac586ae9a9f359c |
| cache-control: |
| - max-age=0, private, must-revalidate |
| date: |
| - Wed, 06 Mar 2013 16:38:33 GMT |
| connection: |
| - close |
| body: |
| encoding: US-ASCII |
| string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<instance href='http://localhost:3001/api/instances/inst1' |
| id='inst1'>\n <name>MockUserInstance</name>\n <owner_id>mockuser</owner_id>\n |
| \ <image href='http://localhost:3001/api/images/img3' id='img3'></image>\n |
| \ <realm href='http://localhost:3001/api/realms/us' id='us'></realm>\n <state>RUNNING</state>\n |
| \ <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small' |
| id='m1-small'>\n </hardware_profile>\n <actions>\n <link href='http://localhost:3001/api/instances/inst1/reboot' |
| method='post' rel='reboot' />\n <link href='http://localhost:3001/api/instances/inst1/stop' |
| method='post' rel='stop' />\n <link href='http://localhost:3001/api/instances/inst1/run;id=inst1' |
| method='post' rel='run' />\n <link href='http://localhost:3001/api/images;instance_id=inst1' |
| method='post' rel='create_image' />\n </actions>\n <public_addresses><address |
| type='hostname'>img1.inst1.public.com</address></public_addresses>\n <private_addresses><address |
| type='hostname'>img1.inst1.private.com</address></private_addresses>\n <storage_volumes><storage_volume |
| href='http://localhost:3001/api/storage_volumes/vol1' id='vol1'></storage_volume>\n<storage_volume |
| href='http://localhost:3001/api/storage_volumes/vol2' id='vol2'></storage_volume></storage_volumes>\n |
| \ <authentication type='key'>\n </authentication>\n</instance>\n" |
| http_version: |
| recorded_at: Wed, 06 Mar 2013 16:38:33 GMT |
| - request: |
| method: get |
| uri: http://localhost:3001/api/instances/inst1 |
| 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.001577615737915039' |
| server: |
| - Apache-Deltacloud/1.1.1 |
| x-deltacloud-driver: |
| - mock |
| content-length: |
| - '1365' |
| x-content-type-options: |
| - nosniff |
| etag: |
| - 7d8ea49a94358fd9cac586ae9a9f359c |
| cache-control: |
| - max-age=0, private, must-revalidate |
| date: |
| - Wed, 06 Mar 2013 16:39:16 GMT |
| connection: |
| - close |
| body: |
| encoding: US-ASCII |
| string: ! "<?xml version='1.0' encoding='utf-8' ?>\n<instance href='http://localhost:3001/api/instances/inst1' |
| id='inst1'>\n <name>MockUserInstance</name>\n <owner_id>mockuser</owner_id>\n |
| \ <image href='http://localhost:3001/api/images/img3' id='img3'></image>\n |
| \ <realm href='http://localhost:3001/api/realms/us' id='us'></realm>\n <state>RUNNING</state>\n |
| \ <hardware_profile href='http://localhost:3001/api/hardware_profiles/m1-small' |
| id='m1-small'>\n </hardware_profile>\n <actions>\n <link href='http://localhost:3001/api/instances/inst1/reboot' |
| method='post' rel='reboot' />\n <link href='http://localhost:3001/api/instances/inst1/stop' |
| method='post' rel='stop' />\n <link href='http://localhost:3001/api/instances/inst1/run;id=inst1' |
| method='post' rel='run' />\n <link href='http://localhost:3001/api/images;instance_id=inst1' |
| method='post' rel='create_image' />\n </actions>\n <public_addresses><address |
| type='hostname'>img1.inst1.public.com</address></public_addresses>\n <private_addresses><address |
| type='hostname'>img1.inst1.private.com</address></private_addresses>\n <storage_volumes><storage_volume |
| href='http://localhost:3001/api/storage_volumes/vol1' id='vol1'></storage_volume>\n<storage_volume |
| href='http://localhost:3001/api/storage_volumes/vol2' id='vol2'></storage_volume></storage_volumes>\n |
| \ <authentication type='key'>\n </authentication>\n</instance>\n" |
| http_version: |
| recorded_at: Wed, 06 Mar 2013 16:39:16 GMT |
| - request: |
| method: post |
| uri: http://localhost:3001/api/storage_volumes/vol2/detach |
| body: |
| encoding: US-ASCII |
| string: '' |
| headers: |
| Accept: |
| - application/xml |
| Authorization: |
| - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk |
| User-Agent: |
| - Faraday v0.8.6 |
| response: |
| status: |
| code: 202 |
| message: |
| headers: |
| content-type: |
| - application/xml |
| server: |
| - Apache-Deltacloud/1.1.1 |
| x-deltacloud-driver: |
| - mock |
| content-length: |
| - '366' |
| x-content-type-options: |
| - nosniff |
| date: |
| - Wed, 06 Mar 2013 16:39:42 GMT |
| connection: |
| - close |
| body: |
| encoding: US-ASCII |
| string: ! "<?xml version='1.0' encoding='utf-8' ?>\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" |
| http_version: |
| recorded_at: Wed, 06 Mar 2013 16:39:42 GMT |
| - request: |
| method: get |
| uri: http://localhost:3001/api/storage_volumes/vol2 |
| 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.0014853477478027344' |
| server: |
| - Apache-Deltacloud/1.1.1 |
| x-deltacloud-driver: |
| - mock |
| content-length: |
| - '366' |
| x-content-type-options: |
| - nosniff |
| etag: |
| - 0db0b756867a44a42317b253f83f9a42 |
| cache-control: |
| - max-age=0, private, must-revalidate |
| date: |
| - Wed, 06 Mar 2013 16:39:42 GMT |
| connection: |
| - close |
| body: |
| encoding: US-ASCII |
| string: ! "<?xml version='1.0' encoding='utf-8' ?>\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" |
| http_version: |
| recorded_at: Wed, 06 Mar 2013 16:39:42 GMT |
| recorded_with: VCR 2.4.0 |