Return-Path: X-Original-To: apmail-deltacloud-commits-archive@www.apache.org Delivered-To: apmail-deltacloud-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A8B92F2BD for ; Tue, 26 Mar 2013 17:57:48 +0000 (UTC) Received: (qmail 49031 invoked by uid 500); 26 Mar 2013 17:57:48 -0000 Delivered-To: apmail-deltacloud-commits-archive@deltacloud.apache.org Received: (qmail 48983 invoked by uid 500); 26 Mar 2013 17:57:48 -0000 Mailing-List: contact commits-help@deltacloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltacloud.apache.org Delivered-To: mailing list commits@deltacloud.apache.org Received: (qmail 48724 invoked by uid 99); 26 Mar 2013 17:57:48 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Mar 2013 17:57:48 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id A91B8820FAA; Tue, 26 Mar 2013 17:57:47 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: mfojtik@apache.org To: commits@deltacloud.apache.org Date: Tue, 26 Mar 2013 17:57:52 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [06/30] Client: Added VCR fixtures for testing http://git-wip-us.apache.org/repos/asf/deltacloud/blob/0439fc75/client/tests/fixtures/test_0005_supports_current_provider.yml ---------------------------------------------------------------------- diff --git a/client/tests/fixtures/test_0005_supports_current_provider.yml b/client/tests/fixtures/test_0005_supports_current_provider.yml new file mode 100644 index 0000000..5ca0267 --- /dev/null +++ b/client/tests/fixtures/test_0005_supports_current_provider.yml @@ -0,0 +1,134 @@ +--- +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: ! "\n \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n \n \n \n \n \n \n + \ \n \n + \ \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n \n\n" + http_version: + recorded_at: Wed, 06 Mar 2013 08:56:16 GMT +- request: + method: get + uri: http://localhost:3001/api + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/xml + X-Deltacloud-Driver: + - ec2 + X-Deltacloud-Provider: + - eu-west-1 + Authorization: + - Basic Zm9vOmJhcg== + 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: + - ec2 + x-deltacloud-provider: + - eu-west-1 + content-length: + - '2171' + x-content-type-options: + - nosniff + etag: + - d5610ad0b0162d71058b2e143286d363 + cache-control: + - max-age=0, private, must-revalidate + date: + - Wed, 06 Mar 2013 08:56:16 GMT + connection: + - close + body: + encoding: US-ASCII + string: ! "\n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\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_0005_supports_id.yml ---------------------------------------------------------------------- diff --git a/client/tests/fixtures/test_0005_supports_id.yml b/client/tests/fixtures/test_0005_supports_id.yml new file mode 100644 index 0000000..ffd6266 --- /dev/null +++ b/client/tests/fixtures/test_0005_supports_id.yml @@ -0,0 +1,116 @@ +--- +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:24:49 GMT + connection: + - close + body: + encoding: US-ASCII + string: ! "\n \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n \n \n \n \n \n \n + \ \n \n + \ \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n \n\n" + http_version: + recorded_at: Wed, 06 Mar 2013 16:24:49 GMT +- request: + method: get + uri: http://localhost:3001/api/images/img1 + 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.0018804073333740234' + server: + - Apache-Deltacloud/1.1.1 + x-deltacloud-driver: + - mock + content-length: + - '1195' + x-content-type-options: + - nosniff + etag: + - 78fce4b6967945208246f8ec7ccba460 + cache-control: + - max-age=0, private, must-revalidate + date: + - Wed, 06 Mar 2013 16:24:49 GMT + connection: + - close + body: + encoding: US-ASCII + string: ! "\n\n img1\n Fedora 10\n + \ fedoraproject\n x86_64\n + \ AVAILABLE\n Thu Oct 25 14:27:53 CEST 2012\n + \ \n \n \n \n \n + \ \n transient\n \n + \ \n \n \n\n" + http_version: + recorded_at: Wed, 06 Mar 2013 16:24:49 GMT +recorded_with: VCR 2.4.0 http://git-wip-us.apache.org/repos/asf/deltacloud/blob/0439fc75/client/tests/fixtures/test_0005_supports_switching_drivers_per_instance.yml ---------------------------------------------------------------------- diff --git a/client/tests/fixtures/test_0005_supports_switching_drivers_per_instance.yml b/client/tests/fixtures/test_0005_supports_switching_drivers_per_instance.yml new file mode 100644 index 0000000..2e54e84 --- /dev/null +++ b/client/tests/fixtures/test_0005_supports_switching_drivers_per_instance.yml @@ -0,0 +1,129 @@ +--- +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: ! "\n \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n \n \n \n \n \n \n + \ \n \n + \ \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n \n\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 + X-Deltacloud-Driver: + - ec2 + Authorization: + - Basic Zm9vOmJhcg== + 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: + - ec2 + content-length: + - '2150' + x-content-type-options: + - nosniff + etag: + - 7b1418b5852df20853f413124d4ff440 + cache-control: + - max-age=0, private, must-revalidate + date: + - Wed, 06 Mar 2013 08:56:15 GMT + connection: + - close + body: + encoding: US-ASCII + string: ! "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n \n \n \n \n + \ \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\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_0005_supports_use_driver.yml ---------------------------------------------------------------------- diff --git a/client/tests/fixtures/test_0005_supports_use_driver.yml b/client/tests/fixtures/test_0005_supports_use_driver.yml new file mode 100644 index 0000000..6ca2841 --- /dev/null +++ b/client/tests/fixtures/test_0005_supports_use_driver.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: ! "\n \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n \n \n \n \n \n \n + \ \n \n + \ \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n \n\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_0006_support_create_instance_with_realm_id.yml ---------------------------------------------------------------------- diff --git a/client/tests/fixtures/test_0006_support_create_instance_with_realm_id.yml b/client/tests/fixtures/test_0006_support_create_instance_with_realm_id.yml new file mode 100644 index 0000000..da00b68 --- /dev/null +++ b/client/tests/fixtures/test_0006_support_create_instance_with_realm_id.yml @@ -0,0 +1,115 @@ +--- +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: ! "\n \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n \n \n \n \n \n \n + \ \n \n + \ \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n \n\n" + http_version: + recorded_at: Wed, 06 Mar 2013 08:56:18 GMT +- request: + method: post + uri: http://localhost:3001/api/instances?realm_id=eu&image_id=img1 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/xml + Authorization: + - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk + User-Agent: + - Faraday v0.8.6 + response: + status: + code: 201 + message: + headers: + content-type: + - application/xml + location: + - http://localhost:3001/api/instances/inst13 + server: + - Apache-Deltacloud/1.1.1 + x-deltacloud-driver: + - mock + content-length: + - '1175' + x-content-type-options: + - nosniff + etag: + - 352e679cd4d73dec0ac913bd824a482d + cache-control: + - max-age=0, private, must-revalidate + date: + - Wed, 06 Mar 2013 08:56:18 GMT + connection: + - close + body: + encoding: US-ASCII + string: ! "\n\n i-1362560178\n mockuser\n + \ \n + \ \n RUNNING\n + \ \n \n \n \n \n \n \n \n
img1.inst13.public.com
\n
img1.inst13.private.com
\n \n + \ \n \n
\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_0006_supports_discovered_.yml ---------------------------------------------------------------------- diff --git a/client/tests/fixtures/test_0006_supports_discovered_.yml b/client/tests/fixtures/test_0006_supports_discovered_.yml new file mode 100644 index 0000000..6ca2841 --- /dev/null +++ b/client/tests/fixtures/test_0006_supports_discovered_.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: ! "\n \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n \n \n \n \n \n \n + \ \n \n + \ \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n \n\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_0006_supports_supported_collections.yml ---------------------------------------------------------------------- diff --git a/client/tests/fixtures/test_0006_supports_supported_collections.yml b/client/tests/fixtures/test_0006_supports_supported_collections.yml new file mode 100644 index 0000000..c7191f8 --- /dev/null +++ b/client/tests/fixtures/test_0006_supports_supported_collections.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: ! "\n \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n \n \n \n \n \n \n + \ \n \n + \ \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n \n\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_0006_supports_switching_providers_per_instance.yml ---------------------------------------------------------------------- diff --git a/client/tests/fixtures/test_0006_supports_switching_providers_per_instance.yml b/client/tests/fixtures/test_0006_supports_switching_providers_per_instance.yml new file mode 100644 index 0000000..dcc6b49 --- /dev/null +++ b/client/tests/fixtures/test_0006_supports_switching_providers_per_instance.yml @@ -0,0 +1,208 @@ +--- +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: ! "\n \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n \n \n \n \n \n \n + \ \n \n + \ \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n \n\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 + X-Deltacloud-Driver: + - ec2 + X-Deltacloud-Provider: + - eu-west-1 + Authorization: + - Basic Zm9vOmJhcg== + 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: + - ec2 + x-deltacloud-provider: + - eu-west-1 + content-length: + - '2171' + x-content-type-options: + - nosniff + etag: + - d5610ad0b0162d71058b2e143286d363 + cache-control: + - max-age=0, private, must-revalidate + date: + - Wed, 06 Mar 2013 08:56:15 GMT + connection: + - close + body: + encoding: US-ASCII + string: ! "\n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\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 + X-Deltacloud-Driver: + - ec2 + X-Deltacloud-Provider: + - us-east-1 + Authorization: + - Basic Zm9vOmJhcg== + 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: + - ec2 + x-deltacloud-provider: + - us-east-1 + content-length: + - '2171' + x-content-type-options: + - nosniff + etag: + - 9311d5c5238b234792a45d5aba470628 + cache-control: + - max-age=0, private, must-revalidate + date: + - Wed, 06 Mar 2013 08:56:15 GMT + connection: + - close + body: + encoding: US-ASCII + string: ! "\n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\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_0007_support_create_instance_with_name.yml ---------------------------------------------------------------------- diff --git a/client/tests/fixtures/test_0007_support_create_instance_with_name.yml b/client/tests/fixtures/test_0007_support_create_instance_with_name.yml new file mode 100644 index 0000000..191326d --- /dev/null +++ b/client/tests/fixtures/test_0007_support_create_instance_with_name.yml @@ -0,0 +1,115 @@ +--- +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: ! "\n \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n \n \n \n \n \n \n + \ \n \n + \ \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n \n\n" + http_version: + recorded_at: Wed, 06 Mar 2013 08:56:18 GMT +- request: + method: post + uri: http://localhost:3001/api/instances?realm_id=eu&name=test_instance&image_id=img1 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/xml + Authorization: + - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk + User-Agent: + - Faraday v0.8.6 + response: + status: + code: 201 + message: + headers: + content-type: + - application/xml + location: + - http://localhost:3001/api/instances/inst14 + server: + - Apache-Deltacloud/1.1.1 + x-deltacloud-driver: + - mock + content-length: + - '1176' + x-content-type-options: + - nosniff + etag: + - ae4fea5dc3db250cf11946ce2db46135 + cache-control: + - max-age=0, private, must-revalidate + date: + - Wed, 06 Mar 2013 08:56:18 GMT + connection: + - close + body: + encoding: US-ASCII + string: ! "\n\n test_instance\n mockuser\n + \ \n + \ \n RUNNING\n + \ \n \n \n \n \n \n \n \n
img1.inst14.public.com
\n
img1.inst14.private.com
\n \n + \ \n \n
\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_0007_support_switching_provider_without_credentials.yml ---------------------------------------------------------------------- diff --git a/client/tests/fixtures/test_0007_support_switching_provider_without_credentials.yml b/client/tests/fixtures/test_0007_support_switching_provider_without_credentials.yml new file mode 100644 index 0000000..dcc6b49 --- /dev/null +++ b/client/tests/fixtures/test_0007_support_switching_provider_without_credentials.yml @@ -0,0 +1,208 @@ +--- +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: ! "\n \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n \n \n \n \n \n \n + \ \n \n + \ \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n \n\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 + X-Deltacloud-Driver: + - ec2 + X-Deltacloud-Provider: + - eu-west-1 + Authorization: + - Basic Zm9vOmJhcg== + 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: + - ec2 + x-deltacloud-provider: + - eu-west-1 + content-length: + - '2171' + x-content-type-options: + - nosniff + etag: + - d5610ad0b0162d71058b2e143286d363 + cache-control: + - max-age=0, private, must-revalidate + date: + - Wed, 06 Mar 2013 08:56:15 GMT + connection: + - close + body: + encoding: US-ASCII + string: ! "\n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\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 + X-Deltacloud-Driver: + - ec2 + X-Deltacloud-Provider: + - us-east-1 + Authorization: + - Basic Zm9vOmJhcg== + 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: + - ec2 + x-deltacloud-provider: + - us-east-1 + content-length: + - '2171' + x-content-type-options: + - nosniff + etag: + - 9311d5c5238b234792a45d5aba470628 + cache-control: + - max-age=0, private, must-revalidate + date: + - Wed, 06 Mar 2013 08:56:15 GMT + connection: + - close + body: + encoding: US-ASCII + string: ! "\n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n \n + \ \n \n \n \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n \n \n \n + \ \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\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_0007_supports_support_.yml ---------------------------------------------------------------------- diff --git a/client/tests/fixtures/test_0007_supports_support_.yml b/client/tests/fixtures/test_0007_supports_support_.yml new file mode 100644 index 0000000..6ca2841 --- /dev/null +++ b/client/tests/fixtures/test_0007_supports_support_.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: ! "\n \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n \n \n \n \n \n \n + \ \n \n + \ \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n \n\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_0007_supports_valid_credentials_on_class.yml ---------------------------------------------------------------------- diff --git a/client/tests/fixtures/test_0007_supports_valid_credentials_on_class.yml b/client/tests/fixtures/test_0007_supports_valid_credentials_on_class.yml new file mode 100644 index 0000000..22e2721 --- /dev/null +++ b/client/tests/fixtures/test_0007_supports_valid_credentials_on_class.yml @@ -0,0 +1,370 @@ +--- +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: ! "\n \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n \n \n \n \n \n \n + \ \n \n + \ \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n \n\n" + http_version: + recorded_at: Wed, 06 Mar 2013 08:56:16 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:16 GMT + connection: + - close + body: + encoding: US-ASCII + string: ! "\n \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n \n \n \n \n \n \n + \ \n \n + \ \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n \n\n" + http_version: + recorded_at: Wed, 06 Mar 2013 08:56:16 GMT +- request: + method: get + uri: http://localhost:3001/api?force_auth=true + 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: ! "\n \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n \n \n \n \n \n \n + \ \n \n + \ \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n \n\n" + http_version: + recorded_at: Wed, 06 Mar 2013 08:56:16 GMT +- request: + method: get + uri: http://localhost:3001/api + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/xml + Authorization: + - Basic Zm9vOm1vY2twYXNzd29yZA== + 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: ! "\n \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n \n \n \n \n \n \n + \ \n \n + \ \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n \n\n" + http_version: + recorded_at: Wed, 06 Mar 2013 08:56:16 GMT +- request: + method: get + uri: http://localhost:3001/api?force_auth=true + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/xml + Authorization: + - Basic Zm9vOm1vY2twYXNzd29yZA== + User-Agent: + - Faraday v0.8.6 + response: + status: + code: 401 + message: + headers: + content-type: + - text/html;charset=utf-8 + server: + - Apache-Deltacloud/1.1.1 + x-deltacloud-driver: + - mock + content-length: + - '21' + x-xss-protection: + - 1; mode=block + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + date: + - Wed, 06 Mar 2013 08:56:16 GMT + connection: + - close + body: + encoding: US-ASCII + string: Authentication failed + http_version: + recorded_at: Wed, 06 Mar 2013 08:56:16 GMT +- request: + method: get + uri: http://localhost:3001/api + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/xml + Authorization: + - Basic Zm9vOmJhcg== + 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: ! "\n \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n \n \n \n \n \n \n + \ \n \n + \ \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n \n\n" + http_version: + recorded_at: Wed, 06 Mar 2013 08:56:16 GMT +- request: + method: get + uri: http://localhost:3001/api?force_auth=true + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/xml + Authorization: + - Basic Zm9vOmJhcg== + User-Agent: + - Faraday v0.8.6 + response: + status: + code: 401 + message: + headers: + content-type: + - text/html;charset=utf-8 + server: + - Apache-Deltacloud/1.1.1 + x-deltacloud-driver: + - mock + content-length: + - '21' + x-xss-protection: + - 1; mode=block + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + date: + - Wed, 06 Mar 2013 08:56:16 GMT + connection: + - close + body: + encoding: US-ASCII + string: Authentication failed + 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_0008_support_stop_instance.yml ---------------------------------------------------------------------- diff --git a/client/tests/fixtures/test_0008_support_stop_instance.yml b/client/tests/fixtures/test_0008_support_stop_instance.yml new file mode 100644 index 0000000..f22369f --- /dev/null +++ b/client/tests/fixtures/test_0008_support_stop_instance.yml @@ -0,0 +1,166 @@ +--- +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: ! "\n \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n \n \n \n \n \n \n + \ \n \n + \ \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n \n\n" + http_version: + recorded_at: Wed, 06 Mar 2013 08:56:17 GMT +- request: + method: post + uri: http://localhost:3001/api/instances?image_id=img1 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/xml + Authorization: + - Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk + User-Agent: + - Faraday v0.8.6 + response: + status: + code: 201 + message: + headers: + content-type: + - application/xml + location: + - http://localhost:3001/api/instances/inst13 + server: + - Apache-Deltacloud/1.1.1 + x-deltacloud-driver: + - mock + content-length: + - '1175' + x-content-type-options: + - nosniff + etag: + - 06fe166651791f8a0a31bdb4ff286da1 + cache-control: + - max-age=0, private, must-revalidate + date: + - Wed, 06 Mar 2013 08:56:17 GMT + connection: + - close + body: + encoding: US-ASCII + string: ! "\n\n i-1362560177\n mockuser\n + \ \n + \ \n RUNNING\n + \ \n \n \n \n \n \n \n \n
img1.inst13.public.com
\n
img1.inst13.private.com
\n \n + \ \n \n
\n" + http_version: + recorded_at: Wed, 06 Mar 2013 08:56:17 GMT +- request: + method: post + uri: http://localhost:3001/api/instances/inst13/stop + 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 + x-backend-runtime: + - '0.0018229484558105469' + server: + - Apache-Deltacloud/1.1.1 + x-deltacloud-driver: + - mock + content-length: + - '1173' + x-content-type-options: + - nosniff + date: + - Wed, 06 Mar 2013 08:56:17 GMT + connection: + - close + body: + encoding: US-ASCII + string: ! "\n\n i-1362560177\n mockuser\n + \ \n + \ \n STOPPED\n + \ \n \n \n \n \n \n \n \n
img1.inst13.public.com
\n
img1.inst13.private.com
\n \n + \ \n \n
\n" + 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_0008_supports_must_support_.yml ---------------------------------------------------------------------- diff --git a/client/tests/fixtures/test_0008_supports_must_support_.yml b/client/tests/fixtures/test_0008_supports_must_support_.yml new file mode 100644 index 0000000..6ca2841 --- /dev/null +++ b/client/tests/fixtures/test_0008_supports_must_support_.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: ! "\n \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n \n \n \n \n \n \n + \ \n \n + \ \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n + \ \n \n \n\n" + http_version: + recorded_at: Wed, 06 Mar 2013 08:56:16 GMT +recorded_with: VCR 2.4.0