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 | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/tests/cassettes/test_log_in_password_to_file.yaml b/tests/cassettes/test_log_in_password_to_file.yaml index 76d18a2..d4ed695 100644 --- a/tests/cassettes/test_log_in_password_to_file.yaml +++ b/tests/cassettes/test_log_in_password_to_file.yaml | |||
@@ -1,27 +1,27 @@ | |||
1 | interactions: | 1 | interactions: |
2 | - request: | 2 | - request: |
3 | body: redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&password=mastodonadmin&username=admin%40localhost%3A3000&grant_type=password&client_id=__MASTODON_PY_TEST_CLIENT_ID&client_secret=__MASTODON_PY_TEST_CLIENT_SECRET&scope=read+write+follow+push | 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 |
4 | headers: | 4 | headers: |
5 | Accept: ['*/*'] | 5 | Accept: ['*/*'] |
6 | Accept-Encoding: ['gzip, deflate'] | 6 | Accept-Encoding: ['gzip, deflate'] |
7 | Connection: [keep-alive] | 7 | Connection: [keep-alive] |
8 | Content-Length: ['240'] | 8 | Content-Length: ['233'] |
9 | Content-Type: [application/x-www-form-urlencoded] | 9 | Content-Type: [application/x-www-form-urlencoded] |
10 | User-Agent: [python-requests/2.18.4] | 10 | User-Agent: [python-requests/2.18.4] |
11 | method: POST | 11 | method: POST |
12 | uri: http://localhost:3000/oauth/token | 12 | uri: http://localhost:3000/oauth/token |
13 | response: | 13 | response: |
14 | body: {string: '{"access_token":"__MASTODON_PY_TEST_ACCESS_TOKEN_2","token_type":"Bearer","scope":"read | 14 | body: {string: '{"access_token":"__MASTODON_PY_TEST_ACCESS_TOKEN_2","token_type":"Bearer","scope":"read |
15 | write follow push","created_at":1556398580}'} | 15 | write follow push","created_at":1561214788}'} |
16 | headers: | 16 | headers: |
17 | Cache-Control: ['private, no-store'] | 17 | Cache-Control: ['private, no-store'] |
18 | Content-Type: [application/json; charset=utf-8] | 18 | Content-Type: [application/json; charset=utf-8] |
19 | ETag: [W/"e07660394b0fd53ff74e0468c46350d6"] | 19 | ETag: [W/"24c702c892d562d104453293f6d8ab58"] |
20 | Pragma: [no-cache] | 20 | Pragma: [no-cache] |
21 | Transfer-Encoding: [chunked] | 21 | Transfer-Encoding: [chunked] |
22 | Vary: ['Accept-Encoding, Origin'] | 22 | Vary: ['Accept-Encoding, Origin'] |
23 | X-Request-Id: [be2f63a6-9485-42fa-b443-98572e2072bf] | 23 | X-Request-Id: [c3017f47-0494-4f94-ab7e-fcfa3f9ccff1] |
24 | X-Runtime: ['0.062174'] | 24 | X-Runtime: ['0.067294'] |
25 | content-length: ['131'] | 25 | content-length: ['131'] |
26 | status: {code: 200, message: OK} | 26 | status: {code: 200, message: OK} |
27 | - request: | 27 | - request: |
@@ -35,11 +35,10 @@ interactions: | |||
35 | method: GET | 35 | method: GET |
36 | uri: http://localhost:3000/api/v1/accounts/verify_credentials | 36 | uri: http://localhost:3000/api/v1/accounts/verify_credentials |
37 | response: | 37 | response: |
38 | body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-04-27T18:52:42.626Z","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,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[]},"emojis":[],"fields":[]}'} | 38 | body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","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":3,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[]},"emojis":[],"fields":[]}'} |
39 | headers: | 39 | headers: |
40 | Cache-Control: ['max-age=0, private, must-revalidate'] | 40 | Cache-Control: ['no-cache, no-store'] |
41 | Content-Type: [application/json; charset=utf-8] | 41 | Content-Type: [application/json; charset=utf-8] |
42 | ETag: [W/"ef0905262d6a98baf18f8430e875d51f"] | ||
43 | Referrer-Policy: [strict-origin-when-cross-origin] | 42 | Referrer-Policy: [strict-origin-when-cross-origin] |
44 | Transfer-Encoding: [chunked] | 43 | Transfer-Encoding: [chunked] |
45 | Vary: ['Accept-Encoding, Origin'] | 44 | Vary: ['Accept-Encoding, Origin'] |
@@ -47,8 +46,8 @@ interactions: | |||
47 | X-Download-Options: [noopen] | 46 | X-Download-Options: [noopen] |
48 | X-Frame-Options: [SAMEORIGIN] | 47 | X-Frame-Options: [SAMEORIGIN] |
49 | X-Permitted-Cross-Domain-Policies: [none] | 48 | X-Permitted-Cross-Domain-Policies: [none] |
50 | X-Request-Id: [1a9e6f5c-ce19-415a-935a-c2492a829fe9] | 49 | X-Request-Id: [ed77c025-4ba4-4c88-bc2c-9ac710e12d7c] |
51 | X-Runtime: ['0.136161'] | 50 | X-Runtime: ['0.022156'] |
52 | X-XSS-Protection: [1; mode=block] | 51 | X-XSS-Protection: [1; mode=block] |
53 | content-length: ['609'] | 52 | content-length: ['609'] |
54 | status: {code: 200, message: OK} | 53 | status: {code: 200, message: OK} |