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_domain_block_unblock.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/cassettes/test_domain_block_unblock.yaml') diff --git a/tests/cassettes/test_domain_block_unblock.yaml b/tests/cassettes/test_domain_block_unblock.yaml index e60b12b..10f6c9d 100644 --- a/tests/cassettes/test_domain_block_unblock.yaml +++ b/tests/cassettes/test_domain_block_unblock.yaml @@ -8,7 +8,7 @@ interactions: Connection: [keep-alive] Content-Length: ['18'] Content-Type: [application/x-www-form-urlencoded] - User-Agent: [python-requests/2.18.4] + User-Agent: [python-requests/2.9.1] method: POST uri: http://localhost:3000/api/v1/domain_blocks response: @@ -16,13 +16,13 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"fe7f6d5b13e22f37fb57de6e31e0ef11"] + ETag: [W/"22373afedef13443fef6492eb2a68e66"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [cb5c8333-c6bd-41c3-bdfd-d6c974ea7d2b] - X-Runtime: ['0.059619'] + X-Request-Id: [370cc1f2-0f3b-409b-8982-53c364cda688] + X-Runtime: ['0.090108'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -35,7 +35,7 @@ interactions: Connection: [keep-alive] Content-Length: ['18'] Content-Type: [application/x-www-form-urlencoded] - User-Agent: [python-requests/2.18.4] + User-Agent: [python-requests/2.9.1] method: DELETE uri: http://localhost:3000/api/v1/domain_blocks response: @@ -43,13 +43,13 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"fe7f6d5b13e22f37fb57de6e31e0ef11"] + ETag: [W/"22373afedef13443fef6492eb2a68e66"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [56395cbf-814c-4e57-97fd-2c44592211aa] - X-Runtime: ['0.019281'] + X-Request-Id: [c928efd5-9595-4ba6-a659-59751788b6e2] + X-Runtime: ['0.060232'] 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_domain_block_unblock.yaml | 54 ++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) (limited to 'tests/cassettes/test_domain_block_unblock.yaml') diff --git a/tests/cassettes/test_domain_block_unblock.yaml b/tests/cassettes/test_domain_block_unblock.yaml index 10f6c9d..319817a 100644 --- a/tests/cassettes/test_domain_block_unblock.yaml +++ b/tests/cassettes/test_domain_block_unblock.yaml @@ -53,4 +53,58 @@ interactions: X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} +- request: + body: domain=example.com + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] + Connection: [keep-alive] + Content-Length: ['18'] + Content-Type: [application/x-www-form-urlencoded] + User-Agent: [python-requests/2.9.1] + method: POST + uri: http://localhost:3000/api/v1/domain_blocks + response: + body: {string: '{}'} + headers: + Cache-Control: ['max-age=0, private, must-revalidate'] + Content-Type: [application/json; charset=utf-8] + ETag: [W/"ebde216f2328956515154640c4a2b85b"] + Transfer-Encoding: [chunked] + Vary: ['Accept-Encoding, Origin'] + X-Content-Type-Options: [nosniff] + X-Frame-Options: [SAMEORIGIN] + X-Request-Id: [22d5b06e-ba87-40b2-be5a-6f7b260ab17a] + X-Runtime: ['0.120367'] + X-XSS-Protection: [1; mode=block] + content-length: ['2'] + status: {code: 200, message: OK} +- request: + body: domain=example.com + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] + Connection: [keep-alive] + Content-Length: ['18'] + Content-Type: [application/x-www-form-urlencoded] + User-Agent: [python-requests/2.9.1] + method: DELETE + uri: http://localhost:3000/api/v1/domain_blocks + response: + body: {string: '{}'} + headers: + Cache-Control: ['max-age=0, private, must-revalidate'] + Content-Type: [application/json; charset=utf-8] + ETag: [W/"ebde216f2328956515154640c4a2b85b"] + Transfer-Encoding: [chunked] + Vary: ['Accept-Encoding, Origin'] + X-Content-Type-Options: [nosniff] + X-Frame-Options: [SAMEORIGIN] + X-Request-Id: [be79c3b1-4d44-4462-8f01-eec3100f6846] + X-Runtime: ['0.086647'] + 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_domain_block_unblock.yaml | 66 +++----------------------- 1 file changed, 6 insertions(+), 60 deletions(-) (limited to 'tests/cassettes/test_domain_block_unblock.yaml') diff --git a/tests/cassettes/test_domain_block_unblock.yaml b/tests/cassettes/test_domain_block_unblock.yaml index 319817a..d595c36 100644 --- a/tests/cassettes/test_domain_block_unblock.yaml +++ b/tests/cassettes/test_domain_block_unblock.yaml @@ -16,13 +16,13 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"22373afedef13443fef6492eb2a68e66"] + ETag: [W/"0701583423fc411927a998269cc998b6"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [370cc1f2-0f3b-409b-8982-53c364cda688] - X-Runtime: ['0.090108'] + X-Request-Id: [2305d5f0-c15f-4fb3-9d07-657941c059a7] + X-Runtime: ['0.183163'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -43,67 +43,13 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"22373afedef13443fef6492eb2a68e66"] + ETag: [W/"0701583423fc411927a998269cc998b6"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [c928efd5-9595-4ba6-a659-59751788b6e2] - X-Runtime: ['0.060232'] - X-XSS-Protection: [1; mode=block] - content-length: ['2'] - status: {code: 200, message: OK} -- request: - body: domain=example.com - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] - Connection: [keep-alive] - Content-Length: ['18'] - Content-Type: [application/x-www-form-urlencoded] - User-Agent: [python-requests/2.9.1] - method: POST - uri: http://localhost:3000/api/v1/domain_blocks - response: - body: {string: '{}'} - headers: - Cache-Control: ['max-age=0, private, must-revalidate'] - Content-Type: [application/json; charset=utf-8] - ETag: [W/"ebde216f2328956515154640c4a2b85b"] - Transfer-Encoding: [chunked] - Vary: ['Accept-Encoding, Origin'] - X-Content-Type-Options: [nosniff] - X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [22d5b06e-ba87-40b2-be5a-6f7b260ab17a] - X-Runtime: ['0.120367'] - X-XSS-Protection: [1; mode=block] - content-length: ['2'] - status: {code: 200, message: OK} -- request: - body: domain=example.com - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] - Connection: [keep-alive] - Content-Length: ['18'] - Content-Type: [application/x-www-form-urlencoded] - User-Agent: [python-requests/2.9.1] - method: DELETE - uri: http://localhost:3000/api/v1/domain_blocks - response: - body: {string: '{}'} - headers: - Cache-Control: ['max-age=0, private, must-revalidate'] - Content-Type: [application/json; charset=utf-8] - ETag: [W/"ebde216f2328956515154640c4a2b85b"] - Transfer-Encoding: [chunked] - Vary: ['Accept-Encoding, Origin'] - X-Content-Type-Options: [nosniff] - X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [be79c3b1-4d44-4462-8f01-eec3100f6846] - X-Runtime: ['0.086647'] + X-Request-Id: [19dffabc-5e33-4ca7-a31e-1b21239a7815] + X-Runtime: ['0.037449'] 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_domain_block_unblock.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/cassettes/test_domain_block_unblock.yaml') diff --git a/tests/cassettes/test_domain_block_unblock.yaml b/tests/cassettes/test_domain_block_unblock.yaml index d595c36..8d5874a 100644 --- a/tests/cassettes/test_domain_block_unblock.yaml +++ b/tests/cassettes/test_domain_block_unblock.yaml @@ -16,13 +16,13 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"0701583423fc411927a998269cc998b6"] + ETag: [W/"7450e41af88d5294b91dd2d498b116ae"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [2305d5f0-c15f-4fb3-9d07-657941c059a7] - X-Runtime: ['0.183163'] + X-Request-Id: [93ff5724-ddcf-4537-8c18-fa82ff4a7778] + X-Runtime: ['0.068193'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -43,13 +43,13 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"0701583423fc411927a998269cc998b6"] + ETag: [W/"7450e41af88d5294b91dd2d498b116ae"] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [19dffabc-5e33-4ca7-a31e-1b21239a7815] - X-Runtime: ['0.037449'] + X-Request-Id: [7855daf2-e300-4696-8934-daef465f275c] + X-Runtime: ['0.024385'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} -- cgit v1.2.3