diff options
author | halcy <halcy@ARARAGI-KUN> | 2022-11-07 23:11:30 +0200 |
---|---|---|
committer | halcy <halcy@ARARAGI-KUN> | 2022-11-07 23:11:30 +0200 |
commit | 3277ca777821e76955fb26d80788939a311db9db (patch) | |
tree | bef0749a451464d00e59fb3c685e6eb6d69a8a78 /tests/cassettes/test_push_delete.yaml | |
parent | 33d1e17e2e75884abd6e0a8a3e4a4da388e97e55 (diff) | |
download | mastodon.py-3277ca777821e76955fb26d80788939a311db9db.tar.gz |
Initial test fixing pass. Four tests still fail.
Diffstat (limited to 'tests/cassettes/test_push_delete.yaml')
-rw-r--r-- | tests/cassettes/test_push_delete.yaml | 222 |
1 files changed, 158 insertions, 64 deletions
diff --git a/tests/cassettes/test_push_delete.yaml b/tests/cassettes/test_push_delete.yaml index dab6881..19e4605 100644 --- a/tests/cassettes/test_push_delete.yaml +++ b/tests/cassettes/test_push_delete.yaml | |||
@@ -1,86 +1,180 @@ | |||
1 | interactions: | 1 | interactions: |
2 | - request: | 2 | - request: |
3 | body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BPJLfW03%2BNP04NbhC8zJs5xd30bDL%2B%2B0AghNrF1KcYN5uuznaJz%2FY%2B4s%2Bhe2e4FOiA80RQtYDUvJadQ6J3vvhyc%3D&subscription%5Bkeys%5D%5Bauth%5D=7J%2BeGTcOf7YRVA1Tbk06hg%3D%3D | 3 | body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BBaCe5f0XCe0yktCrWzOGfZ9RGDNdNBA7LpbMBrwsRgALTpJgVLoBx5wKTQ9g5kjYlS4a%2BEZgeTA661PPUcSmxc%3D&subscription%5Bkeys%5D%5Bauth%5D=rP0KB25am52fthOb6cQQzA%3D%3D |
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 | Content-Length: ['254'] | 9 | Authorization: |
10 | Content-Type: [application/x-www-form-urlencoded] | 10 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN |
11 | User-Agent: [python-requests/2.18.4] | 11 | Connection: |
12 | - keep-alive | ||
13 | Content-Length: | ||
14 | - '242' | ||
15 | Content-Type: | ||
16 | - application/x-www-form-urlencoded | ||
17 | User-Agent: | ||
18 | - tests/v311 | ||
12 | method: POST | 19 | method: POST |
13 | uri: http://localhost:3000/api/v1/push/subscription | 20 | uri: http://localhost:3000/api/v1/push/subscription |
14 | response: | 21 | response: |
15 | body: {string: '{"id":3,"endpoint":"https://example.com","alerts":{},"server_key":"BPSW9N0oBHCeTlN6VgEPwlf36QQzuU6XtxguTJSM9xyW9kxnN2I_lzcHsk3ShJMRa0Na7t2kiE9UyJWrtQOsTJo="}'} | 22 | body: |
23 | string: '{"id":3,"endpoint":"https://example.com","alerts":{},"server_key":"BFsPJBvWr6iQB4n0QAxBbqg5_MLh-Rm1we2OefcfRUaqTrZrB6k0E9FdzlBWD_xp8KAJrsWetwf2-l11cvSQnDU="}' | ||
16 | headers: | 24 | headers: |
17 | Cache-Control: ['no-cache, no-store'] | 25 | Cache-Control: |
18 | Content-Type: [application/json; charset=utf-8] | 26 | - no-store |
19 | Referrer-Policy: [strict-origin-when-cross-origin] | 27 | Content-Security-Policy: |
20 | Transfer-Encoding: [chunked] | 28 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
21 | Vary: ['Accept-Encoding, Origin'] | 29 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
22 | X-Content-Type-Options: [nosniff] | 30 | style-src ''self'' http://localhost:3000 ''nonce-XC0dhdOGpvpL47EswqtZcA==''; |
23 | X-Download-Options: [noopen] | 31 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
24 | X-Frame-Options: [SAMEORIGIN] | 32 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
25 | X-Permitted-Cross-Domain-Policies: [none] | 33 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
26 | X-Request-Id: [182697a5-92aa-431d-9bd5-8e17a24c6ffc] | 34 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
27 | X-Runtime: ['0.039294'] | 35 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
28 | X-XSS-Protection: [1; mode=block] | 36 | worker-src ''self'' blob: http://localhost:3000' |
29 | content-length: ['157'] | 37 | Content-Type: |
30 | status: {code: 200, message: OK} | 38 | - application/json; charset=utf-8 |
39 | ETag: | ||
40 | - W/"398bcee62a4034e17faa19a210fae833" | ||
41 | Referrer-Policy: | ||
42 | - strict-origin-when-cross-origin | ||
43 | Transfer-Encoding: | ||
44 | - chunked | ||
45 | Vary: | ||
46 | - Accept, Origin | ||
47 | X-Content-Type-Options: | ||
48 | - nosniff | ||
49 | X-Download-Options: | ||
50 | - noopen | ||
51 | X-Frame-Options: | ||
52 | - SAMEORIGIN | ||
53 | X-Permitted-Cross-Domain-Policies: | ||
54 | - none | ||
55 | X-Request-Id: | ||
56 | - 03b97cc9-68b0-49ac-9b07-8bc9e6607ef5 | ||
57 | X-Runtime: | ||
58 | - '0.014296' | ||
59 | X-XSS-Protection: | ||
60 | - 1; mode=block | ||
61 | status: | ||
62 | code: 200 | ||
63 | message: OK | ||
31 | - request: | 64 | - request: |
32 | body: null | 65 | body: null |
33 | headers: | 66 | headers: |
34 | Accept: ['*/*'] | 67 | Accept: |
35 | Accept-Encoding: ['gzip, deflate'] | 68 | - '*/*' |
36 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 69 | Accept-Encoding: |
37 | Connection: [keep-alive] | 70 | - gzip, deflate |
38 | Content-Length: ['0'] | 71 | Authorization: |
39 | User-Agent: [python-requests/2.18.4] | 72 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN |
73 | Connection: | ||
74 | - keep-alive | ||
75 | Content-Length: | ||
76 | - '0' | ||
77 | User-Agent: | ||
78 | - tests/v311 | ||
40 | method: DELETE | 79 | method: DELETE |
41 | uri: http://localhost:3000/api/v1/push/subscription | 80 | uri: http://localhost:3000/api/v1/push/subscription |
42 | response: | 81 | response: |
43 | body: {string: '{}'} | 82 | body: |
83 | string: '{}' | ||
44 | headers: | 84 | headers: |
45 | Cache-Control: ['no-cache, no-store'] | 85 | Cache-Control: |
46 | Content-Type: [application/json; charset=utf-8] | 86 | - no-store |
47 | Referrer-Policy: [strict-origin-when-cross-origin] | 87 | Content-Security-Policy: |
48 | Transfer-Encoding: [chunked] | 88 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
49 | Vary: ['Accept-Encoding, Origin'] | 89 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
50 | X-Content-Type-Options: [nosniff] | 90 | style-src ''self'' http://localhost:3000 ''nonce-QNwmHb5+a9IJE1NionA6aw==''; |
51 | X-Download-Options: [noopen] | 91 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
52 | X-Frame-Options: [SAMEORIGIN] | 92 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
53 | X-Permitted-Cross-Domain-Policies: [none] | 93 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
54 | X-Request-Id: [740dd74c-cf1d-47db-9da8-1572eadfd546] | 94 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
55 | X-Runtime: ['0.062684'] | 95 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
56 | X-XSS-Protection: [1; mode=block] | 96 | worker-src ''self'' blob: http://localhost:3000' |
57 | content-length: ['2'] | 97 | Content-Type: |
58 | status: {code: 200, message: OK} | 98 | - application/json; charset=utf-8 |
99 | ETag: | ||
100 | - W/"44136fa355b3678a1146ad16f7e8649e" | ||
101 | Referrer-Policy: | ||
102 | - strict-origin-when-cross-origin | ||
103 | Transfer-Encoding: | ||
104 | - chunked | ||
105 | Vary: | ||
106 | - Accept, Origin | ||
107 | X-Content-Type-Options: | ||
108 | - nosniff | ||
109 | X-Download-Options: | ||
110 | - noopen | ||
111 | X-Frame-Options: | ||
112 | - SAMEORIGIN | ||
113 | X-Permitted-Cross-Domain-Policies: | ||
114 | - none | ||
115 | X-Request-Id: | ||
116 | - 89f2550a-77b3-4680-a599-de2d4c231b97 | ||
117 | X-Runtime: | ||
118 | - '0.011466' | ||
119 | X-XSS-Protection: | ||
120 | - 1; mode=block | ||
121 | status: | ||
122 | code: 200 | ||
123 | message: OK | ||
59 | - request: | 124 | - request: |
60 | body: null | 125 | body: null |
61 | headers: | 126 | headers: |
62 | Accept: ['*/*'] | 127 | Accept: |
63 | Accept-Encoding: ['gzip, deflate'] | 128 | - '*/*' |
64 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 129 | Accept-Encoding: |
65 | Connection: [keep-alive] | 130 | - gzip, deflate |
66 | User-Agent: [python-requests/2.18.4] | 131 | Authorization: |
132 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
133 | Connection: | ||
134 | - keep-alive | ||
135 | User-Agent: | ||
136 | - tests/v311 | ||
67 | method: GET | 137 | method: GET |
68 | uri: http://localhost:3000/api/v1/push/subscription | 138 | uri: http://localhost:3000/api/v1/push/subscription |
69 | response: | 139 | response: |
70 | body: {string: '{"error":"Record not found"}'} | 140 | body: |
141 | string: '{"error":"Not Found"}' | ||
71 | headers: | 142 | headers: |
72 | Cache-Control: ['no-cache, no-store'] | 143 | Cache-Control: |
73 | Content-Type: [application/json; charset=utf-8] | 144 | - no-store |
74 | Referrer-Policy: [strict-origin-when-cross-origin] | 145 | Content-Security-Policy: |
75 | Transfer-Encoding: [chunked] | 146 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
76 | Vary: ['Accept-Encoding, Origin'] | 147 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
77 | X-Content-Type-Options: [nosniff] | 148 | style-src ''self'' http://localhost:3000 ''nonce-O2jjgL99U6dhnTkBoyBiHA==''; |
78 | X-Download-Options: [noopen] | 149 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
79 | X-Frame-Options: [SAMEORIGIN] | 150 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
80 | X-Permitted-Cross-Domain-Policies: [none] | 151 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
81 | X-Request-Id: [77cb9346-5db6-4f77-abd5-7781d238e6d5] | 152 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
82 | X-Runtime: ['0.032786'] | 153 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
83 | X-XSS-Protection: [1; mode=block] | 154 | worker-src ''self'' blob: http://localhost:3000' |
84 | content-length: ['28'] | 155 | Content-Type: |
85 | status: {code: 404, message: Not Found} | 156 | - application/json; charset=utf-8 |
157 | Referrer-Policy: | ||
158 | - strict-origin-when-cross-origin | ||
159 | Transfer-Encoding: | ||
160 | - chunked | ||
161 | Vary: | ||
162 | - Accept, Origin | ||
163 | X-Content-Type-Options: | ||
164 | - nosniff | ||
165 | X-Download-Options: | ||
166 | - noopen | ||
167 | X-Frame-Options: | ||
168 | - SAMEORIGIN | ||
169 | X-Permitted-Cross-Domain-Policies: | ||
170 | - none | ||
171 | X-Request-Id: | ||
172 | - 038b3671-9c22-4f12-91e9-5ad99d14cf20 | ||
173 | X-Runtime: | ||
174 | - '0.041113' | ||
175 | X-XSS-Protection: | ||
176 | - 1; mode=block | ||
177 | status: | ||
178 | code: 404 | ||
179 | message: Not Found | ||
86 | version: 1 | 180 | version: 1 |