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 | 66 |
1 files changed, 8 insertions, 58 deletions
diff --git a/tests/cassettes/test_log_in_password_to_file.yaml b/tests/cassettes/test_log_in_password_to_file.yaml index f9c4f31..903f7cb 100644 --- a/tests/cassettes/test_log_in_password_to_file.yaml +++ b/tests/cassettes/test_log_in_password_to_file.yaml | |||
@@ -1,6 +1,6 @@ | |||
1 | interactions: | 1 | interactions: |
2 | - request: | 2 | - request: |
3 | body: grant_type=password&client_secret=__MASTODON_PY_TEST_CLIENT_SECRET&password=mastodonadmin&client_id=__MASTODON_PY_TEST_CLIENT_ID&scope=read+write+follow&username=admin%40localhost%3A3000&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob | 3 | body: username=admin%40localhost%3A3000&scope=read+write+follow&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&grant_type=password&client_id=__MASTODON_PY_TEST_CLIENT_ID&password=mastodonadmin&client_secret=__MASTODON_PY_TEST_CLIENT_SECRET |
4 | headers: | 4 | headers: |
5 | Accept: ['*/*'] | 5 | Accept: ['*/*'] |
6 | Accept-Encoding: ['gzip, deflate'] | 6 | Accept-Encoding: ['gzip, deflate'] |
@@ -16,12 +16,12 @@ interactions: | |||
16 | headers: | 16 | headers: |
17 | Cache-Control: [no-store] | 17 | Cache-Control: [no-store] |
18 | Content-Type: [application/json; charset=utf-8] | 18 | Content-Type: [application/json; charset=utf-8] |
19 | ETag: [W/"1b348b4c9ce263bf9ba07b556ffecf02"] | 19 | ETag: [W/"3146bc67569d7c9f332f4bcd447a1d3f"] |
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: [cb8db004-603c-444c-96c2-ca66860e519d] | 23 | X-Request-Id: [63d67f55-d234-4bec-83be-15b5dd799313] |
24 | X-Runtime: ['0.246367'] | 24 | X-Runtime: ['0.128303'] |
25 | content-length: ['126'] | 25 | content-length: ['126'] |
26 | status: {code: 200, message: OK} | 26 | status: {code: 200, message: OK} |
27 | - request: | 27 | - request: |
@@ -35,67 +35,17 @@ 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,"created_at":"2018-04-17T21:40:55.626Z","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":20,"source":{"privacy":"public","sensitive":false,"note":""}}'} | 38 | body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"created_at":"2018-04-17T21:40:55.626Z","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":38,"source":{"privacy":"public","sensitive":false,"note":""}}'} |
39 | headers: | 39 | headers: |
40 | Cache-Control: ['max-age=0, private, must-revalidate'] | 40 | Cache-Control: ['max-age=0, private, must-revalidate'] |
41 | Content-Type: [application/json; charset=utf-8] | 41 | Content-Type: [application/json; charset=utf-8] |
42 | ETag: [W/"7dd90ea85246ecc8842438a59da3a088"] | 42 | ETag: [W/"4744ac665ec260e0cf2992419ea025df"] |
43 | Transfer-Encoding: [chunked] | 43 | Transfer-Encoding: [chunked] |
44 | Vary: ['Accept-Encoding, Origin'] | 44 | Vary: ['Accept-Encoding, Origin'] |
45 | X-Content-Type-Options: [nosniff] | 45 | X-Content-Type-Options: [nosniff] |
46 | X-Frame-Options: [SAMEORIGIN] | 46 | X-Frame-Options: [SAMEORIGIN] |
47 | X-Request-Id: [394d5b9b-5748-4d7c-873f-d885de10f51f] | 47 | X-Request-Id: [f578cb7f-06c2-41d3-bf87-3492db415475] |
48 | X-Runtime: ['0.038229'] | 48 | X-Runtime: ['0.037579'] |
49 | X-XSS-Protection: [1; mode=block] | ||
50 | content-length: ['571'] | ||
51 | status: {code: 200, message: OK} | ||
52 | - request: | ||
53 | body: password=mastodonadmin&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&username=admin%40localhost%3A3000&client_secret=__MASTODON_PY_TEST_CLIENT_SECRET&scope=read+write+follow&grant_type=password&client_id=__MASTODON_PY_TEST_CLIENT_ID | ||
54 | headers: | ||
55 | Accept: ['*/*'] | ||
56 | Accept-Encoding: ['gzip, deflate'] | ||
57 | Connection: [keep-alive] | ||
58 | Content-Length: ['235'] | ||
59 | Content-Type: [application/x-www-form-urlencoded] | ||
60 | User-Agent: [python-requests/2.9.1] | ||
61 | method: POST | ||
62 | uri: http://localhost:3000/oauth/token | ||
63 | response: | ||
64 | body: {string: '{"access_token":"__MASTODON_PY_TEST_ACCESS_TOKEN_2","token_type":"bearer","scope":"read | ||
65 | write follow","created_at":1524081846}'} | ||
66 | headers: | ||
67 | Cache-Control: [no-store] | ||
68 | Content-Type: [application/json; charset=utf-8] | ||
69 | ETag: [W/"c57fcf388c3eb63010fe039f12a02374"] | ||
70 | Pragma: [no-cache] | ||
71 | Transfer-Encoding: [chunked] | ||
72 | Vary: ['Accept-Encoding, Origin'] | ||
73 | X-Request-Id: [1b84affa-2aa1-4d58-a45a-e53c07552d0e] | ||
74 | X-Runtime: ['0.198551'] | ||
75 | content-length: ['126'] | ||
76 | status: {code: 200, message: OK} | ||
77 | - request: | ||
78 | body: null | ||
79 | headers: | ||
80 | Accept: ['*/*'] | ||
81 | Accept-Encoding: ['gzip, deflate'] | ||
82 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2] | ||
83 | Connection: [keep-alive] | ||
84 | User-Agent: [python-requests/2.9.1] | ||
85 | method: GET | ||
86 | uri: http://localhost:3000/api/v1/accounts/verify_credentials | ||
87 | response: | ||
88 | body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"created_at":"2018-04-17T21:40:55.626Z","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":20,"source":{"privacy":"public","sensitive":false,"note":""}}'} | ||
89 | headers: | ||
90 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
91 | Content-Type: [application/json; charset=utf-8] | ||
92 | ETag: [W/"0b553118eec8d82a63321efca0e359ef"] | ||
93 | Transfer-Encoding: [chunked] | ||
94 | Vary: ['Accept-Encoding, Origin'] | ||
95 | X-Content-Type-Options: [nosniff] | ||
96 | X-Frame-Options: [SAMEORIGIN] | ||
97 | X-Request-Id: [aafd9996-aa86-44fc-8b26-49b450adbc36] | ||
98 | X-Runtime: ['0.040936'] | ||
99 | X-XSS-Protection: [1; mode=block] | 49 | X-XSS-Protection: [1; mode=block] |
100 | content-length: ['571'] | 50 | content-length: ['571'] |
101 | status: {code: 200, message: OK} | 51 | status: {code: 200, message: OK} |