From 18c6b3b90ff8bd607df18af86d092ac1205ffbf7 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Tue, 5 Jun 2018 22:10:31 +0200 Subject: New casettes, small fixes --- tests/cassettes/test_list_add_remove_account.yaml | 160 ++++++++++++++-------- 1 file changed, 101 insertions(+), 59 deletions(-) (limited to 'tests/cassettes/test_list_add_remove_account.yaml') diff --git a/tests/cassettes/test_list_add_remove_account.yaml b/tests/cassettes/test_list_add_remove_account.yaml index f1b1989..15d929a 100644 --- a/tests/cassettes/test_list_add_remove_account.yaml +++ b/tests/cassettes/test_list_add_remove_account.yaml @@ -12,17 +12,20 @@ interactions: method: POST uri: http://localhost:3000/api/v1/lists response: - body: {string: '{"id":"8","title":"ham burglars"}'} + body: {string: '{"id":"3","title":"ham burglars"}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"328b76c12db09f0145d7614b4e91e6e7"] + ETag: [W/"bde5505077888aca5d296491d8b152f2"] + Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] + X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [63bf3d48-10c2-4783-81bb-1155a9d061be] - X-Runtime: ['0.081142'] + X-Permitted-Cross-Domain-Policies: [none] + X-Request-Id: [95613d6c-bbca-4d8b-9e63-7eda5c9b287d] + X-Runtime: ['0.078837'] X-XSS-Protection: [1; mode=block] content-length: ['33'] status: {code: 200, message: OK} @@ -37,19 +40,22 @@ interactions: method: GET uri: http://localhost:3000/api/v1/accounts/verify_credentials response: - body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"created_at":"2018-05-06T22:36:57.850Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":3,"source":{"privacy":"public","sensitive":false,"note":""}}'} + body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-06-05T19:58:37.960Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"source":{"privacy":"public","sensitive":false,"note":"","fields":[]},"emojis":[],"fields":[]}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"51219e03abcdd2d127bb724fe0a838d6"] + ETag: [W/"13e690525c13a9baa91204f3d37766d3"] + Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] + X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [ae0a8daf-439e-41a0-8dc0-a1c09d6ba23d] - X-Runtime: ['0.030964'] + X-Permitted-Cross-Domain-Policies: [none] + X-Request-Id: [e87830c8-e61c-4976-9558-a3ec27349b1c] + X-Runtime: ['0.057113'] X-XSS-Protection: [1; mode=block] - content-length: ['570'] + content-length: ['618'] status: {code: 200, message: OK} - request: body: null @@ -67,13 +73,16 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"59cea16408d19a2c8e297a2d876641e2"] + ETag: [W/"594ca73cca2f5b3858f980d2876be423"] + Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] + X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [3e8acee9-a698-429c-8961-e34ede94fd3c] - X-Runtime: ['0.090359'] + X-Permitted-Cross-Domain-Policies: [none] + X-Request-Id: [193fe503-6915-4717-add4-355f4985c7fa] + X-Runtime: ['0.234446'] X-XSS-Protection: [1; mode=block] content-length: ['174'] status: {code: 200, message: OK} @@ -88,19 +97,22 @@ interactions: Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST - uri: http://localhost:3000/api/v1/lists/8/accounts + uri: http://localhost:3000/api/v1/lists/3/accounts response: body: {string: '{}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"6bb4ddcbb13629baf8bc211517f0439b"] + ETag: [W/"be789cced1cf6f3b9b169fcd8f78983a"] + Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] + X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [13e80769-a2d4-457d-a00a-147b8cad42a6] - X-Runtime: ['0.042176'] + X-Permitted-Cross-Domain-Policies: [none] + X-Request-Id: [0ff8ad28-45bc-47f9-9ce7-28e255b6381d] + X-Runtime: ['0.195713'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -113,22 +125,25 @@ interactions: Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET - uri: http://localhost:3000/api/v1/lists/8/accounts + uri: http://localhost:3000/api/v1/lists/3/accounts response: - body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"created_at":"2018-05-06T22:36:57.850Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":3}]'} + body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-06-05T19:58:37.960Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":0,"emojis":[],"fields":[]}]'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"cc3727947221dba281a057c2b702bc8d"] - Link: ['; rel="prev"'] + ETag: [W/"07551ac8055da6dd5d355f8aad21fc4c"] + Link: ['; rel="prev"'] + Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] + X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [64a33c58-870d-48c3-b39e-e5dda36b83be] - X-Runtime: ['0.022297'] + X-Permitted-Cross-Domain-Policies: [none] + X-Request-Id: [42f84919-12f9-4e03-8d35-ec6eb725034a] + X-Runtime: ['0.078360'] X-XSS-Protection: [1; mode=block] - content-length: ['514'] + content-length: ['550'] status: {code: 200, message: OK} - request: body: null @@ -146,13 +161,16 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"154a16f1bddeede929a23e7fcee2a4dc"] + ETag: [W/"ecba6a18a8cb8442f0079a10ff3fbbf0"] + Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] + X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [6afceb5e-79b2-4241-8cca-c5eebd49155c] - X-Runtime: ['0.042518'] + X-Permitted-Cross-Domain-Policies: [none] + X-Request-Id: [5bd3f41f-72f1-4528-87fb-c1a84d488d3a] + X-Runtime: ['0.140527'] X-XSS-Protection: [1; mode=block] content-length: ['175'] status: {code: 200, message: OK} @@ -165,19 +183,22 @@ interactions: Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET - uri: http://localhost:3000/api/v1/lists/8/accounts + uri: http://localhost:3000/api/v1/lists/3/accounts response: body: {string: '[]'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"63ae851c512de5986836516ffcb2575a"] + ETag: [W/"066c06a3289a5697d51f5e8a39d6c906"] + Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] + X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [b991d96f-ad03-4377-ae07-7cc2ee81b88f] - X-Runtime: ['0.025365'] + X-Permitted-Cross-Domain-Policies: [none] + X-Request-Id: [a973e6dd-fa10-4d3e-b204-0f474621472e] + X-Runtime: ['0.055322'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -197,13 +218,16 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"59cea16408d19a2c8e297a2d876641e2"] + ETag: [W/"5b25f6a87748efb778aab093f8a05626"] + Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] + X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [545d42a3-73f4-4e9d-b015-1b49347a494c] - X-Runtime: ['0.096240'] + X-Permitted-Cross-Domain-Policies: [none] + X-Request-Id: [a06e8b28-8724-451e-8378-715eb7d98d72] + X-Runtime: ['0.210418'] X-XSS-Protection: [1; mode=block] content-length: ['174'] status: {code: 200, message: OK} @@ -218,19 +242,22 @@ interactions: Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: POST - uri: http://localhost:3000/api/v1/lists/8/accounts + uri: http://localhost:3000/api/v1/lists/3/accounts response: body: {string: '{}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"6bb4ddcbb13629baf8bc211517f0439b"] + ETag: [W/"be789cced1cf6f3b9b169fcd8f78983a"] + Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] + X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [2e7487a6-95e4-4d42-9494-ff7d1ac07af4] - X-Runtime: ['0.048526'] + X-Permitted-Cross-Domain-Policies: [none] + X-Request-Id: [6a6fe4f4-f15b-4d37-849c-e28cf491e81f] + X-Runtime: ['0.090445'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -243,22 +270,25 @@ interactions: Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET - uri: http://localhost:3000/api/v1/lists/8/accounts + uri: http://localhost:3000/api/v1/lists/3/accounts response: - body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"created_at":"2018-05-06T22:36:57.850Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":3}]'} + body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-06-05T19:58:37.960Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":0,"emojis":[],"fields":[]}]'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"cc3727947221dba281a057c2b702bc8d"] - Link: ['; rel="prev"'] + ETag: [W/"07551ac8055da6dd5d355f8aad21fc4c"] + Link: ['; rel="prev"'] + Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] + X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [5f326dcc-b014-477e-8f08-078d29165781] - X-Runtime: ['0.024821'] + X-Permitted-Cross-Domain-Policies: [none] + X-Request-Id: [798c8097-973a-4131-bf67-d5c9eaead3ce] + X-Runtime: ['0.097808'] X-XSS-Protection: [1; mode=block] - content-length: ['514'] + content-length: ['550'] status: {code: 200, message: OK} - request: body: account_ids%5B%5D=1 @@ -271,19 +301,22 @@ interactions: Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.9.1] method: DELETE - uri: http://localhost:3000/api/v1/lists/8/accounts + uri: http://localhost:3000/api/v1/lists/3/accounts response: body: {string: '{}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"6bb4ddcbb13629baf8bc211517f0439b"] + ETag: [W/"be789cced1cf6f3b9b169fcd8f78983a"] + Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] + X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [6878937f-0332-4712-8231-9df81780f4cc] - X-Runtime: ['0.023186'] + X-Permitted-Cross-Domain-Policies: [none] + X-Request-Id: [c5da21cf-6663-4ab7-bb1a-6682696fecaf] + X-Runtime: ['0.116511'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -296,19 +329,22 @@ interactions: Connection: [keep-alive] User-Agent: [python-requests/2.9.1] method: GET - uri: http://localhost:3000/api/v1/lists/8/accounts + uri: http://localhost:3000/api/v1/lists/3/accounts response: body: {string: '[]'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"63ae851c512de5986836516ffcb2575a"] + ETag: [W/"ec7d48a48a179065469d220bf9c93b19"] + Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] + X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [d8cf47a2-eca7-4b83-a7eb-c5d04f0cbb53] - X-Runtime: ['0.033156'] + X-Permitted-Cross-Domain-Policies: [none] + X-Request-Id: [329c21b7-d696-4be7-9b01-444ef0a4218e] + X-Runtime: ['0.090281'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} @@ -328,13 +364,16 @@ interactions: headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"154a16f1bddeede929a23e7fcee2a4dc"] + ETag: [W/"a568ec71044d7f152116322ab4a1a571"] + Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] + X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [ad5ec800-caff-4768-bff8-7fc90dd880f8] - X-Runtime: ['0.049595'] + X-Permitted-Cross-Domain-Policies: [none] + X-Request-Id: [6ad7fefb-a2d7-4c30-991c-a158a714cbe9] + X-Runtime: ['0.146337'] X-XSS-Protection: [1; mode=block] content-length: ['175'] status: {code: 200, message: OK} @@ -348,19 +387,22 @@ interactions: Content-Length: ['0'] User-Agent: [python-requests/2.9.1] method: DELETE - uri: http://localhost:3000/api/v1/lists/8 + uri: http://localhost:3000/api/v1/lists/3 response: body: {string: '{}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"6bb4ddcbb13629baf8bc211517f0439b"] + ETag: [W/"1bcae3c8085c32f992827719e2ff0cdf"] + Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] + X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [42fc2f7d-ca92-4825-bcbb-22e995174844] - X-Runtime: ['0.028578'] + X-Permitted-Cross-Domain-Policies: [none] + X-Request-Id: [1f5cc011-fa34-48a5-a8dd-598575d1d012] + X-Runtime: ['0.083378'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} -- cgit v1.2.3