From 3277ca777821e76955fb26d80788939a311db9db Mon Sep 17 00:00:00 2001 From: halcy Date: Mon, 7 Nov 2022 23:11:30 +0200 Subject: Initial test fixing pass. Four tests still fail. --- tests/cassettes/test_home_tl_anonymous_throws.yaml | 74 +++++++++++++++------- 1 file changed, 52 insertions(+), 22 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 c8841c9..aa5afa7 100644 --- a/tests/cassettes/test_home_tl_anonymous_throws.yaml +++ b/tests/cassettes/test_home_tl_anonymous_throws.yaml @@ -2,30 +2,60 @@ interactions: - request: body: null headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - tests/v311 method: GET uri: http://localhost:3000/api/v1/timelines/home response: - body: {string: '{"error":"The access token is invalid"}'} + body: + string: '{"error":"The access token is invalid"}' headers: - Cache-Control: ['private, no-store'] - Content-Type: [application/json; charset=utf-8] - Pragma: [no-cache] - Referrer-Policy: [strict-origin-when-cross-origin] - 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-Download-Options: [noopen] - X-Frame-Options: [SAMEORIGIN] - X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [34a49889-cfb9-4d71-b3cb-1157026c0ace] - X-Runtime: ['0.025829'] - X-XSS-Protection: [1; mode=block] - content-length: ['39'] - status: {code: 401, message: Unauthorized} + Cache-Control: + - no-store + Content-Security-Policy: + - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src + ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; + style-src ''self'' http://localhost:3000 ''nonce-dbQWSLJi1UH7uyEIca2ruw==''; + media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' + https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' + data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 + ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' + ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; + worker-src ''self'' blob: http://localhost:3000' + Content-Type: + - application/json; charset=utf-8 + Pragma: + - no-cache + Referrer-Policy: + - strict-origin-when-cross-origin + Transfer-Encoding: + - chunked + Vary: + - Accept, Origin + WWW-Authenticate: + - Bearer realm="Doorkeeper", error="invalid_token", error_description="The access + token is invalid" + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - SAMEORIGIN + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - 98af1f23-c342-468e-84ed-be1c35c9046b + X-Runtime: + - '0.013509' + X-XSS-Protection: + - 1; mode=block + status: + code: 401 + message: Unauthorized version: 1 -- cgit v1.2.3