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_filter_create.yaml | 88 +++++++++++++++------------------ 1 file changed, 40 insertions(+), 48 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 ee273aa..0fa685b 100644 --- a/tests/cassettes/test_filter_create.yaml +++ b/tests/cassettes/test_filter_create.yaml @@ -12,11 +12,10 @@ interactions: method: POST uri: http://localhost:3000/api/v1/filters response: - body: {string: '{"id":"19","phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'} + body: {string: '{"id":"1","phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":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/"9289198334d408c47d29f9b7a0fe6e7d"] 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: [b4961890-0957-4de4-b44f-8f7ca02969f2] - X-Runtime: ['0.029585'] + X-Request-Id: [e8c37740-33a4-48cf-bc53-7c85ce2b4a41] + X-Runtime: ['0.075588'] X-XSS-Protection: [1; mode=block] - content-length: ['113'] + content-length: ['112'] status: {code: 200, message: OK} - request: body: null @@ -40,11 +39,10 @@ interactions: method: GET uri: http://localhost:3000/api/v1/filters response: - 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}]'} + body: {string: '[{"id":"1","phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":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/"4c273b197afab93420bbf924a9642648"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -52,10 +50,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [44e22500-2799-4424-b986-06b066203325] - X-Runtime: ['0.023643'] + X-Request-Id: [c3bc75c5-bfc5-4e59-a6e0-757725dd4f6d] + X-Runtime: ['0.031688'] X-XSS-Protection: [1; mode=block] - content-length: ['356'] + content-length: ['114'] status: {code: 200, message: OK} - request: body: null @@ -66,13 +64,12 @@ interactions: Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET - uri: http://localhost:3000/api/v1/filters/19 + uri: http://localhost:3000/api/v1/filters/1 response: - body: {string: '{"id":"19","phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'} + body: {string: '{"id":"1","phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":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/"9289198334d408c47d29f9b7a0fe6e7d"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -80,10 +77,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [3e043c5e-f4d7-488a-97cc-9e43727e7224] - X-Runtime: ['0.022473'] + X-Request-Id: [bb08444e-edef-4914-aaa6-d08e9fe3219a] + X-Runtime: ['0.029748'] X-XSS-Protection: [1; mode=block] - content-length: ['113'] + content-length: ['112'] status: {code: 200, message: OK} - request: body: null @@ -95,13 +92,12 @@ interactions: Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: DELETE - uri: http://localhost:3000/api/v1/filters/19 + uri: http://localhost:3000/api/v1/filters/1 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/"c6a41189c705fc6216f062c783b83fd0"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -109,8 +105,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [27273ccf-2b3e-42a4-b66b-fbbf3a4124ae] - X-Runtime: ['0.032739'] + X-Request-Id: [9e2ad6c1-a256-4e27-9177-8cf638ea4cb4] + X-Runtime: ['0.041075'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -127,11 +123,10 @@ interactions: method: POST uri: http://localhost:3000/api/v1/filters response: - body: {string: '{"id":"20","phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}'} + body: {string: '{"id":"2","phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":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/"85faeffd5444fd99f8aec00f2897d6e1"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -139,10 +134,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [6b56f3e5-bafe-4ab8-a98f-ff47a4b3ce73] - X-Runtime: ['0.029775'] + X-Request-Id: [045643ac-fa49-41f5-a7d0-f332230a4d77] + X-Runtime: ['0.036015'] X-XSS-Protection: [1; mode=block] - content-length: ['114'] + content-length: ['113'] status: {code: 200, message: OK} - request: body: null @@ -155,11 +150,10 @@ interactions: method: GET uri: http://localhost:3000/api/v1/filters response: - 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}]'} + body: {string: '[{"id":"2","phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":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/"4b5db3bdbead67957bb465147c52d3fb"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -167,10 +161,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [456bfb9f-0479-4f97-ae23-7244fc9c3eff] - X-Runtime: ['0.023413'] + X-Request-Id: [5a54baa4-0c28-4b1c-8009-6c02c130cdba] + X-Runtime: ['0.035559'] X-XSS-Protection: [1; mode=block] - content-length: ['357'] + content-length: ['115'] status: {code: 200, message: OK} - request: body: null @@ -181,13 +175,12 @@ interactions: Connection: [keep-alive] User-Agent: [python-requests/2.18.4] method: GET - uri: http://localhost:3000/api/v1/filters/20 + uri: http://localhost:3000/api/v1/filters/2 response: - body: {string: '{"id":"20","phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":false}'} + body: {string: '{"id":"2","phrase":"anime","context":["notifications"],"whole_word":false,"expires_at":null,"irreversible":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/"85faeffd5444fd99f8aec00f2897d6e1"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -195,10 +188,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [013c4daa-f1cc-47e9-a6f8-7b106367aa23] - X-Runtime: ['0.023936'] + X-Request-Id: [161ca06a-8c49-4f40-b92e-791430951586] + X-Runtime: ['0.032881'] X-XSS-Protection: [1; mode=block] - content-length: ['114'] + content-length: ['113'] status: {code: 200, message: OK} - request: body: null @@ -210,13 +203,12 @@ interactions: Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: DELETE - uri: http://localhost:3000/api/v1/filters/20 + uri: http://localhost:3000/api/v1/filters/2 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/"c6a41189c705fc6216f062c783b83fd0"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -224,8 +216,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [56b15d57-239b-4c2c-987c-95e0d183bb75] - X-Runtime: ['0.023065'] + X-Request-Id: [d15537bb-b442-45ac-a80e-2c671be102c4] + X-Runtime: ['0.042867'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} -- cgit v1.2.3