From 64ec9e20987072692227d8817d9fd99d497fea5e Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Wed, 18 Apr 2018 22:00:35 +0200 Subject: Update the tests --- tests/cassettes/test_blocks.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/cassettes/test_blocks.yaml') diff --git a/tests/cassettes/test_blocks.yaml b/tests/cassettes/test_blocks.yaml index 7f82358..d273804 100644 --- a/tests/cassettes/test_blocks.yaml +++ b/tests/cassettes/test_blocks.yaml @@ -6,7 +6,7 @@ interactions: Accept-Encoding: ['gzip, deflate'] Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] + User-Agent: [python-requests/2.9.1] method: GET uri: http://localhost:3000/api/v1/blocks response: @@ -14,13 +14,13 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"ada2bcb0a9805d2061319aaa5a76ddc2"] + ETag: [W/"fa0308de1a47551bd1dbf139cacd61d7"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [8aecc6a6-3aa1-4da1-aa13-504300410e99] - X-Runtime: ['0.020203'] + X-Request-Id: [38615eee-bf4d-4408-8279-59d68fcac2c0] + X-Runtime: ['0.072120'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} -- cgit v1.2.3 From bc7b9defe8b72b6ab14ade6828a98f4d6e82b1de Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Wed, 18 Apr 2018 22:07:03 +0200 Subject: Attempt 2 at fixing the tests for travis --- tests/cassettes/test_blocks.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'tests/cassettes/test_blocks.yaml') diff --git a/tests/cassettes/test_blocks.yaml b/tests/cassettes/test_blocks.yaml index d273804..47f7366 100644 --- a/tests/cassettes/test_blocks.yaml +++ b/tests/cassettes/test_blocks.yaml @@ -24,4 +24,29 @@ interactions: X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] + Connection: [keep-alive] + User-Agent: [python-requests/2.9.1] + method: GET + uri: http://localhost:3000/api/v1/blocks + response: + body: {string: '[]'} + headers: + Cache-Control: ['max-age=0, private, must-revalidate'] + Content-Type: [application/json; charset=utf-8] + ETag: [W/"e9c7a5e3712556cfa74a43cbf4739108"] + Transfer-Encoding: [chunked] + Vary: ['Accept-Encoding, Origin'] + X-Content-Type-Options: [nosniff] + X-Frame-Options: [SAMEORIGIN] + X-Request-Id: [ffa9347f-aef9-4c91-b9f0-67dc3be19090] + X-Runtime: ['0.061449'] + X-XSS-Protection: [1; mode=block] + content-length: ['2'] + status: {code: 200, message: OK} version: 1 -- cgit v1.2.3 From a15d28d9d60128fd5551f05eccd8999b46f70f5e Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sun, 6 May 2018 01:37:13 +0200 Subject: Testing updates, can now test streaming API --- tests/cassettes/test_blocks.yaml | 31 +++---------------------------- 1 file changed, 3 insertions(+), 28 deletions(-) (limited to 'tests/cassettes/test_blocks.yaml') diff --git a/tests/cassettes/test_blocks.yaml b/tests/cassettes/test_blocks.yaml index 47f7366..e144c20 100644 --- a/tests/cassettes/test_blocks.yaml +++ b/tests/cassettes/test_blocks.yaml @@ -14,38 +14,13 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"fa0308de1a47551bd1dbf139cacd61d7"] + ETag: [W/"f238633ca1aa7ae89cbaa53b672cef3e"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [38615eee-bf4d-4408-8279-59d68fcac2c0] - X-Runtime: ['0.072120'] - X-XSS-Protection: [1; mode=block] - content-length: ['2'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] - Connection: [keep-alive] - User-Agent: [python-requests/2.9.1] - method: GET - uri: http://localhost:3000/api/v1/blocks - response: - body: {string: '[]'} - headers: - Cache-Control: ['max-age=0, private, must-revalidate'] - Content-Type: [application/json; charset=utf-8] - ETag: [W/"e9c7a5e3712556cfa74a43cbf4739108"] - Transfer-Encoding: [chunked] - Vary: ['Accept-Encoding, Origin'] - X-Content-Type-Options: [nosniff] - X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [ffa9347f-aef9-4c91-b9f0-67dc3be19090] - X-Runtime: ['0.061449'] + X-Request-Id: [2ec61920-fbf6-4562-af05-b0fe469f2939] + X-Runtime: ['0.061769'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} -- cgit v1.2.3 From bb92f76e61063bbe59868659fb42824d3649c7b2 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sun, 6 May 2018 03:02:19 +0200 Subject: Refresh casettes and add some new ones --- tests/cassettes/test_blocks.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/cassettes/test_blocks.yaml') diff --git a/tests/cassettes/test_blocks.yaml b/tests/cassettes/test_blocks.yaml index e144c20..00cde23 100644 --- a/tests/cassettes/test_blocks.yaml +++ b/tests/cassettes/test_blocks.yaml @@ -14,13 +14,13 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"f238633ca1aa7ae89cbaa53b672cef3e"] + ETag: [W/"398f838b63494467649c84b1c13d7b5b"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [2ec61920-fbf6-4562-af05-b0fe469f2939] - X-Runtime: ['0.061769'] + X-Request-Id: [f2811297-fa1f-4f11-a812-20ad091d05d5] + X-Runtime: ['0.047853'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} -- cgit v1.2.3