aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_verify_credentials.yaml')
-rw-r--r--tests/cassettes/test_verify_credentials.yaml142
1 files changed, 102 insertions, 40 deletions
diff --git a/tests/cassettes/test_verify_credentials.yaml b/tests/cassettes/test_verify_credentials.yaml
index 87a3f36..9f4d7a9 100644
--- a/tests/cassettes/test_verify_credentials.yaml
+++ b/tests/cassettes/test_verify_credentials.yaml
@@ -2,55 +2,117 @@ interactions:
2- request: 2- request:
3 body: null 3 body: null
4 headers: 4 headers:
5 Accept: ['*/*'] 5 Accept:
6 Accept-Encoding: ['gzip, deflate'] 6 - '*/*'
7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 7 Accept-Encoding:
8 Connection: [keep-alive] 8 - gzip, deflate
9 User-Agent: [python-requests/2.18.4] 9 Authorization:
10 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
11 Connection:
12 - keep-alive
13 User-Agent:
14 - tests/v311
10 method: GET 15 method: GET
11 uri: http://localhost:3000/api/v1/accounts/verify_credentials 16 uri: http://localhost:3000/api/v1/accounts/verify_credentials
12 response: 17 response:
13 body: {string: '{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T20:26:54.402Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","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":[]}'} 18 body:
19 string: '{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test","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}}'
14 headers: 20 headers:
15 Cache-Control: ['no-cache, no-store'] 21 Cache-Control:
16 Content-Type: [application/json; charset=utf-8] 22 - no-store
17 Referrer-Policy: [strict-origin-when-cross-origin] 23 Content-Security-Policy:
18 Transfer-Encoding: [chunked] 24 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
19 Vary: ['Accept-Encoding, Origin'] 25 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
20 X-Content-Type-Options: [nosniff] 26 style-src ''self'' http://localhost:3000 ''nonce-w4gNGAOXL1Y+spJmCwpFKA=='';
21 X-Download-Options: [noopen] 27 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
22 X-Frame-Options: [SAMEORIGIN] 28 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
23 X-Permitted-Cross-Domain-Policies: [none] 29 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
24 X-Request-Id: [d8ba5fe9-f0fa-4231-bc1f-f3c5c23a08ca] 30 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
25 X-Runtime: ['0.098842'] 31 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
26 X-XSS-Protection: [1; mode=block] 32 worker-src ''self'' blob: http://localhost:3000'
27 content-length: ['735'] 33 Content-Type:
28 status: {code: 200, message: OK} 34 - application/json; charset=utf-8
35 ETag:
36 - W/"652d7954c24199fc7e1e60a1d201dd1d"
37 Referrer-Policy:
38 - strict-origin-when-cross-origin
39 Transfer-Encoding:
40 - chunked
41 Vary:
42 - Accept, Origin
43 X-Content-Type-Options:
44 - nosniff
45 X-Download-Options:
46 - noopen
47 X-Frame-Options:
48 - SAMEORIGIN
49 X-Permitted-Cross-Domain-Policies:
50 - none
51 X-Request-Id:
52 - b449163e-3783-4d4a-b15d-2e13762f3a30
53 X-Runtime:
54 - '0.213092'
55 X-XSS-Protection:
56 - 1; mode=block
57 status:
58 code: 200
59 message: OK
29- request: 60- request:
30 body: null 61 body: null
31 headers: 62 headers:
32 Accept: ['*/*'] 63 Accept:
33 Accept-Encoding: ['gzip, deflate'] 64 - '*/*'
34 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 65 Accept-Encoding:
35 Connection: [keep-alive] 66 - gzip, deflate
36 User-Agent: [python-requests/2.18.4] 67 Authorization:
68 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
69 Connection:
70 - keep-alive
71 User-Agent:
72 - tests/v311
37 method: GET 73 method: GET
38 uri: http://localhost:3000/api/v1/accounts/verify_credentials 74 uri: http://localhost:3000/api/v1/accounts/verify_credentials
39 response: 75 response:
40 body: {string: '{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T20:26:54.402Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","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":[]}'} 76 body:
77 string: '{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test","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}}'
41 headers: 78 headers:
42 Cache-Control: ['no-cache, no-store'] 79 Cache-Control:
43 Content-Type: [application/json; charset=utf-8] 80 - no-store
44 Referrer-Policy: [strict-origin-when-cross-origin] 81 Content-Security-Policy:
45 Transfer-Encoding: [chunked] 82 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
46 Vary: ['Accept-Encoding, Origin'] 83 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
47 X-Content-Type-Options: [nosniff] 84 style-src ''self'' http://localhost:3000 ''nonce-hicgGzUz6tYu1h8+Wo4TGg=='';
48 X-Download-Options: [noopen] 85 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
49 X-Frame-Options: [SAMEORIGIN] 86 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
50 X-Permitted-Cross-Domain-Policies: [none] 87 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
51 X-Request-Id: [33980f80-3c88-4c9d-98cd-f04ec998f48b] 88 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
52 X-Runtime: ['0.039645'] 89 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
53 X-XSS-Protection: [1; mode=block] 90 worker-src ''self'' blob: http://localhost:3000'
54 content-length: ['735'] 91 Content-Type:
55 status: {code: 200, message: OK} 92 - application/json; charset=utf-8
93 ETag:
94 - W/"652d7954c24199fc7e1e60a1d201dd1d"
95 Referrer-Policy:
96 - strict-origin-when-cross-origin
97 Transfer-Encoding:
98 - chunked
99 Vary:
100 - Accept, Origin
101 X-Content-Type-Options:
102 - nosniff
103 X-Download-Options:
104 - noopen
105 X-Frame-Options:
106 - SAMEORIGIN
107 X-Permitted-Cross-Domain-Policies:
108 - none
109 X-Request-Id:
110 - ae901092-5d4a-45f5-aa71-e723b0eec82b
111 X-Runtime:
112 - '0.013575'
113 X-XSS-Protection:
114 - 1; mode=block
115 status:
116 code: 200
117 message: OK
56version: 1 118version: 1
Powered by cgit v1.2.3 (git 2.41.0)