diff options
Diffstat (limited to 'tests/cassettes/test_push_update.yaml')
-rw-r--r-- | tests/cassettes/test_push_update.yaml | 446 |
1 files changed, 319 insertions, 127 deletions
diff --git a/tests/cassettes/test_push_update.yaml b/tests/cassettes/test_push_update.yaml index af24017..a763fea 100644 --- a/tests/cassettes/test_push_update.yaml +++ b/tests/cassettes/test_push_update.yaml | |||
@@ -1,170 +1,362 @@ | |||
1 | interactions: | 1 | interactions: |
2 | - request: | 2 | - request: |
3 | body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BKLKkhUwlSEHYmTxHWUkcTfm1nfwbhvp47tSO4AF8%2FvA5YUssHzMblywqcdq7y0lZtKvSIVYpRLRpSdmKgnhIX4%3D&subscription%5Bkeys%5D%5Bauth%5D=oelFe68rpnwll8h7vWYZkw%3D%3D&data%5Balerts%5D%5Bfollow%5D=0&data%5Balerts%5D%5Bfavourite%5D=0&data%5Balerts%5D%5Breblog%5D=0&data%5Balerts%5D%5Bmention%5D=0 | 3 | body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BKxwCXGxFgdUBy37k4Swt2l6iGFfuidAoCWWRYKno6YwUyMFMjiyoSzYZUU7TLmUItIVP1yREGW0c0tdktzNtf4%3D&subscription%5Bkeys%5D%5Bauth%5D=dD4vutRTLYUiXPBxqQkxcw%3D%3D&data%5Balerts%5D%5Bfollow%5D=0&data%5Balerts%5D%5Bfavourite%5D=0&data%5Balerts%5D%5Breblog%5D=0&data%5Balerts%5D%5Bmention%5D=0 |
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: ['370'] | 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 | - '368' | ||
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":2,"endpoint":"https://example.com","alerts":{"follow":false,"favourite":false,"reblog":false,"mention":false},"server_key":"BPSW9N0oBHCeTlN6VgEPwlf36QQzuU6XtxguTJSM9xyW9kxnN2I_lzcHsk3ShJMRa0Na7t2kiE9UyJWrtQOsTJo="}'} | 22 | body: |
23 | string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":false,"reblog":false,"follow":false,"favourite":false},"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-dtAjo4nPQtWOILRZkBVHag==''; |
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: [24aaab97-8db2-477a-9153-b2580eb291f8] | 34 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
27 | X-Runtime: ['0.037218'] | 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: ['220'] | 37 | Content-Type: |
30 | status: {code: 200, message: OK} | 38 | - application/json; charset=utf-8 |
39 | ETag: | ||
40 | - W/"b7f5c9cdba03977ec4af45b88cc3c6cc" | ||
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 | - 9bf49a81-2b6e-46f1-9be7-446c5b218440 | ||
57 | X-Runtime: | ||
58 | - '0.022528' | ||
59 | X-XSS-Protection: | ||
60 | - 1; mode=block | ||
61 | status: | ||
62 | code: 200 | ||
63 | message: OK | ||
31 | - request: | 64 | - request: |
32 | body: data%5Balerts%5D%5Bfollow%5D=1&data%5Balerts%5D%5Bfavourite%5D=1&data%5Balerts%5D%5Breblog%5D=1&data%5Balerts%5D%5Bmention%5D=1 | 65 | body: data%5Balerts%5D%5Bfollow%5D=1&data%5Balerts%5D%5Bfavourite%5D=1&data%5Balerts%5D%5Breblog%5D=1&data%5Balerts%5D%5Bmention%5D=1 |
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: ['127'] | 71 | Authorization: |
39 | Content-Type: [application/x-www-form-urlencoded] | 72 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN |
40 | User-Agent: [python-requests/2.18.4] | 73 | Connection: |
74 | - keep-alive | ||
75 | Content-Length: | ||
76 | - '127' | ||
77 | Content-Type: | ||
78 | - application/x-www-form-urlencoded | ||
79 | User-Agent: | ||
80 | - tests/v311 | ||
41 | method: PUT | 81 | method: PUT |
42 | uri: http://localhost:3000/api/v1/push/subscription | 82 | uri: http://localhost:3000/api/v1/push/subscription |
43 | response: | 83 | response: |
44 | body: {string: '{"id":2,"endpoint":"https://example.com","alerts":{"follow":true,"favourite":true,"reblog":true,"mention":true},"server_key":"BPSW9N0oBHCeTlN6VgEPwlf36QQzuU6XtxguTJSM9xyW9kxnN2I_lzcHsk3ShJMRa0Na7t2kiE9UyJWrtQOsTJo="}'} | 84 | body: |
85 | string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":true,"reblog":true,"follow":true,"favourite":true},"server_key":"BFsPJBvWr6iQB4n0QAxBbqg5_MLh-Rm1we2OefcfRUaqTrZrB6k0E9FdzlBWD_xp8KAJrsWetwf2-l11cvSQnDU="}' | ||
45 | headers: | 86 | headers: |
46 | Cache-Control: ['no-cache, no-store'] | 87 | Cache-Control: |
47 | Content-Type: [application/json; charset=utf-8] | 88 | - no-store |
48 | Referrer-Policy: [strict-origin-when-cross-origin] | 89 | Content-Security-Policy: |
49 | Transfer-Encoding: [chunked] | 90 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
50 | Vary: ['Accept-Encoding, Origin'] | 91 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
51 | X-Content-Type-Options: [nosniff] | 92 | style-src ''self'' http://localhost:3000 ''nonce-Sx2Oj8kDfwt9QJNKwsuVcA==''; |
52 | X-Download-Options: [noopen] | 93 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
53 | X-Frame-Options: [SAMEORIGIN] | 94 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
54 | X-Permitted-Cross-Domain-Policies: [none] | 95 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
55 | X-Request-Id: [6b278a6a-1307-4538-a866-37fe5693e156] | 96 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
56 | X-Runtime: ['0.033939'] | 97 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
57 | X-XSS-Protection: [1; mode=block] | 98 | worker-src ''self'' blob: http://localhost:3000' |
58 | content-length: ['216'] | 99 | Content-Type: |
59 | status: {code: 200, message: OK} | 100 | - application/json; charset=utf-8 |
101 | ETag: | ||
102 | - W/"11d6dbe485a001e7404531a19a22c388" | ||
103 | Referrer-Policy: | ||
104 | - strict-origin-when-cross-origin | ||
105 | Transfer-Encoding: | ||
106 | - chunked | ||
107 | Vary: | ||
108 | - Accept, Origin | ||
109 | X-Content-Type-Options: | ||
110 | - nosniff | ||
111 | X-Download-Options: | ||
112 | - noopen | ||
113 | X-Frame-Options: | ||
114 | - SAMEORIGIN | ||
115 | X-Permitted-Cross-Domain-Policies: | ||
116 | - none | ||
117 | X-Request-Id: | ||
118 | - 2a820fe0-6842-46a1-86f9-7a9fe419f11e | ||
119 | X-Runtime: | ||
120 | - '0.010899' | ||
121 | X-XSS-Protection: | ||
122 | - 1; mode=block | ||
123 | status: | ||
124 | code: 200 | ||
125 | message: OK | ||
60 | - request: | 126 | - request: |
61 | body: null | 127 | body: null |
62 | headers: | 128 | headers: |
63 | Accept: ['*/*'] | 129 | Accept: |
64 | Accept-Encoding: ['gzip, deflate'] | 130 | - '*/*' |
65 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 131 | Accept-Encoding: |
66 | Connection: [keep-alive] | 132 | - gzip, deflate |
67 | User-Agent: [python-requests/2.18.4] | 133 | Authorization: |
134 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
135 | Connection: | ||
136 | - keep-alive | ||
137 | User-Agent: | ||
138 | - tests/v311 | ||
68 | method: GET | 139 | method: GET |
69 | uri: http://localhost:3000/api/v1/push/subscription | 140 | uri: http://localhost:3000/api/v1/push/subscription |
70 | response: | 141 | response: |
71 | body: {string: '{"id":2,"endpoint":"https://example.com","alerts":{"follow":true,"favourite":true,"reblog":true,"mention":true},"server_key":"BPSW9N0oBHCeTlN6VgEPwlf36QQzuU6XtxguTJSM9xyW9kxnN2I_lzcHsk3ShJMRa0Na7t2kiE9UyJWrtQOsTJo="}'} | 142 | body: |
143 | string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":true,"reblog":true,"follow":true,"favourite":true},"server_key":"BFsPJBvWr6iQB4n0QAxBbqg5_MLh-Rm1we2OefcfRUaqTrZrB6k0E9FdzlBWD_xp8KAJrsWetwf2-l11cvSQnDU="}' | ||
72 | headers: | 144 | headers: |
73 | Cache-Control: ['no-cache, no-store'] | 145 | Cache-Control: |
74 | Content-Type: [application/json; charset=utf-8] | 146 | - no-store |
75 | Referrer-Policy: [strict-origin-when-cross-origin] | 147 | Content-Security-Policy: |
76 | Transfer-Encoding: [chunked] | 148 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
77 | Vary: ['Accept-Encoding, Origin'] | 149 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
78 | X-Content-Type-Options: [nosniff] | 150 | style-src ''self'' http://localhost:3000 ''nonce-Q5hw0wiZzqeNtRSMrUUZ9A==''; |
79 | X-Download-Options: [noopen] | 151 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
80 | X-Frame-Options: [SAMEORIGIN] | 152 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
81 | X-Permitted-Cross-Domain-Policies: [none] | 153 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
82 | X-Request-Id: [f8777881-aa4d-4460-8426-bd7412b67b29] | 154 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
83 | X-Runtime: ['0.027582'] | 155 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
84 | X-XSS-Protection: [1; mode=block] | 156 | worker-src ''self'' blob: http://localhost:3000' |
85 | content-length: ['216'] | 157 | Content-Type: |
86 | status: {code: 200, message: OK} | 158 | - application/json; charset=utf-8 |
159 | ETag: | ||
160 | - W/"11d6dbe485a001e7404531a19a22c388" | ||
161 | Referrer-Policy: | ||
162 | - strict-origin-when-cross-origin | ||
163 | Transfer-Encoding: | ||
164 | - chunked | ||
165 | Vary: | ||
166 | - Accept, Origin | ||
167 | X-Content-Type-Options: | ||
168 | - nosniff | ||
169 | X-Download-Options: | ||
170 | - noopen | ||
171 | X-Frame-Options: | ||
172 | - SAMEORIGIN | ||
173 | X-Permitted-Cross-Domain-Policies: | ||
174 | - none | ||
175 | X-Request-Id: | ||
176 | - a3d05117-54ad-47e1-8c7d-67fd815c5563 | ||
177 | X-Runtime: | ||
178 | - '0.008378' | ||
179 | X-XSS-Protection: | ||
180 | - 1; mode=block | ||
181 | status: | ||
182 | code: 200 | ||
183 | message: OK | ||
87 | - request: | 184 | - request: |
88 | body: data%5Balerts%5D%5Bfollow%5D=0&data%5Balerts%5D%5Bfavourite%5D=0&data%5Balerts%5D%5Breblog%5D=0&data%5Balerts%5D%5Bmention%5D=0 | 185 | body: data%5Balerts%5D%5Bfollow%5D=0&data%5Balerts%5D%5Bfavourite%5D=0&data%5Balerts%5D%5Breblog%5D=0&data%5Balerts%5D%5Bmention%5D=0 |
89 | headers: | 186 | headers: |
90 | Accept: ['*/*'] | 187 | Accept: |
91 | Accept-Encoding: ['gzip, deflate'] | 188 | - '*/*' |
92 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 189 | Accept-Encoding: |
93 | Connection: [keep-alive] | 190 | - gzip, deflate |
94 | Content-Length: ['127'] | 191 | Authorization: |
95 | Content-Type: [application/x-www-form-urlencoded] | 192 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN |
96 | User-Agent: [python-requests/2.18.4] | 193 | Connection: |
194 | - keep-alive | ||
195 | Content-Length: | ||
196 | - '127' | ||
197 | Content-Type: | ||
198 | - application/x-www-form-urlencoded | ||
199 | User-Agent: | ||
200 | - tests/v311 | ||
97 | method: PUT | 201 | method: PUT |
98 | uri: http://localhost:3000/api/v1/push/subscription | 202 | uri: http://localhost:3000/api/v1/push/subscription |
99 | response: | 203 | response: |
100 | body: {string: '{"id":2,"endpoint":"https://example.com","alerts":{"follow":false,"favourite":false,"reblog":false,"mention":false},"server_key":"BPSW9N0oBHCeTlN6VgEPwlf36QQzuU6XtxguTJSM9xyW9kxnN2I_lzcHsk3ShJMRa0Na7t2kiE9UyJWrtQOsTJo="}'} | 204 | body: |
205 | string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":false,"reblog":false,"follow":false,"favourite":false},"server_key":"BFsPJBvWr6iQB4n0QAxBbqg5_MLh-Rm1we2OefcfRUaqTrZrB6k0E9FdzlBWD_xp8KAJrsWetwf2-l11cvSQnDU="}' | ||
101 | headers: | 206 | headers: |
102 | Cache-Control: ['no-cache, no-store'] | 207 | Cache-Control: |
103 | Content-Type: [application/json; charset=utf-8] | 208 | - no-store |
104 | Referrer-Policy: [strict-origin-when-cross-origin] | 209 | Content-Security-Policy: |
105 | Transfer-Encoding: [chunked] | 210 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
106 | Vary: ['Accept-Encoding, Origin'] | 211 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
107 | X-Content-Type-Options: [nosniff] | 212 | style-src ''self'' http://localhost:3000 ''nonce-Vw+8US2CPbzjBeuVmNuo3Q==''; |
108 | X-Download-Options: [noopen] | 213 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
109 | X-Frame-Options: [SAMEORIGIN] | 214 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
110 | X-Permitted-Cross-Domain-Policies: [none] | 215 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
111 | X-Request-Id: [e9eb1030-4c89-4a96-abf0-6bb19146e0c4] | 216 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
112 | X-Runtime: ['0.040965'] | 217 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
113 | X-XSS-Protection: [1; mode=block] | 218 | worker-src ''self'' blob: http://localhost:3000' |
114 | content-length: ['220'] | 219 | Content-Type: |
115 | status: {code: 200, message: OK} | 220 | - application/json; charset=utf-8 |
221 | ETag: | ||
222 | - W/"b7f5c9cdba03977ec4af45b88cc3c6cc" | ||
223 | Referrer-Policy: | ||
224 | - strict-origin-when-cross-origin | ||
225 | Transfer-Encoding: | ||
226 | - chunked | ||
227 | Vary: | ||
228 | - Accept, Origin | ||
229 | X-Content-Type-Options: | ||
230 | - nosniff | ||
231 | X-Download-Options: | ||
232 | - noopen | ||
233 | X-Frame-Options: | ||
234 | - SAMEORIGIN | ||
235 | X-Permitted-Cross-Domain-Policies: | ||
236 | - none | ||
237 | X-Request-Id: | ||
238 | - 147b7caa-c559-44f3-b6e6-8d66bd96d0ff | ||
239 | X-Runtime: | ||
240 | - '0.011152' | ||
241 | X-XSS-Protection: | ||
242 | - 1; mode=block | ||
243 | status: | ||
244 | code: 200 | ||
245 | message: OK | ||
116 | - request: | 246 | - request: |
117 | body: null | 247 | body: null |
118 | headers: | 248 | headers: |
119 | Accept: ['*/*'] | 249 | Accept: |
120 | Accept-Encoding: ['gzip, deflate'] | 250 | - '*/*' |
121 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 251 | Accept-Encoding: |
122 | Connection: [keep-alive] | 252 | - gzip, deflate |
123 | User-Agent: [python-requests/2.18.4] | 253 | Authorization: |
254 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
255 | Connection: | ||
256 | - keep-alive | ||
257 | User-Agent: | ||
258 | - tests/v311 | ||
124 | method: GET | 259 | method: GET |
125 | uri: http://localhost:3000/api/v1/push/subscription | 260 | uri: http://localhost:3000/api/v1/push/subscription |
126 | response: | 261 | response: |
127 | body: {string: '{"id":2,"endpoint":"https://example.com","alerts":{"follow":false,"favourite":false,"reblog":false,"mention":false},"server_key":"BPSW9N0oBHCeTlN6VgEPwlf36QQzuU6XtxguTJSM9xyW9kxnN2I_lzcHsk3ShJMRa0Na7t2kiE9UyJWrtQOsTJo="}'} | 262 | body: |
263 | string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":false,"reblog":false,"follow":false,"favourite":false},"server_key":"BFsPJBvWr6iQB4n0QAxBbqg5_MLh-Rm1we2OefcfRUaqTrZrB6k0E9FdzlBWD_xp8KAJrsWetwf2-l11cvSQnDU="}' | ||
128 | headers: | 264 | headers: |
129 | Cache-Control: ['no-cache, no-store'] | 265 | Cache-Control: |
130 | Content-Type: [application/json; charset=utf-8] | 266 | - no-store |
131 | Referrer-Policy: [strict-origin-when-cross-origin] | 267 | Content-Security-Policy: |
132 | Transfer-Encoding: [chunked] | 268 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
133 | Vary: ['Accept-Encoding, Origin'] | 269 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
134 | X-Content-Type-Options: [nosniff] | 270 | style-src ''self'' http://localhost:3000 ''nonce-AVSZyIBBuWLdZUNyJ+tLBA==''; |
135 | X-Download-Options: [noopen] | 271 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
136 | X-Frame-Options: [SAMEORIGIN] | 272 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
137 | X-Permitted-Cross-Domain-Policies: [none] | 273 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
138 | X-Request-Id: [c164dee0-74fe-4a2a-b604-95c63e52db76] | 274 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
139 | X-Runtime: ['0.027418'] | 275 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
140 | X-XSS-Protection: [1; mode=block] | 276 | worker-src ''self'' blob: http://localhost:3000' |
141 | content-length: ['220'] | 277 | Content-Type: |
142 | status: {code: 200, message: OK} | 278 | - application/json; charset=utf-8 |
279 | ETag: | ||
280 | - W/"b7f5c9cdba03977ec4af45b88cc3c6cc" | ||
281 | Referrer-Policy: | ||
282 | - strict-origin-when-cross-origin | ||
283 | Transfer-Encoding: | ||
284 | - chunked | ||
285 | Vary: | ||
286 | - Accept, Origin | ||
287 | X-Content-Type-Options: | ||
288 | - nosniff | ||
289 | X-Download-Options: | ||
290 | - noopen | ||
291 | X-Frame-Options: | ||
292 | - SAMEORIGIN | ||
293 | X-Permitted-Cross-Domain-Policies: | ||
294 | - none | ||
295 | X-Request-Id: | ||
296 | - aa1429bd-fd88-4311-a0b9-6fe1303aa75b | ||
297 | X-Runtime: | ||
298 | - '0.007709' | ||
299 | X-XSS-Protection: | ||
300 | - 1; mode=block | ||
301 | status: | ||
302 | code: 200 | ||
303 | message: OK | ||
143 | - request: | 304 | - request: |
144 | body: null | 305 | body: null |
145 | headers: | 306 | headers: |
146 | Accept: ['*/*'] | 307 | Accept: |
147 | Accept-Encoding: ['gzip, deflate'] | 308 | - '*/*' |
148 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 309 | Accept-Encoding: |
149 | Connection: [keep-alive] | 310 | - gzip, deflate |
150 | User-Agent: [python-requests/2.18.4] | 311 | Authorization: |
312 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
313 | Connection: | ||
314 | - keep-alive | ||
315 | User-Agent: | ||
316 | - tests/v311 | ||
151 | method: GET | 317 | method: GET |
152 | uri: http://localhost:3000/api/v1/push/subscription | 318 | uri: http://localhost:3000/api/v1/push/subscription |
153 | response: | 319 | response: |
154 | body: {string: '{"id":2,"endpoint":"https://example.com","alerts":{"follow":false,"favourite":false,"reblog":false,"mention":false},"server_key":"BPSW9N0oBHCeTlN6VgEPwlf36QQzuU6XtxguTJSM9xyW9kxnN2I_lzcHsk3ShJMRa0Na7t2kiE9UyJWrtQOsTJo="}'} | 320 | body: |
321 | string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":false,"reblog":false,"follow":false,"favourite":false},"server_key":"BFsPJBvWr6iQB4n0QAxBbqg5_MLh-Rm1we2OefcfRUaqTrZrB6k0E9FdzlBWD_xp8KAJrsWetwf2-l11cvSQnDU="}' | ||
155 | headers: | 322 | headers: |
156 | Cache-Control: ['no-cache, no-store'] | 323 | Cache-Control: |
157 | Content-Type: [application/json; charset=utf-8] | 324 | - no-store |
158 | Referrer-Policy: [strict-origin-when-cross-origin] | 325 | Content-Security-Policy: |
159 | Transfer-Encoding: [chunked] | 326 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
160 | Vary: ['Accept-Encoding, Origin'] | 327 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
161 | X-Content-Type-Options: [nosniff] | 328 | style-src ''self'' http://localhost:3000 ''nonce-Dy8mwK8CsCGGo8lV/FhbHg==''; |
162 | X-Download-Options: [noopen] | 329 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
163 | X-Frame-Options: [SAMEORIGIN] | 330 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
164 | X-Permitted-Cross-Domain-Policies: [none] | 331 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
165 | X-Request-Id: [67f329f9-0f19-44c8-bef3-59d5bd55f4eb] | 332 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
166 | X-Runtime: ['0.031697'] | 333 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
167 | X-XSS-Protection: [1; mode=block] | 334 | worker-src ''self'' blob: http://localhost:3000' |
168 | content-length: ['220'] | 335 | Content-Type: |
169 | status: {code: 200, message: OK} | 336 | - application/json; charset=utf-8 |
337 | ETag: | ||
338 | - W/"b7f5c9cdba03977ec4af45b88cc3c6cc" | ||
339 | Referrer-Policy: | ||
340 | - strict-origin-when-cross-origin | ||
341 | Transfer-Encoding: | ||
342 | - chunked | ||
343 | Vary: | ||
344 | - Accept, Origin | ||
345 | X-Content-Type-Options: | ||
346 | - nosniff | ||
347 | X-Download-Options: | ||
348 | - noopen | ||
349 | X-Frame-Options: | ||
350 | - SAMEORIGIN | ||
351 | X-Permitted-Cross-Domain-Policies: | ||
352 | - none | ||
353 | X-Request-Id: | ||
354 | - c8813294-4e96-49e4-83f0-cea347fe30df | ||
355 | X-Runtime: | ||
356 | - '0.007939' | ||
357 | X-XSS-Protection: | ||
358 | - 1; mode=block | ||
359 | status: | ||
360 | code: 200 | ||
361 | message: OK | ||
170 | version: 1 | 362 | version: 1 |