From 052b7f7cd319bd39f5c9db1b0322e9e4445a123e Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sat, 22 Jun 2019 15:28:27 +0200 Subject: Test fixups pre-2.9.1 --- tests/cassettes/test_list_add_remove_account.yaml | 128 ++++++++++------------ 1 file changed, 57 insertions(+), 71 deletions(-) (limited to 'tests/cassettes/test_list_add_remove_account.yaml') diff --git a/tests/cassettes/test_list_add_remove_account.yaml b/tests/cassettes/test_list_add_remove_account.yaml index daeb29c..781db8b 100644 --- a/tests/cassettes/test_list_add_remove_account.yaml +++ b/tests/cassettes/test_list_add_remove_account.yaml @@ -12,11 +12,10 @@ interactions: method: POST uri: http://localhost:3000/api/v1/lists response: - body: {string: '{"id":"13","title":"ham burglars"}'} + body: {string: '{"id":"3","title":"ham burglars"}'} headers: - Cache-Control: ['max-age=0, private, must-revalidate'] + Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"07509f109f42d4687ab3f97cecc32f2d"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -24,10 +23,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [ecfb3d17-0eb9-47ef-88c6-cef7a63ca0fb] - X-Runtime: ['0.025506'] + X-Request-Id: [b41ce740-9bdc-450d-9673-6120aad25e27] + X-Runtime: ['0.043715'] X-XSS-Protection: [1; mode=block] - content-length: ['34'] + content-length: ['33'] status: {code: 200, message: OK} - request: body: null @@ -40,11 +39,10 @@ interactions: method: GET uri: http://localhost:3000/api/v1/accounts/verify_credentials response: - body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-04-27T17:58:11.427Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":4,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[]},"emojis":[],"fields":[]}'} + body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":0,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[]},"emojis":[],"fields":[]}'} headers: - Cache-Control: ['max-age=0, private, must-revalidate'] + Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"4743bd5a10738b03a8075c666b8ae4b7"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -52,8 +50,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [7a546efa-0f22-4b8d-a45c-31bea316120d] - X-Runtime: ['0.019141'] + X-Request-Id: [6fbf035d-a73c-4178-82e7-12a3abd321b4] + X-Runtime: ['0.023119'] X-XSS-Protection: [1; mode=block] content-length: ['609'] status: {code: 200, message: OK} @@ -72,9 +70,8 @@ interactions: response: body: {string: '{"id":"1","following":true,"showing_reblogs":true,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false}'} headers: - Cache-Control: ['max-age=0, private, must-revalidate'] + Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"b3b583b439113ba5a011fdfb18034122"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -82,8 +79,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [3596d493-bc20-4630-ad44-874077a9021e] - X-Runtime: ['0.052244'] + X-Request-Id: [e397737b-a685-4e0d-8e56-c5fbb7716be2] + X-Runtime: ['0.034676'] X-XSS-Protection: [1; mode=block] content-length: ['209'] status: {code: 200, message: OK} @@ -98,13 +95,12 @@ interactions: Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST - uri: http://localhost:3000/api/v1/lists/13/accounts + uri: http://localhost:3000/api/v1/lists/3/accounts response: body: {string: '{}'} headers: - Cache-Control: ['max-age=0, private, must-revalidate'] + Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"f7218fbcd1fb889396566736881b9808"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -112,8 +108,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [7339a54b-fb1a-496e-bfda-ac8ac686dc00] - X-Runtime: ['0.060909'] + X-Request-Id: [7df89e97-661f-4b96-bef8-c89326ff70a9] + X-Runtime: ['0.056773'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -126,14 +122,13 @@ interactions: Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET - uri: http://localhost:3000/api/v1/lists/13/accounts + uri: http://localhost:3000/api/v1/lists/3/accounts response: - body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-04-27T17:58:11.427Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":4,"emojis":[],"fields":[]}]'} + body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":0,"emojis":[],"fields":[]}]'} headers: - Cache-Control: ['max-age=0, private, must-revalidate'] + Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"e56e3daf7f8db25fba528785afbc93e9"] - Link: ['; rel="prev"'] + Link: ['; rel="prev"'] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -141,8 +136,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [ae178f64-95e9-42b4-88cf-6ca4fd86f9e1] - X-Runtime: ['0.020260'] + X-Request-Id: [96ba134e-49e8-4dc2-8226-4483d24b4037] + X-Runtime: ['0.021782'] X-XSS-Protection: [1; mode=block] content-length: ['525'] status: {code: 200, message: OK} @@ -160,9 +155,8 @@ interactions: response: body: {string: '{"id":"1","following":false,"showing_reblogs":false,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false}'} headers: - Cache-Control: ['max-age=0, private, must-revalidate'] + Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"fce88baa792f3991e7dbd5b7006926f7"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -170,8 +164,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [91746aff-6054-4308-9356-6ecea72f49e7] - X-Runtime: ['0.045276'] + X-Request-Id: [c09bce26-3ff1-4bb8-b7dc-59a9e8e01aa6] + X-Runtime: ['0.053762'] X-XSS-Protection: [1; mode=block] content-length: ['211'] status: {code: 200, message: OK} @@ -184,13 +178,12 @@ interactions: Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET - uri: http://localhost:3000/api/v1/lists/13/accounts + uri: http://localhost:3000/api/v1/lists/3/accounts response: body: {string: '[]'} headers: - Cache-Control: ['max-age=0, private, must-revalidate'] + Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"5839a794e7a473cadc209ef56542b467"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -198,8 +191,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [e1f4e3a6-d51f-482c-a3e7-a83a0551cc3b] - X-Runtime: ['0.021326'] + X-Request-Id: [a2702584-316c-4f75-b6d1-b0fc4f4b8017] + X-Runtime: ['0.023216'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -218,9 +211,8 @@ interactions: response: body: {string: '{"id":"1","following":true,"showing_reblogs":true,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false}'} headers: - Cache-Control: ['max-age=0, private, must-revalidate'] + Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"1d5525111153d4ca106111ca8fd589c9"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -228,8 +220,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [caec88f4-10ba-4ea3-b346-03d1a6a90772] - X-Runtime: ['0.080250'] + X-Request-Id: [b20c47c7-4ccd-46a0-932f-07fce792856d] + X-Runtime: ['0.071168'] X-XSS-Protection: [1; mode=block] content-length: ['209'] status: {code: 200, message: OK} @@ -244,13 +236,12 @@ interactions: Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST - uri: http://localhost:3000/api/v1/lists/13/accounts + uri: http://localhost:3000/api/v1/lists/3/accounts response: body: {string: '{}'} headers: - Cache-Control: ['max-age=0, private, must-revalidate'] + Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"1f19006d4e16e44010f8b60659bab0b0"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -258,8 +249,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [439a863a-ce94-4c1f-a7b9-4469a1f42249] - X-Runtime: ['0.091119'] + X-Request-Id: [f5e2187b-726d-4a2b-a779-10b82ad3e905] + X-Runtime: ['0.042406'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -272,14 +263,13 @@ interactions: Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET - uri: http://localhost:3000/api/v1/lists/13/accounts + uri: http://localhost:3000/api/v1/lists/3/accounts response: - body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-04-27T17:58:11.427Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":4,"emojis":[],"fields":[]}]'} + body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":0,"emojis":[],"fields":[]}]'} headers: - Cache-Control: ['max-age=0, private, must-revalidate'] + Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"12d850bde19acd8541ce57682d068d23"] - Link: ['; rel="prev"'] + Link: ['; rel="prev"'] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -287,8 +277,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [f64a85d5-0704-48a2-913d-f7edc512fd5d] - X-Runtime: ['0.052260'] + X-Request-Id: [eba683a4-4688-426a-b11a-566d486b2c8e] + X-Runtime: ['0.027438'] X-XSS-Protection: [1; mode=block] content-length: ['525'] status: {code: 200, message: OK} @@ -303,13 +293,12 @@ interactions: Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: DELETE - uri: http://localhost:3000/api/v1/lists/13/accounts + uri: http://localhost:3000/api/v1/lists/3/accounts response: body: {string: '{}'} headers: - Cache-Control: ['max-age=0, private, must-revalidate'] + Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"1f19006d4e16e44010f8b60659bab0b0"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -317,8 +306,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [1d93f963-f3e1-430b-b12f-3a35b8c97b18] - X-Runtime: ['0.061400'] + X-Request-Id: [9c084136-2e78-45df-bea7-5d194672a358] + X-Runtime: ['0.031512'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -331,13 +320,12 @@ interactions: Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET - uri: http://localhost:3000/api/v1/lists/13/accounts + uri: http://localhost:3000/api/v1/lists/3/accounts response: body: {string: '[]'} headers: - Cache-Control: ['max-age=0, private, must-revalidate'] + Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"e6ae59ab52fdbf017d506af98d3c0346"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -345,8 +333,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [c8cb7671-b6cb-4afd-91e7-a8878ae10dca] - X-Runtime: ['0.020637'] + X-Request-Id: [9c87a884-72e6-4fe0-9c92-b7770c1741d2] + X-Runtime: ['0.017584'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -364,9 +352,8 @@ interactions: response: body: {string: '{"id":"1","following":false,"showing_reblogs":false,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false}'} headers: - Cache-Control: ['max-age=0, private, must-revalidate'] + Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"7de0bda800fc09d7aa7e4e09ff1e64ad"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -374,8 +361,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [a19d2776-8646-4bec-a6b3-34f371fecde7] - X-Runtime: ['0.049793'] + X-Request-Id: [d8b4495d-d870-4cd7-8a2c-2f8635e4d72b] + X-Runtime: ['0.048762'] X-XSS-Protection: [1; mode=block] content-length: ['211'] status: {code: 200, message: OK} @@ -389,13 +376,12 @@ interactions: Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: DELETE - uri: http://localhost:3000/api/v1/lists/13 + uri: http://localhost:3000/api/v1/lists/3 response: body: {string: '{}'} headers: - Cache-Control: ['max-age=0, private, must-revalidate'] + Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"1f19006d4e16e44010f8b60659bab0b0"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -403,8 +389,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [b4f120a6-6147-445f-ac98-4d0a871c6e5b] - X-Runtime: ['0.023427'] + X-Request-Id: [30228e1f-6158-4012-9c6b-4ca8268b6c62] + X-Runtime: ['0.027308'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} -- cgit v1.2.3