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_push_delete.yaml | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'tests/cassettes/test_push_delete.yaml') diff --git a/tests/cassettes/test_push_delete.yaml b/tests/cassettes/test_push_delete.yaml index 067133f..fa4fbf3 100644 --- a/tests/cassettes/test_push_delete.yaml +++ b/tests/cassettes/test_push_delete.yaml @@ -1,22 +1,21 @@ interactions: - request: - body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BGMv%2B5m87DcpVVfX5eH7KmzEwXJ5UAa%2Ff1nF%2B%2Fv66hSvSXvZpn%2F%2B%2BhzO04aUl02HU9%2BYVpKva6BU98Jl%2FKI4vS8%3D&subscription%5Bkeys%5D%5Bauth%5D=jDUsUy5uNe95eCL47tlaCg%3D%3D + body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BMlrkErTM2M6bNEzb8k9wGH2nlmDbBn%2Fl7%2BZ0gCzWUYpP817a9NPt7OWTgNe7jrGEAOIfbFPLT0n94jvypNC0vE%3D&subscription%5Bkeys%5D%5Bauth%5D=fQmT60SBddqRsYrmSyNKcw%3D%3D headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] Connection: [keep-alive] - Content-Length: ['258'] + Content-Length: ['244'] Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: POST uri: http://localhost:3000/api/v1/push/subscription response: - body: {string: '{"id":9,"endpoint":"https://example.com","alerts":{},"server_key":"BP3YHleCxMqxCT6NGjNfl8rRj9BVI9ZGr3xLNzK53Uf0AcMo2VUFgAtdwQBfGofTb48sImPX-LRHTZgmZACu8A0="}'} + body: {string: '{"id":3,"endpoint":"https://example.com","alerts":{},"server_key":"BDoiaZnI8zQeheo5OzO3lDE5gn63dlzoaHrLTP7tctyKW-hj8yFIvIfWyCp8e-dT8kpJd9Ru7Sd-TTO2DXYgvwI="}'} headers: - Cache-Control: ['max-age=0, private, must-revalidate'] + Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"de21d3cb4400db6d36395f999819a89e"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -24,8 +23,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [724a903c-1a69-45fa-ad33-64d9c67f6e2c] - X-Runtime: ['0.021919'] + X-Request-Id: [c84a6c62-4994-4912-b969-b11a6e631950] + X-Runtime: ['0.027850'] X-XSS-Protection: [1; mode=block] content-length: ['157'] status: {code: 200, message: OK} @@ -43,9 +42,8 @@ interactions: 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/"3984996bab8ee0ed3859819e7e795ba4"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -53,8 +51,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [07afa25a-0ba2-4375-b540-0e8f835403e0] - X-Runtime: ['0.023131'] + X-Request-Id: [d916def9-70dc-4cc9-b4cb-d58ec7ba3c2b] + X-Runtime: ['0.026985'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -71,7 +69,7 @@ interactions: response: body: {string: '{"error":"Record not found"}'} headers: - Cache-Control: [no-cache] + Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] @@ -80,8 +78,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [93cd157c-214e-40cb-82f5-c732c9894882] - X-Runtime: ['0.013631'] + X-Request-Id: [9abe8dd7-e3d2-453f-9050-c40e8847ac69] + X-Runtime: ['0.014339'] X-XSS-Protection: [1; mode=block] content-length: ['28'] status: {code: 404, message: Not Found} -- cgit v1.2.3