From 437f68c29a18303de3c75962021bbe030b2cf85c Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Fri, 11 Oct 2019 23:59:24 +0200 Subject: Update tests for 3.0.1 and fix regressions --- tests/cassettes/test_push_set.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/cassettes/test_push_set.yaml') diff --git a/tests/cassettes/test_push_set.yaml b/tests/cassettes/test_push_set.yaml index 832440b..3731f1b 100644 --- a/tests/cassettes/test_push_set.yaml +++ b/tests/cassettes/test_push_set.yaml @@ -1,18 +1,18 @@ interactions: - request: - body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BBi%2FHx%2FAhmq3XWlwfKMHD%2BHnMEmsqKBuBhwmJKOY937JK3WlUEC2J7Qch0qP0KI6nKX1atso2bUNmIBwCzKnlWQ%3D&subscription%5Bkeys%5D%5Bauth%5D=V8%2FoDC%2F4YShaJP6lg%2F4kgg%3D%3D + body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BEULnqcFEDblKe8UA020RLDfJgrbKRNhjLNHyIpZrIuHqGUyc19Vwnqcsx8SnRgZohm6TfL4x5Ciy3B3ciWufKU%3D&subscription%5Bkeys%5D%5Bauth%5D=l9dIA8OKQdRCXFlwvD%2Bvyw%3D%3D headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] Connection: [keep-alive] - Content-Length: ['252'] + Content-Length: ['242'] 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":13,"endpoint":"https://example.com","alerts":{},"server_key":"BMimvNvIJnE4R13etr8xTuyqzJ41IjYCpSBH0LICimXu2yzRI8mDhMJzRYfKhoNrs0TMpvkaa5asJ7Dl6PorcZE="}'} + body: {string: '{"id":43,"endpoint":"https://example.com","alerts":{},"server_key":"BAWt221FllE4MOQ_TNqrMrc32IW2XhCRR0WTPI0Ne0TzoNm6UeUdEDDs5FAn8nGtW8eiJyCmSMoJnUEFi1Cj1Rk="}'} headers: Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] @@ -23,8 +23,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [f5239ae3-2270-4e8c-9a7f-a5e36391a80f] - X-Runtime: ['0.036557'] + X-Request-Id: [1489b773-d0dc-4a50-8b28-5dc043773334] + X-Runtime: ['0.023225'] X-XSS-Protection: [1; mode=block] content-length: ['158'] status: {code: 200, message: OK} @@ -39,7 +39,7 @@ interactions: method: GET uri: http://localhost:3000/api/v1/push/subscription response: - body: {string: '{"id":13,"endpoint":"https://example.com","alerts":{},"server_key":"BMimvNvIJnE4R13etr8xTuyqzJ41IjYCpSBH0LICimXu2yzRI8mDhMJzRYfKhoNrs0TMpvkaa5asJ7Dl6PorcZE="}'} + body: {string: '{"id":43,"endpoint":"https://example.com","alerts":{},"server_key":"BAWt221FllE4MOQ_TNqrMrc32IW2XhCRR0WTPI0Ne0TzoNm6UeUdEDDs5FAn8nGtW8eiJyCmSMoJnUEFi1Cj1Rk="}'} headers: Cache-Control: ['no-cache, no-store'] Content-Type: [application/json; charset=utf-8] @@ -50,8 +50,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [2edefc6b-f7af-438e-afd6-4c4e1ef14cbf] - X-Runtime: ['0.015058'] + X-Request-Id: [d26b4ab2-1546-4ceb-b412-cdbf7c910cb3] + X-Runtime: ['0.024275'] X-XSS-Protection: [1; mode=block] content-length: ['158'] status: {code: 200, message: OK} -- cgit v1.2.3