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 071DBF2CA for ; Tue, 26 Mar 2013 17:57:49 +0000 (UTC) Received: (qmail 49268 invoked by uid 500); 26 Mar 2013 17:57:48 -0000 Delivered-To: apmail-deltacloud-commits-archive@deltacloud.apache.org Received: (qmail 49243 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 48770 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 E7947820FBC; 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:58:01 -0000 Message-Id: <12f07fc197584ad0bb98a14524e79729@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [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: ! "\n \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \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: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: ! "\n\n \n Thu + Jul 30 14:35:11 UTC 2009\n 1\n + \ vol3\n /dev/sda1\n \n us\n IN-USE\n + \ \n \n \n \n + \ \n \n Thu Jul 30 14:35:11 UTC 2009\n 1\n vol1\n \n us\n AVAILABLE\n + \ \n \n Thu Jul 30 14:35:11 UTC 2009\n 1\n vol2\n \n us\n AVAILABLE\n + \ \n\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: ! "\n\n \n Thu + Jul 30 14:35:11 UTC 2009\n 1\n + \ vol3\n /dev/sda1\n \n us\n IN-USE\n + \ \n \n \n \n + \ \n \n Thu Jul 30 14:35:11 UTC 2009\n 1\n vol1\n \n us\n AVAILABLE\n + \ \n \n Thu Jul 30 14:35:11 UTC 2009\n 1\n vol2\n \n us\n AVAILABLE\n + \ \n\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: ! "\n \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \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 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: ! "\n + \ EC2\n \n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ \n + \ \n + \ \n + \ \n \n \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 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: ! "\n + \ EC2\n \n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ \n + \ \n + \ \n + \ \n \n \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 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: ! "\n + \ EC2\n \n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ \n + \ \n + \ \n + \ \n \n \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 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: ! "\n + \ EC2\n \n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ \n + \ \n + \ \n + \ \n \n \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 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: ! "\n + \ EC2\n \n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ \n + \ \n + \ \n + \ \n \n \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 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: ! "\n \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \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/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: ! "\n\n bucket1\n 17\n + \ text/plain\n 2010-09-23 17:44:54 + +0200\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/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: ! "\n\n + \ \n 404\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_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: ! "\n \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \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: 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: ! "\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: 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: ! "\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: 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: ! "\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 +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: ! "\n \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \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 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: ! "\n\n m1-small\n m1-small\n \n \n \n \n\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: ! "\n\n m1-small\n m1-small\n \n \n \n \n\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: ! "\n\n m1-small\n m1-small\n \n \n \n \n\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: ! "\n\n m1-small\n m1-small\n \n \n \n \n\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: ! "\n\n m1-small\n m1-small\n \n \n \n \n\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: ! "\n\n m1-small\n m1-small\n \n \n \n \n\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: ! "\n\n m1-small\n m1-small\n \n \n \n \n\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: ! "\n\n m1-small\n m1-small\n \n \n \n \n\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: ! "\n \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \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 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: ! "\n + \ EC2\n \n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ \n + \ \n + \ \n + \ \n \n \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 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: ! "\n \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \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_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: ! "\n \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \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_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: ! "\n \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \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: 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: ! "\n + \ EC2\n \n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ \n + \ \n + \ \n + \ \n \n \n + \ \n + \ \n + \ \n + \ \n \n \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: 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: ! "\n\n\n \n\n\n + \

Sinatra doesn’t know this ditty.

\n \n + \
\n Try this:\n
get '/drivers/' do\n  \"Hello World\"\nend
\n + \
\n\n\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: ! "\n \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \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 + 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