From 64ec9e20987072692227d8817d9fd99d497fea5e Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Wed, 18 Apr 2018 22:00:35 +0200 Subject: Update the tests --- tests/cassettes/test_home_tl_anonymous_throws.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/cassettes/test_home_tl_anonymous_throws.yaml') diff --git a/tests/cassettes/test_home_tl_anonymous_throws.yaml b/tests/cassettes/test_home_tl_anonymous_throws.yaml index ebf87e3..a70f170 100644 --- a/tests/cassettes/test_home_tl_anonymous_throws.yaml +++ b/tests/cassettes/test_home_tl_anonymous_throws.yaml @@ -5,7 +5,7 @@ interactions: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] + User-Agent: [python-requests/2.9.1] method: GET uri: http://localhost:3000/api/v1/timelines/home response: @@ -20,8 +20,8 @@ interactions: access token is invalid"'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [aa44c94d-0659-45a2-986d-a3c268195dfb] - X-Runtime: ['0.037813'] + X-Request-Id: [733bbb43-2d1f-4c73-95d6-37d3bb846a91] + X-Runtime: ['0.078774'] X-XSS-Protection: [1; mode=block] content-length: ['39'] status: {code: 401, message: Unauthorized} -- cgit v1.2.3 From bc7b9defe8b72b6ab14ade6828a98f4d6e82b1de Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Wed, 18 Apr 2018 22:07:03 +0200 Subject: Attempt 2 at fixing the tests for travis --- tests/cassettes/test_home_tl_anonymous_throws.yaml | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'tests/cassettes/test_home_tl_anonymous_throws.yaml') diff --git a/tests/cassettes/test_home_tl_anonymous_throws.yaml b/tests/cassettes/test_home_tl_anonymous_throws.yaml index a70f170..ebb02c9 100644 --- a/tests/cassettes/test_home_tl_anonymous_throws.yaml +++ b/tests/cassettes/test_home_tl_anonymous_throws.yaml @@ -25,4 +25,30 @@ interactions: X-XSS-Protection: [1; mode=block] content-length: ['39'] status: {code: 401, message: Unauthorized} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-requests/2.9.1] + method: GET + uri: http://localhost:3000/api/v1/timelines/home + response: + body: {string: '{"error":"The access token is invalid"}'} + headers: + Cache-Control: [no-store] + Content-Type: [application/json; charset=utf-8] + Pragma: [no-cache] + Transfer-Encoding: [chunked] + Vary: ['Accept-Encoding, Origin'] + WWW-Authenticate: ['Bearer realm="Doorkeeper", error="invalid_token", error_description="The + access token is invalid"'] + X-Content-Type-Options: [nosniff] + X-Frame-Options: [SAMEORIGIN] + X-Request-Id: [1133e6be-0dfe-4e6b-bae4-5c3a8997c894] + X-Runtime: ['0.049213'] + X-XSS-Protection: [1; mode=block] + content-length: ['39'] + status: {code: 401, message: Unauthorized} version: 1 -- cgit v1.2.3 From a15d28d9d60128fd5551f05eccd8999b46f70f5e Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sun, 6 May 2018 01:37:13 +0200 Subject: Testing updates, can now test streaming API --- tests/cassettes/test_home_tl_anonymous_throws.yaml | 30 ++-------------------- 1 file changed, 2 insertions(+), 28 deletions(-) (limited to 'tests/cassettes/test_home_tl_anonymous_throws.yaml') diff --git a/tests/cassettes/test_home_tl_anonymous_throws.yaml b/tests/cassettes/test_home_tl_anonymous_throws.yaml index ebb02c9..e73b3ce 100644 --- a/tests/cassettes/test_home_tl_anonymous_throws.yaml +++ b/tests/cassettes/test_home_tl_anonymous_throws.yaml @@ -20,34 +20,8 @@ interactions: access token is invalid"'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [733bbb43-2d1f-4c73-95d6-37d3bb846a91] - X-Runtime: ['0.078774'] - X-XSS-Protection: [1; mode=block] - content-length: ['39'] - status: {code: 401, message: Unauthorized} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.9.1] - method: GET - uri: http://localhost:3000/api/v1/timelines/home - response: - body: {string: '{"error":"The access token is invalid"}'} - headers: - Cache-Control: [no-store] - Content-Type: [application/json; charset=utf-8] - Pragma: [no-cache] - Transfer-Encoding: [chunked] - Vary: ['Accept-Encoding, Origin'] - WWW-Authenticate: ['Bearer realm="Doorkeeper", error="invalid_token", error_description="The - access token is invalid"'] - X-Content-Type-Options: [nosniff] - X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [1133e6be-0dfe-4e6b-bae4-5c3a8997c894] - X-Runtime: ['0.049213'] + X-Request-Id: [96bb5eaf-54f8-4549-a2a6-6616767529a9] + X-Runtime: ['0.086719'] X-XSS-Protection: [1; mode=block] content-length: ['39'] status: {code: 401, message: Unauthorized} -- cgit v1.2.3 From bb92f76e61063bbe59868659fb42824d3649c7b2 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sun, 6 May 2018 03:02:19 +0200 Subject: Refresh casettes and add some new ones --- tests/cassettes/test_home_tl_anonymous_throws.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/cassettes/test_home_tl_anonymous_throws.yaml') diff --git a/tests/cassettes/test_home_tl_anonymous_throws.yaml b/tests/cassettes/test_home_tl_anonymous_throws.yaml index e73b3ce..695a01b 100644 --- a/tests/cassettes/test_home_tl_anonymous_throws.yaml +++ b/tests/cassettes/test_home_tl_anonymous_throws.yaml @@ -20,8 +20,8 @@ interactions: access token is invalid"'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [96bb5eaf-54f8-4549-a2a6-6616767529a9] - X-Runtime: ['0.086719'] + X-Request-Id: [4b8e45c2-1064-4e9c-ac4d-0dcc2ce2d0b8] + X-Runtime: ['0.043879'] X-XSS-Protection: [1; mode=block] content-length: ['39'] status: {code: 401, message: Unauthorized} -- cgit v1.2.3