aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_log_in_password_to_file.yaml')
-rw-r--r--tests/cassettes/test_log_in_password_to_file.yaml52
1 files changed, 52 insertions, 0 deletions
diff --git a/tests/cassettes/test_log_in_password_to_file.yaml b/tests/cassettes/test_log_in_password_to_file.yaml
new file mode 100644
index 0000000..f26590c
--- /dev/null
+++ b/tests/cassettes/test_log_in_password_to_file.yaml
@@ -0,0 +1,52 @@
1interactions:
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_ID&client_secret=__MASTODON_PY_TEST_SECRET&scope=read+write+follow
4 headers:
5 Accept: ['*/*']
6 Accept-Encoding: ['gzip, deflate']
7 Connection: [keep-alive]
8 Content-Length: ['221']
9 Content-Type: [application/x-www-form-urlencoded]
10 User-Agent: [python-requests/2.18.4]
11 method: POST
12 uri: http://localhost:3000/oauth/token
13 response:
14 body: {string: '{"access_token":"__MASTODON_PY_TEST_TOKEN","token_type":"bearer","scope":"read
15 write follow","created_at":1511814180}'}
16 headers:
17 Cache-Control: [no-store]
18 Content-Type: [application/json; charset=utf-8]
19 ETag: [W/"f77400f50590c94b55a861fb6d432464"]
20 Pragma: [no-cache]
21 Transfer-Encoding: [chunked]
22 Vary: ['Accept-Encoding, Origin']
23 X-Request-Id: [b6168343-dd9e-4a0f-9ec4-69a1de8f879a]
24 X-Runtime: ['0.080069']
25 content-length: ['117']
26 status: {code: 200, message: OK}
27- request:
28 body: null
29 headers:
30 Accept: ['*/*']
31 Accept-Encoding: ['gzip, deflate']
32 Authorization: [Bearer __MASTODON_PY_TEST_TOKEN]
33 Connection: [keep-alive]
34 User-Agent: [python-requests/2.18.4]
35 method: GET
36 uri: http://localhost:3000/api/v1/accounts/verify_credentials
37 response:
38 body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"admin","locked":false,"created_at":"2017-08-02T04:15:27.248Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/system/accounts/avatars/000/000/001/original/69910b47243ddb47.png","avatar_static":"http://localhost:3000/system/accounts/avatars/000/000/001/original/69910b47243ddb47.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":2,"following_count":1,"statuses_count":16,"source":{"privacy":"public","sensitive":false,"note":""}}'}
39 headers:
40 Cache-Control: ['max-age=0, private, must-revalidate']
41 Content-Type: [application/json; charset=utf-8]
42 ETag: [W/"622f72a29f8398775e2abff7cd51dbac"]
43 Transfer-Encoding: [chunked]
44 Vary: ['Accept-Encoding, Origin']
45 X-Content-Type-Options: [nosniff]
46 X-Frame-Options: [SAMEORIGIN]
47 X-Request-Id: [3852d894-50be-4342-a0e6-f9df2ddf5926]
48 X-Runtime: ['0.029510']
49 X-XSS-Protection: [1; mode=block]
50 content-length: ['650']
51 status: {code: 200, message: OK}
52version: 1
Powered by cgit v1.2.3 (git 2.41.0)