From e3936649745a627fa2c31fc7b8602793b7d6027b Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sat, 27 Apr 2019 21:04:06 +0200 Subject: Test fixups and small 2.8 fixes Pagination backwards is broken presently. --- tests/cassettes/test_filter_create.yaml | 80 ++++++++++++++++----------------- 1 file changed, 40 insertions(+), 40 deletions(-) (limited to 'tests/cassettes/test_filter_create.yaml') diff --git a/tests/cassettes/test_filter_create.yaml b/tests/cassettes/test_filter_create.yaml index af8ee31..ee273aa 100644 --- a/tests/cassettes/test_filter_create.yaml +++ b/tests/cassettes/test_filter_create.yaml @@ -12,11 +12,11 @@ interactions: method: POST uri: http://localhost:3000/api/v1/filters response: - body: {string: '{"id":37,"phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'} + body: {string: '{"id":"19","phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"3d6994baffdea8caa5d91fc5d2a1efc0"] + ETag: [W/"9289198334d408c47d29f9b7a0fe6e7d"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -24,10 +24,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [b27015d9-55e5-4f2a-9231-8db9702a73ce] - X-Runtime: ['0.034108'] + X-Request-Id: [b4961890-0957-4de4-b44f-8f7ca02969f2] + X-Runtime: ['0.029585'] X-XSS-Protection: [1; mode=block] - content-length: ['111'] + content-length: ['113'] status: {code: 200, message: OK} - request: body: null @@ -40,11 +40,11 @@ interactions: method: GET uri: http://localhost:3000/api/v1/filters response: - body: {string: '[{"id":1,"phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":true},{"id":27,"phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":30,"phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":34,"phrase":"anime","context":["home"],"whole_word":false,"expires_at":null,"irreversible":false},{"id":35,"phrase":"girugamesh","context":["home"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":36,"phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":37,"phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}]'} + body: {string: '[{"id":"3","phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":"12","phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":"19","phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}]'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"edbbd56d6a098ed450465fe480624fab"] + ETag: [W/"4c273b197afab93420bbf924a9642648"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -52,10 +52,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [4bbd6c23-662c-41bb-8192-76fd47356fab] - X-Runtime: ['0.020769'] + X-Request-Id: [44e22500-2799-4424-b986-06b066203325] + X-Runtime: ['0.023643'] X-XSS-Protection: [1; mode=block] - content-length: ['792'] + content-length: ['356'] status: {code: 200, message: OK} - request: body: null @@ -66,13 +66,13 @@ interactions: Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET - uri: http://localhost:3000/api/v1/filters/37 + uri: http://localhost:3000/api/v1/filters/19 response: - body: {string: '{"id":37,"phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'} + body: {string: '{"id":"19","phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"3d6994baffdea8caa5d91fc5d2a1efc0"] + ETag: [W/"9289198334d408c47d29f9b7a0fe6e7d"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -80,10 +80,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [b3d107a7-cb56-40a1-9bd9-0e79ee16f832] - X-Runtime: ['0.023702'] + X-Request-Id: [3e043c5e-f4d7-488a-97cc-9e43727e7224] + X-Runtime: ['0.022473'] X-XSS-Protection: [1; mode=block] - content-length: ['111'] + content-length: ['113'] status: {code: 200, message: OK} - request: body: null @@ -95,13 +95,13 @@ interactions: Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: DELETE - uri: http://localhost:3000/api/v1/filters/37 + uri: http://localhost:3000/api/v1/filters/19 response: body: {string: '{}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"e4127e970a50339ddd95e5e919b70642"] + ETag: [W/"c6a41189c705fc6216f062c783b83fd0"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -109,8 +109,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [efb38983-7b67-4bb1-8a53-bd2a2b8596b7] - X-Runtime: ['0.033148'] + X-Request-Id: [27273ccf-2b3e-42a4-b66b-fbbf3a4124ae] + X-Runtime: ['0.032739'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -127,11 +127,11 @@ interactions: method: POST uri: http://localhost:3000/api/v1/filters response: - body: {string: '{"id":38,"phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}'} + body: {string: '{"id":"20","phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"cae02e13e377c3adb0b76489a56fadb8"] + ETag: [W/"85faeffd5444fd99f8aec00f2897d6e1"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -139,10 +139,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [b239ccd2-eead-4876-b62c-4d0a174971e5] - X-Runtime: ['0.033069'] + X-Request-Id: [6b56f3e5-bafe-4ab8-a98f-ff47a4b3ce73] + X-Runtime: ['0.029775'] X-XSS-Protection: [1; mode=block] - content-length: ['112'] + content-length: ['114'] status: {code: 200, message: OK} - request: body: null @@ -155,11 +155,11 @@ interactions: method: GET uri: http://localhost:3000/api/v1/filters response: - body: {string: '[{"id":1,"phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":true},{"id":27,"phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":30,"phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":34,"phrase":"anime","context":["home"],"whole_word":false,"expires_at":null,"irreversible":false},{"id":35,"phrase":"girugamesh","context":["home"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":36,"phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":38,"phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}]'} + body: {string: '[{"id":"3","phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":"12","phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false},{"id":"20","phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}]'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"3869f2ed416e1a8c2a0374d33e45625e"] + ETag: [W/"4b5db3bdbead67957bb465147c52d3fb"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -167,10 +167,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [be361b44-e614-475a-b64a-d09c3ae36330] - X-Runtime: ['0.020416'] + X-Request-Id: [456bfb9f-0479-4f97-ae23-7244fc9c3eff] + X-Runtime: ['0.023413'] X-XSS-Protection: [1; mode=block] - content-length: ['793'] + content-length: ['357'] status: {code: 200, message: OK} - request: body: null @@ -181,13 +181,13 @@ interactions: Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET - uri: http://localhost:3000/api/v1/filters/38 + uri: http://localhost:3000/api/v1/filters/20 response: - body: {string: '{"id":38,"phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}'} + body: {string: '{"id":"20","phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"cae02e13e377c3adb0b76489a56fadb8"] + ETag: [W/"85faeffd5444fd99f8aec00f2897d6e1"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -195,10 +195,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [e26dcff6-7e5c-43f3-ba4a-7c4a036ea445] - X-Runtime: ['0.025813'] + X-Request-Id: [013c4daa-f1cc-47e9-a6f8-7b106367aa23] + X-Runtime: ['0.023936'] X-XSS-Protection: [1; mode=block] - content-length: ['112'] + content-length: ['114'] status: {code: 200, message: OK} - request: body: null @@ -210,13 +210,13 @@ interactions: Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: DELETE - uri: http://localhost:3000/api/v1/filters/38 + uri: http://localhost:3000/api/v1/filters/20 response: body: {string: '{}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"e4127e970a50339ddd95e5e919b70642"] + ETag: [W/"c6a41189c705fc6216f062c783b83fd0"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -224,8 +224,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [28e0d549-bd9f-498e-b3a5-c0950d2eb9a8] - X-Runtime: ['0.033591'] + X-Request-Id: [56b15d57-239b-4c2c-987c-95e0d183bb75] + X-Runtime: ['0.023065'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} -- cgit v1.2.3