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_search.yaml | 46 +++++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 22 deletions(-) (limited to 'tests/cassettes/test_search.yaml') diff --git a/tests/cassettes/test_search.yaml b/tests/cassettes/test_search.yaml index 1983178..54202bc 100644 --- a/tests/cassettes/test_search.yaml +++ b/tests/cassettes/test_search.yaml @@ -10,11 +10,12 @@ interactions: method: GET uri: http://localhost:3000/api/v1/search?q=mastodonpy_test response: - body: {string: '{"hashtags":[],"accounts":[{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"created_at":"2019-04-27T20:56:20.155Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","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":0,"following_count":0,"statuses_count":0,"emojis":[],"fields":[]}],"statuses":[]}'} + body: {string: '{"hashtags":[],"accounts":[{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John + Lennon","locked":true,"bot":false,"created_at":"2019-06-22T14:46:28.567Z","note":"\u003cp\u003eI + walk funny\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","followers_count":0,"following_count":0,"statuses_count":1,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]}],"statuses":[]}'} headers: - Cache-Control: ['max-age=0, private, must-revalidate'] + Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"9b6c418bdbb3a0abd5277c65cc102118"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -22,10 +23,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [0d222257-5114-433c-b10b-1e7c849a6b9a] - X-Runtime: ['0.025732'] + X-Request-Id: [98a6d4e6-9ebe-4964-97e5-2d1497916e56] + X-Runtime: ['0.134380'] X-XSS-Protection: [1; mode=block] - content-length: ['610'] + content-length: ['972'] status: {code: 200, message: OK} - request: body: null @@ -38,11 +39,12 @@ interactions: method: GET uri: http://localhost:3000/api/v2/search?resolve=1&q=mastodonpy_test response: - body: {string: '{"accounts":[{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"created_at":"2019-04-27T20:56:20.155Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","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":0,"following_count":0,"statuses_count":0,"emojis":[],"fields":[]}],"statuses":[],"hashtags":[]}'} + body: {string: '{"accounts":[{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John + Lennon","locked":true,"bot":false,"created_at":"2019-06-22T14:46:28.567Z","note":"\u003cp\u003eI + walk funny\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","followers_count":0,"following_count":0,"statuses_count":1,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]}],"statuses":[],"hashtags":[]}'} headers: - Cache-Control: ['max-age=0, private, must-revalidate'] + Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"dc01e7fe955c38320762927b42201386"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -50,10 +52,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [fe4a8ac5-89c8-40fa-b156-b53907927af8] - X-Runtime: ['0.036339'] + X-Request-Id: [774d8100-31d1-4c40-bb03-2803dd9a744d] + X-Runtime: ['0.096811'] X-XSS-Protection: [1; mode=block] - content-length: ['610'] + content-length: ['972'] status: {code: 200, message: OK} - request: body: null @@ -66,11 +68,12 @@ interactions: method: GET uri: http://localhost:3000/api/v2/search?resolve=1&q=mastodonpy_test response: - body: {string: '{"accounts":[{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"created_at":"2019-04-27T20:56:20.155Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","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":0,"following_count":0,"statuses_count":0,"emojis":[],"fields":[]}],"statuses":[],"hashtags":[]}'} + body: {string: '{"accounts":[{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John + Lennon","locked":true,"bot":false,"created_at":"2019-06-22T14:46:28.567Z","note":"\u003cp\u003eI + walk funny\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","followers_count":0,"following_count":0,"statuses_count":0,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]}],"statuses":[],"hashtags":[]}'} headers: - Cache-Control: ['max-age=0, private, must-revalidate'] + Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"dc01e7fe955c38320762927b42201386"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -78,10 +81,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [db56fc6d-bc14-4197-ad8e-526451c31ef8] - X-Runtime: ['0.031569'] + X-Request-Id: [438c01eb-6871-4984-a790-c5ba42653ce5] + X-Runtime: ['0.077231'] X-XSS-Protection: [1; mode=block] - content-length: ['610'] + content-length: ['972'] status: {code: 200, message: OK} - request: body: null @@ -96,9 +99,8 @@ interactions: response: body: {string: '{"accounts":[],"statuses":[],"hashtags":[]}'} headers: - Cache-Control: ['max-age=0, private, must-revalidate'] + Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"2f5f5aeb866795515ef92460da252331"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -106,8 +108,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [0af31e14-f026-43f7-9fdc-b8e3130479cf] - X-Runtime: ['0.043284'] + X-Request-Id: [d6200f02-291f-4daf-b480-054fac8761ed] + X-Runtime: ['0.036176'] X-XSS-Protection: [1; mode=block] content-length: ['43'] status: {code: 200, message: OK} -- cgit v1.2.3