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.yaml54
1 files changed, 26 insertions, 28 deletions
diff --git a/tests/cassettes/test_log_in_password_to_file.yaml b/tests/cassettes/test_log_in_password_to_file.yaml
index 32abfdc..8b22fe5 100644
--- a/tests/cassettes/test_log_in_password_to_file.yaml
+++ b/tests/cassettes/test_log_in_password_to_file.yaml
@@ -1,54 +1,52 @@
1interactions: 1interactions:
2- request: 2- request:
3 body: !!python/unicode username=admin%40localhost%3A3000&password=mastodonadmin&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&client_id=__MASTODON_PY_TEST_CLIENT_ID&scope=read+write+follow&client_secret=__MASTODON_PY_TEST_CLIENT_SECRET&grant_type=password 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
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: ['235'] 8 Content-Length: ['235']
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.9.1]
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: !!python/unicode '{"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","created_at":1511992220}'} 15 write follow","created_at":1524081846}'}
16 headers: 16 headers:
17 cache-control: [no-store] 17 Cache-Control: [no-store]
18 Content-Type: [application/json; charset=utf-8]
19 ETag: [W/"1b348b4c9ce263bf9ba07b556ffecf02"]
20 Pragma: [no-cache]
21 Transfer-Encoding: [chunked]
22 Vary: ['Accept-Encoding, Origin']
23 X-Request-Id: [cb8db004-603c-444c-96c2-ca66860e519d]
24 X-Runtime: ['0.246367']
18 content-length: ['126'] 25 content-length: ['126']
19 content-type: [application/json; charset=utf-8]
20 etag: [W/"d69940161df215958096efeb1a959d12"]
21 pragma: [no-cache]
22 transfer-encoding: [chunked]
23 vary: ['Accept-Encoding, Origin']
24 x-request-id: [a05d2bef-1d32-4857-97b5-6cc4136dfd29]
25 x-runtime: ['0.205660']
26 status: {code: 200, message: OK} 26 status: {code: 200, message: OK}
27- request: 27- request:
28 body: null 28 body: null
29 headers: 29 headers:
30 Accept: ['*/*'] 30 Accept: ['*/*']
31 Accept-Encoding: ['gzip, deflate'] 31 Accept-Encoding: ['gzip, deflate']
32 Authorization: [!!python/unicode Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2] 32 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
33 Connection: [keep-alive] 33 Connection: [keep-alive]
34 User-Agent: [python-requests/2.18.4] 34 User-Agent: [python-requests/2.9.1]
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: !!python/unicode '{"id":"1","username":"admin","acct":"admin","display_name":"codltest","locked":false,"created_at":"2017-07-01T17:09:15.621Z","note":"\u003cp\u003ehello 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":""}}'}
39 :)\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/system/accounts/avatars/000/000/001/original/99b4c443463de195.png","avatar_static":"http://localhost:3000/system/accounts/avatars/000/000/001/original/99b4c443463de195.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":50,"source":{"privacy":"public","sensitive":false,"note":"hello
40 :)"}}'}
41 headers: 39 headers:
42 cache-control: ['max-age=0, private, must-revalidate'] 40 Cache-Control: ['max-age=0, private, must-revalidate']
43 content-length: ['669'] 41 Content-Type: [application/json; charset=utf-8]
44 content-type: [application/json; charset=utf-8] 42 ETag: [W/"7dd90ea85246ecc8842438a59da3a088"]
45 etag: [W/"05183e2c68a77cfb9877fc356465a322"] 43 Transfer-Encoding: [chunked]
46 transfer-encoding: [chunked] 44 Vary: ['Accept-Encoding, Origin']
47 vary: ['Accept-Encoding, Origin'] 45 X-Content-Type-Options: [nosniff]
48 x-content-type-options: [nosniff] 46 X-Frame-Options: [SAMEORIGIN]
49 x-frame-options: [SAMEORIGIN] 47 X-Request-Id: [394d5b9b-5748-4d7c-873f-d885de10f51f]
50 x-request-id: [0cdc8a2f-6deb-4437-bd96-4e7178e1b9cd] 48 X-Runtime: ['0.038229']
51 x-runtime: ['0.230997'] 49 X-XSS-Protection: [1; mode=block]
52 x-xss-protection: [1; mode=block] 50 content-length: ['571']
53 status: {code: 200, message: OK} 51 status: {code: 200, message: OK}
54version: 1 52version: 1
Powered by cgit v1.2.3 (git 2.41.0)