diff options
Diffstat (limited to 'tests/cassettes/test_log_in_password_to_file.yaml')
-rw-r--r-- | tests/cassettes/test_log_in_password_to_file.yaml | 147 |
1 files changed, 108 insertions, 39 deletions
diff --git a/tests/cassettes/test_log_in_password_to_file.yaml b/tests/cassettes/test_log_in_password_to_file.yaml index f55ea35..0b89eb2 100644 --- a/tests/cassettes/test_log_in_password_to_file.yaml +++ b/tests/cassettes/test_log_in_password_to_file.yaml | |||
@@ -1,54 +1,123 @@ | |||
1 | interactions: | 1 | interactions: |
2 | - request: | 2 | - request: |
3 | body: redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&password=mastodonadmin&username=admin%40localhost&grant_type=password&client_id=__MASTODON_PY_TEST_CLIENT_ID&client_secret=__MASTODON_PY_TEST_CLIENT_SECRET&scope=read+write+follow+push | 3 | body: username=mastodonpy_test_2%40localhost%3A3000&password=5fc638e0e53eafd9c4145b6bb852667d&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&grant_type=password&client_id=__MASTODON_PY_TEST_CLIENT_ID&client_secret=__MASTODON_PY_TEST_CLIENT_SECRET&scope=read+write+follow+push |
4 | headers: | 4 | headers: |
5 | Accept: ['*/*'] | 5 | Accept: |
6 | Accept-Encoding: ['gzip, deflate'] | 6 | - '*/*' |
7 | Connection: [keep-alive] | 7 | Accept-Encoding: |
8 | Content-Length: ['233'] | 8 | - gzip, deflate |
9 | Content-Type: [application/x-www-form-urlencoded] | 9 | Connection: |
10 | User-Agent: [python-requests/2.18.4] | 10 | - keep-alive |
11 | Content-Length: | ||
12 | - '271' | ||
13 | Content-Type: | ||
14 | - application/x-www-form-urlencoded | ||
15 | User-Agent: | ||
16 | - tests/v311 | ||
11 | method: POST | 17 | method: POST |
12 | uri: http://localhost:3000/oauth/token | 18 | uri: http://localhost:3000/oauth/token |
13 | response: | 19 | response: |
14 | body: {string: '{"access_token":"8HT6e0UoIMVsZXZX5-8nKUrJZ2hlJV-342ZmNdapLIY","token_type":"Bearer","scope":"read | 20 | body: |
15 | write follow push","created_at":1582399688}'} | 21 | string: '{"access_token":"__MASTODON_PY_TEST_ACCESS_TOKEN_3","token_type":"Bearer","scope":"read |
22 | write follow push","created_at":1667857984}' | ||
16 | headers: | 23 | headers: |
17 | Cache-Control: ['private, no-store'] | 24 | Cache-Control: |
18 | Content-Type: [application/json; charset=utf-8] | 25 | - no-store |
19 | ETag: [W/"52edd43f3030dbcd4a75203eea055dd0"] | 26 | Content-Security-Policy: |
20 | Pragma: [no-cache] | 27 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
21 | Transfer-Encoding: [chunked] | 28 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
22 | Vary: ['Accept-Encoding, Origin'] | 29 | style-src ''self'' http://localhost:3000 ''nonce-i7A22W+jBELFqWqQRxRz+g==''; |
23 | X-Request-Id: [7697174c-36aa-4dc8-be5e-562ad8731250] | 30 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
24 | X-Runtime: ['0.176296'] | 31 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
25 | content-length: ['141'] | 32 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
26 | status: {code: 200, message: OK} | 33 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
34 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; | ||
35 | worker-src ''self'' blob: http://localhost:3000' | ||
36 | Content-Type: | ||
37 | - application/json; charset=utf-8 | ||
38 | ETag: | ||
39 | - W/"a829fbcc22aebfeb6f9f67bfe13a6f4a" | ||
40 | Pragma: | ||
41 | - no-cache | ||
42 | Referrer-Policy: | ||
43 | - strict-origin-when-cross-origin | ||
44 | Transfer-Encoding: | ||
45 | - chunked | ||
46 | Vary: | ||
47 | - Accept, Origin | ||
48 | X-Content-Type-Options: | ||
49 | - nosniff | ||
50 | X-Download-Options: | ||
51 | - noopen | ||
52 | X-Frame-Options: | ||
53 | - SAMEORIGIN | ||
54 | X-Permitted-Cross-Domain-Policies: | ||
55 | - none | ||
56 | X-Request-Id: | ||
57 | - c60b8bbe-6d9d-465e-b4dc-cb277aa2b279 | ||
58 | X-Runtime: | ||
59 | - '0.050560' | ||
60 | X-XSS-Protection: | ||
61 | - 1; mode=block | ||
62 | status: | ||
63 | code: 200 | ||
64 | message: OK | ||
27 | - request: | 65 | - request: |
28 | body: null | 66 | body: null |
29 | headers: | 67 | headers: |
30 | Accept: ['*/*'] | 68 | Accept: |
31 | Accept-Encoding: ['gzip, deflate'] | 69 | - '*/*' |
32 | Authorization: [Bearer 8HT6e0UoIMVsZXZX5-8nKUrJZ2hlJV-342ZmNdapLIY] | 70 | Accept-Encoding: |
33 | Connection: [keep-alive] | 71 | - gzip, deflate |
34 | User-Agent: [python-requests/2.18.4] | 72 | Authorization: |
73 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_3 | ||
74 | Connection: | ||
75 | - keep-alive | ||
76 | User-Agent: | ||
77 | - tests/v311 | ||
35 | method: GET | 78 | method: GET |
36 | uri: http://localhost:3000/api/v1/accounts/verify_credentials | 79 | uri: http://localhost:3000/api/v1/accounts/verify_credentials |
37 | response: | 80 | response: |
38 | body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":null,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[]}'} | 81 | body: |
82 | string: '{"id":"1234567890123457","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":false,"bot":false,"discoverable":true,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test_2","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,"last_status_at":null,"noindex":false,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[],"role":{"id":"-99","name":"","permissions":"65536","color":"","highlighted":false}}' | ||
39 | headers: | 83 | headers: |
40 | Cache-Control: ['no-cache, no-store'] | 84 | Cache-Control: |
41 | Content-Type: [application/json; charset=utf-8] | 85 | - no-store |
42 | Referrer-Policy: [strict-origin-when-cross-origin] | 86 | Content-Security-Policy: |
43 | Transfer-Encoding: [chunked] | 87 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
44 | Vary: ['Accept-Encoding, Origin'] | 88 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
45 | X-Content-Type-Options: [nosniff] | 89 | style-src ''self'' http://localhost:3000 ''nonce-VtURbh4D9ZA4ukvjxMXFgA==''; |
46 | X-Download-Options: [noopen] | 90 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
47 | X-Frame-Options: [SAMEORIGIN] | 91 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
48 | X-Permitted-Cross-Domain-Policies: [none] | 92 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
49 | X-Request-Id: [624510bd-df0c-433b-88df-69491042becc] | 93 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
50 | X-Runtime: ['0.082342'] | 94 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
51 | X-XSS-Protection: [1; mode=block] | 95 | worker-src ''self'' blob: http://localhost:3000' |
52 | content-length: ['691'] | 96 | Content-Type: |
53 | status: {code: 200, message: OK} | 97 | - application/json; charset=utf-8 |
98 | ETag: | ||
99 | - W/"754227f74fd08a8045abf9b17628a9e4" | ||
100 | Referrer-Policy: | ||
101 | - strict-origin-when-cross-origin | ||
102 | Transfer-Encoding: | ||
103 | - chunked | ||
104 | Vary: | ||
105 | - Accept, Origin | ||
106 | X-Content-Type-Options: | ||
107 | - nosniff | ||
108 | X-Download-Options: | ||
109 | - noopen | ||
110 | X-Frame-Options: | ||
111 | - SAMEORIGIN | ||
112 | X-Permitted-Cross-Domain-Policies: | ||
113 | - none | ||
114 | X-Request-Id: | ||
115 | - 40f91ca9-86b4-4a64-a1dc-13a93ea440c7 | ||
116 | X-Runtime: | ||
117 | - '0.018108' | ||
118 | X-XSS-Protection: | ||
119 | - 1; mode=block | ||
120 | status: | ||
121 | code: 200 | ||
122 | message: OK | ||
54 | version: 1 | 123 | version: 1 |