From 684a33716cb4d5b81de4a645bb433f598ee4cb27 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Mon, 28 Nov 2016 12:33:03 +0100 Subject: [PATCH] tests subscription --- .../subscriptions_admin_create_success.yml | 24 +++++++------- .../subscriptions_user_create_failed.yml | 8 ++--- .../subscriptions_user_create_success.yml | 32 +++++++++---------- .../subscriptions_user_renew_failed.yml | 12 +++---- 4 files changed, 38 insertions(+), 38 deletions(-) diff --git a/test/vcr_cassettes/subscriptions_admin_create_success.yml b/test/vcr_cassettes/subscriptions_admin_create_success.yml index 2a7c2bf10..e11970830 100644 --- a/test/vcr_cassettes/subscriptions_admin_create_success.yml +++ b/test/vcr_cassettes/subscriptions_admin_create_success.yml @@ -20,7 +20,7 @@ http_interactions: X-Stripe-Client-User-Agent: - '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux version 3.13.0-83-generic (buildd@lgw01-55) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) - ) #127-Ubuntu SMP Fri Mar 11 00:25:37 UTC 2016","hostname":"sylvain-sleede-pc"}' + ) #127-Ubuntu SMP Fri Mar 11 00:25:37 UTC 2016","hostname":"integration"}' response: status: code: 200 @@ -177,7 +177,7 @@ http_interactions: "url": "/v1/customers/cus_8Di1wjdVktv5kt/subscriptions" } } - http_version: + http_version: recorded_at: Wed, 06 Apr 2016 16:16:21 GMT - request: method: post @@ -199,7 +199,7 @@ http_interactions: X-Stripe-Client-User-Agent: - '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux version 3.13.0-83-generic (buildd@lgw01-55) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) - ) #127-Ubuntu SMP Fri Mar 11 00:25:37 UTC 2016","hostname":"sylvain-sleede-pc"}' + ) #127-Ubuntu SMP Fri Mar 11 00:25:37 UTC 2016","hostname":"integration"}' Content-Length: - '42' response: @@ -269,7 +269,7 @@ http_interactions: "trial_end": null, "trial_start": null } - http_version: + http_version: recorded_at: Wed, 06 Apr 2016 16:16:22 GMT - request: method: get @@ -291,7 +291,7 @@ http_interactions: X-Stripe-Client-User-Agent: - '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux version 3.13.0-83-generic (buildd@lgw01-55) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) - ) #127-Ubuntu SMP Fri Mar 11 00:25:37 UTC 2016","hostname":"sylvain-sleede-pc"}' + ) #127-Ubuntu SMP Fri Mar 11 00:25:37 UTC 2016","hostname":"integration"}' response: status: code: 200 @@ -405,7 +405,7 @@ http_interactions: "has_more": true, "url": "/v1/invoices" } - http_version: + http_version: recorded_at: Wed, 06 Apr 2016 16:16:23 GMT - request: method: get @@ -427,7 +427,7 @@ http_interactions: X-Stripe-Client-User-Agent: - '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux version 3.13.0-83-generic (buildd@lgw01-55) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) - ) #127-Ubuntu SMP Fri Mar 11 00:25:37 UTC 2016","hostname":"sylvain-sleede-pc"}' + ) #127-Ubuntu SMP Fri Mar 11 00:25:37 UTC 2016","hostname":"integration"}' response: status: code: 200 @@ -617,7 +617,7 @@ http_interactions: "url": "/v1/customers/cus_8Di1wjdVktv5kt/subscriptions" } } - http_version: + http_version: recorded_at: Wed, 06 Apr 2016 16:16:25 GMT - request: method: get @@ -639,7 +639,7 @@ http_interactions: X-Stripe-Client-User-Agent: - '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux version 3.13.0-83-generic (buildd@lgw01-55) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) - ) #127-Ubuntu SMP Fri Mar 11 00:25:37 UTC 2016","hostname":"sylvain-sleede-pc"}' + ) #127-Ubuntu SMP Fri Mar 11 00:25:37 UTC 2016","hostname":"integration"}' response: status: code: 200 @@ -707,7 +707,7 @@ http_interactions: "trial_end": null, "trial_start": null } - http_version: + http_version: recorded_at: Wed, 06 Apr 2016 16:16:25 GMT - request: method: delete @@ -729,7 +729,7 @@ http_interactions: X-Stripe-Client-User-Agent: - '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux version 3.13.0-83-generic (buildd@lgw01-55) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) - ) #127-Ubuntu SMP Fri Mar 11 00:25:37 UTC 2016","hostname":"sylvain-sleede-pc"}' + ) #127-Ubuntu SMP Fri Mar 11 00:25:37 UTC 2016","hostname":"integration"}' response: status: code: 200 @@ -797,6 +797,6 @@ http_interactions: "trial_end": null, "trial_start": null } - http_version: + http_version: recorded_at: Wed, 06 Apr 2016 16:16:26 GMT recorded_with: VCR 3.0.1 diff --git a/test/vcr_cassettes/subscriptions_user_create_failed.yml b/test/vcr_cassettes/subscriptions_user_create_failed.yml index b32669f29..47509a3e3 100644 --- a/test/vcr_cassettes/subscriptions_user_create_failed.yml +++ b/test/vcr_cassettes/subscriptions_user_create_failed.yml @@ -20,7 +20,7 @@ http_interactions: X-Stripe-Client-User-Agent: - '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux version 4.4.5-1-ARCH (builduser@tobias) (gcc version 5.3.0 (GCC) ) #1 SMP - PREEMPT Thu Mar 10 07:38:19 CET 2016","hostname":"Sylvain-desktop"}' + PREEMPT Thu Mar 10 07:38:19 CET 2016","hostname":"integration"}' Content-Length: - '81' response: @@ -90,7 +90,7 @@ http_interactions: "type": "card", "used": false } - http_version: + http_version: recorded_at: Mon, 11 Apr 2016 15:43:39 GMT - request: method: get @@ -112,7 +112,7 @@ http_interactions: X-Stripe-Client-User-Agent: - '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux version 4.4.5-1-ARCH (builduser@tobias) (gcc version 5.3.0 (GCC) ) #1 SMP - PREEMPT Thu Mar 10 07:38:19 CET 2016","hostname":"Sylvain-desktop"}' + PREEMPT Thu Mar 10 07:38:19 CET 2016","hostname":"integration"}' response: status: code: 200 @@ -180,6 +180,6 @@ http_interactions: "type": "card", "used": false } - http_version: + http_version: recorded_at: Mon, 11 Apr 2016 15:43:40 GMT recorded_with: VCR 3.0.1 diff --git a/test/vcr_cassettes/subscriptions_user_create_success.yml b/test/vcr_cassettes/subscriptions_user_create_success.yml index 4f945c009..5e3d4f9d7 100644 --- a/test/vcr_cassettes/subscriptions_user_create_success.yml +++ b/test/vcr_cassettes/subscriptions_user_create_success.yml @@ -20,7 +20,7 @@ http_interactions: X-Stripe-Client-User-Agent: - '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux version 4.4.5-1-ARCH (builduser@tobias) (gcc version 5.3.0 (GCC) ) #1 SMP - PREEMPT Thu Mar 10 07:38:19 CET 2016","hostname":"Sylvain-desktop"}' + PREEMPT Thu Mar 10 07:38:19 CET 2016","hostname":"integration"}' Content-Length: - '81' response: @@ -90,7 +90,7 @@ http_interactions: "type": "card", "used": false } - http_version: + http_version: recorded_at: Mon, 11 Apr 2016 15:43:41 GMT - request: method: get @@ -112,7 +112,7 @@ http_interactions: X-Stripe-Client-User-Agent: - '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux version 4.4.5-1-ARCH (builduser@tobias) (gcc version 5.3.0 (GCC) ) #1 SMP - PREEMPT Thu Mar 10 07:38:19 CET 2016","hostname":"Sylvain-desktop"}' + PREEMPT Thu Mar 10 07:38:19 CET 2016","hostname":"integration"}' response: status: code: 200 @@ -180,7 +180,7 @@ http_interactions: "type": "card", "used": false } - http_version: + http_version: recorded_at: Mon, 11 Apr 2016 15:43:42 GMT - request: method: get @@ -202,7 +202,7 @@ http_interactions: X-Stripe-Client-User-Agent: - '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux version 4.4.5-1-ARCH (builduser@tobias) (gcc version 5.3.0 (GCC) ) #1 SMP - PREEMPT Thu Mar 10 07:38:19 CET 2016","hostname":"Sylvain-desktop"}' + PREEMPT Thu Mar 10 07:38:19 CET 2016","hostname":"integration"}' response: status: code: 200 @@ -361,7 +361,7 @@ http_interactions: ICAgICAgfQogICAgXSwKICAgICJoYXNfbW9yZSI6IGZhbHNlLAogICAgInRv dGFsX2NvdW50IjogNCwKICAgICJ1cmwiOiAiL3YxL2N1c3RvbWVycy9jdXNf OERpMXdqZFZrdHY1a3Qvc3Vic2NyaXB0aW9ucyIKICB9Cn0K - http_version: + http_version: recorded_at: Mon, 11 Apr 2016 15:43:42 GMT - request: method: post @@ -383,7 +383,7 @@ http_interactions: X-Stripe-Client-User-Agent: - '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux version 4.4.5-1-ARCH (builduser@tobias) (gcc version 5.3.0 (GCC) ) #1 SMP - PREEMPT Thu Mar 10 07:38:19 CET 2016","hostname":"Sylvain-desktop"}' + PREEMPT Thu Mar 10 07:38:19 CET 2016","hostname":"integration"}' Content-Length: - '76' response: @@ -453,7 +453,7 @@ http_interactions: "trial_end": null, "trial_start": null } - http_version: + http_version: recorded_at: Mon, 11 Apr 2016 15:43:44 GMT - request: method: get @@ -475,7 +475,7 @@ http_interactions: X-Stripe-Client-User-Agent: - '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux version 4.4.5-1-ARCH (builduser@tobias) (gcc version 5.3.0 (GCC) ) #1 SMP - PREEMPT Thu Mar 10 07:38:19 CET 2016","hostname":"Sylvain-desktop"}' + PREEMPT Thu Mar 10 07:38:19 CET 2016","hostname":"integration"}' response: status: code: 200 @@ -589,7 +589,7 @@ http_interactions: "has_more": true, "url": "/v1/invoices" } - http_version: + http_version: recorded_at: Mon, 11 Apr 2016 15:43:47 GMT - request: method: get @@ -611,7 +611,7 @@ http_interactions: X-Stripe-Client-User-Agent: - '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux version 4.4.5-1-ARCH (builduser@tobias) (gcc version 5.3.0 (GCC) ) #1 SMP - PREEMPT Thu Mar 10 07:38:19 CET 2016","hostname":"Sylvain-desktop"}' + PREEMPT Thu Mar 10 07:38:19 CET 2016","hostname":"integration"}' response: status: code: 200 @@ -793,7 +793,7 @@ http_interactions: ICAgICJoYXNfbW9yZSI6IGZhbHNlLAogICAgInRvdGFsX2NvdW50IjogNSwK ICAgICJ1cmwiOiAiL3YxL2N1c3RvbWVycy9jdXNfOERpMXdqZFZrdHY1a3Qv c3Vic2NyaXB0aW9ucyIKICB9Cn0K - http_version: + http_version: recorded_at: Mon, 11 Apr 2016 15:43:48 GMT - request: method: get @@ -815,7 +815,7 @@ http_interactions: X-Stripe-Client-User-Agent: - '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux version 4.4.5-1-ARCH (builduser@tobias) (gcc version 5.3.0 (GCC) ) #1 SMP - PREEMPT Thu Mar 10 07:38:19 CET 2016","hostname":"Sylvain-desktop"}' + PREEMPT Thu Mar 10 07:38:19 CET 2016","hostname":"integration"}' response: status: code: 200 @@ -883,7 +883,7 @@ http_interactions: "trial_end": null, "trial_start": null } - http_version: + http_version: recorded_at: Mon, 11 Apr 2016 15:43:49 GMT - request: method: delete @@ -905,7 +905,7 @@ http_interactions: X-Stripe-Client-User-Agent: - '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux version 4.4.5-1-ARCH (builduser@tobias) (gcc version 5.3.0 (GCC) ) #1 SMP - PREEMPT Thu Mar 10 07:38:19 CET 2016","hostname":"Sylvain-desktop"}' + PREEMPT Thu Mar 10 07:38:19 CET 2016","hostname":"integration"}' response: status: code: 200 @@ -973,6 +973,6 @@ http_interactions: "trial_end": null, "trial_start": null } - http_version: + http_version: recorded_at: Mon, 11 Apr 2016 15:43:50 GMT recorded_with: VCR 3.0.1 diff --git a/test/vcr_cassettes/subscriptions_user_renew_failed.yml b/test/vcr_cassettes/subscriptions_user_renew_failed.yml index 29e03a51c..8beb57922 100644 --- a/test/vcr_cassettes/subscriptions_user_renew_failed.yml +++ b/test/vcr_cassettes/subscriptions_user_renew_failed.yml @@ -20,7 +20,7 @@ http_interactions: X-Stripe-Client-User-Agent: - '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux version 4.4.5-1-ARCH (builduser@tobias) (gcc version 5.3.0 (GCC) ) #1 SMP - PREEMPT Thu Mar 10 07:38:19 CET 2016","hostname":"Sylvain-desktop"}' + PREEMPT Thu Mar 10 07:38:19 CET 2016","hostname":"integration"}' response: status: code: 400 @@ -60,7 +60,7 @@ http_interactions: "param": "token" } } - http_version: + http_version: recorded_at: Mon, 11 Apr 2016 15:47:34 GMT - request: method: get @@ -82,7 +82,7 @@ http_interactions: X-Stripe-Client-User-Agent: - '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux version 4.4.5-1-ARCH (builduser@tobias) (gcc version 5.3.0 (GCC) ) #1 SMP - PREEMPT Thu Mar 10 07:38:19 CET 2016","hostname":"Sylvain-desktop"}' + PREEMPT Thu Mar 10 07:38:19 CET 2016","hostname":"integration"}' response: status: code: 200 @@ -305,7 +305,7 @@ http_interactions: "url": "/v1/customers/cus_8E2ys9zDZgetWX/subscriptions" } } - http_version: + http_version: recorded_at: Mon, 11 Apr 2016 15:47:35 GMT - request: method: post @@ -327,7 +327,7 @@ http_interactions: X-Stripe-Client-User-Agent: - '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux version 4.4.5-1-ARCH (builduser@tobias) (gcc version 5.3.0 (GCC) ) #1 SMP - PREEMPT Thu Mar 10 07:38:19 CET 2016","hostname":"Sylvain-desktop"}' + PREEMPT Thu Mar 10 07:38:19 CET 2016","hostname":"integration"}' Content-Length: - '66' response: @@ -369,6 +369,6 @@ http_interactions: "param": "card" } } - http_version: + http_version: recorded_at: Mon, 11 Apr 2016 15:47:36 GMT recorded_with: VCR 3.0.1