diff options
Diffstat (limited to 'tests/cassettes/test_push_update.yaml')
-rw-r--r-- | tests/cassettes/test_push_update.yaml | 79 |
1 files changed, 53 insertions, 26 deletions
diff --git a/tests/cassettes/test_push_update.yaml b/tests/cassettes/test_push_update.yaml index e0c1fa4..090906d 100644 --- a/tests/cassettes/test_push_update.yaml +++ b/tests/cassettes/test_push_update.yaml | |||
@@ -1,18 +1,18 @@ | |||
1 | interactions: | 1 | interactions: |
2 | - request: | 2 | - request: |
3 | body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BEQRJdvNORvTkA49w78QoxpeuwfVNydvoEVYtdm4P1QBYAbKfsy75f2CrzDaNpv%2BgM5Y89E2%2BkaACu3UHTdrOek%3D&subscription%5Bkeys%5D%5Bauth%5D=ujnJKHWzxo4xGUZl9TyPlw%3D%3D&data%5Balerts%5D%5Bfollow%5D=False&data%5Balerts%5D%5Bfavourite%5D=False&data%5Balerts%5D%5Breblog%5D=False&data%5Balerts%5D%5Bmention%5D=False | 3 | body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BIZ1wWA3EboNcUWBZN5glPa1WVlA5BBS%2FGIQCbule2Zf%2FUg1bBSoT%2BmPJ5%2FLasg23FpxrNHSyPaJIYqV%2BV0iU24%3D&subscription%5Bkeys%5D%5Bauth%5D=Kxunpb%2F7V%2BbjkNYNUuqwlw%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 | Accept-Encoding: ['gzip, deflate'] |
7 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 7 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] |
8 | Connection: [keep-alive] | 8 | Connection: [keep-alive] |
9 | Content-Length: ['388'] | 9 | Content-Length: ['382'] |
10 | Content-Type: [application/x-www-form-urlencoded] | 10 | Content-Type: [application/x-www-form-urlencoded] |
11 | User-Agent: [python-requests/2.18.4] | 11 | User-Agent: [python-requests/2.18.4] |
12 | method: POST | 12 | method: POST |
13 | uri: http://localhost:3000/api/v1/push/subscription | 13 | uri: http://localhost:3000/api/v1/push/subscription |
14 | response: | 14 | response: |
15 | body: {string: '{"id":14,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BMimvNvIJnE4R13etr8xTuyqzJ41IjYCpSBH0LICimXu2yzRI8mDhMJzRYfKhoNrs0TMpvkaa5asJ7Dl6PorcZE="}'} | 15 | body: {string: '{"id":44,"endpoint":"https://example.com","alerts":{"follow":false,"favourite":false,"reblog":false,"mention":false},"server_key":"BAWt221FllE4MOQ_TNqrMrc32IW2XhCRR0WTPI0Ne0TzoNm6UeUdEDDs5FAn8nGtW8eiJyCmSMoJnUEFi1Cj1Rk="}'} |
16 | headers: | 16 | headers: |
17 | Cache-Control: ['no-cache, no-store'] | 17 | Cache-Control: ['no-cache, no-store'] |
18 | Content-Type: [application/json; charset=utf-8] | 18 | Content-Type: [application/json; charset=utf-8] |
@@ -23,25 +23,25 @@ interactions: | |||
23 | X-Download-Options: [noopen] | 23 | X-Download-Options: [noopen] |
24 | X-Frame-Options: [SAMEORIGIN] | 24 | X-Frame-Options: [SAMEORIGIN] |
25 | X-Permitted-Cross-Domain-Policies: [none] | 25 | X-Permitted-Cross-Domain-Policies: [none] |
26 | X-Request-Id: [dce13274-504f-4258-9c96-803874768b33] | 26 | X-Request-Id: [b179ef39-798e-4509-8254-650b5bab6248] |
27 | X-Runtime: ['0.027264'] | 27 | X-Runtime: ['0.052281'] |
28 | X-XSS-Protection: [1; mode=block] | 28 | X-XSS-Protection: [1; mode=block] |
29 | content-length: ['229'] | 29 | content-length: ['221'] |
30 | status: {code: 200, message: OK} | 30 | status: {code: 200, message: OK} |
31 | - request: | 31 | - request: |
32 | body: data%5Balerts%5D%5Bfollow%5D=True&data%5Balerts%5D%5Bfavourite%5D=True&data%5Balerts%5D%5Breblog%5D=True&data%5Balerts%5D%5Bmention%5D=True | 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 |
33 | headers: | 33 | headers: |
34 | Accept: ['*/*'] | 34 | Accept: ['*/*'] |
35 | Accept-Encoding: ['gzip, deflate'] | 35 | Accept-Encoding: ['gzip, deflate'] |
36 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 36 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] |
37 | Connection: [keep-alive] | 37 | Connection: [keep-alive] |
38 | Content-Length: ['139'] | 38 | Content-Length: ['127'] |
39 | Content-Type: [application/x-www-form-urlencoded] | 39 | Content-Type: [application/x-www-form-urlencoded] |
40 | User-Agent: [python-requests/2.18.4] | 40 | User-Agent: [python-requests/2.18.4] |
41 | method: PUT | 41 | method: PUT |
42 | uri: http://localhost:3000/api/v1/push/subscription | 42 | uri: http://localhost:3000/api/v1/push/subscription |
43 | response: | 43 | response: |
44 | body: {string: '{"id":14,"endpoint":"https://example.com","alerts":{"follow":"True","favourite":"True","reblog":"True","mention":"True"},"server_key":"BMimvNvIJnE4R13etr8xTuyqzJ41IjYCpSBH0LICimXu2yzRI8mDhMJzRYfKhoNrs0TMpvkaa5asJ7Dl6PorcZE="}'} | 44 | body: {string: '{"id":44,"endpoint":"https://example.com","alerts":{"follow":true,"favourite":true,"reblog":true,"mention":true},"server_key":"BAWt221FllE4MOQ_TNqrMrc32IW2XhCRR0WTPI0Ne0TzoNm6UeUdEDDs5FAn8nGtW8eiJyCmSMoJnUEFi1Cj1Rk="}'} |
45 | headers: | 45 | headers: |
46 | Cache-Control: ['no-cache, no-store'] | 46 | Cache-Control: ['no-cache, no-store'] |
47 | Content-Type: [application/json; charset=utf-8] | 47 | Content-Type: [application/json; charset=utf-8] |
@@ -52,10 +52,10 @@ interactions: | |||
52 | X-Download-Options: [noopen] | 52 | X-Download-Options: [noopen] |
53 | X-Frame-Options: [SAMEORIGIN] | 53 | X-Frame-Options: [SAMEORIGIN] |
54 | X-Permitted-Cross-Domain-Policies: [none] | 54 | X-Permitted-Cross-Domain-Policies: [none] |
55 | X-Request-Id: [618b7132-e767-40b5-8d45-a75379cb4e2e] | 55 | X-Request-Id: [77c71d4e-4122-4352-be58-000c07f2b5b0] |
56 | X-Runtime: ['0.040108'] | 56 | X-Runtime: ['0.018310'] |
57 | X-XSS-Protection: [1; mode=block] | 57 | X-XSS-Protection: [1; mode=block] |
58 | content-length: ['225'] | 58 | content-length: ['217'] |
59 | status: {code: 200, message: OK} | 59 | status: {code: 200, message: OK} |
60 | - request: | 60 | - request: |
61 | body: null | 61 | body: null |
@@ -68,7 +68,7 @@ interactions: | |||
68 | method: GET | 68 | method: GET |
69 | uri: http://localhost:3000/api/v1/push/subscription | 69 | uri: http://localhost:3000/api/v1/push/subscription |
70 | response: | 70 | response: |
71 | body: {string: '{"id":14,"endpoint":"https://example.com","alerts":{"follow":"True","favourite":"True","reblog":"True","mention":"True"},"server_key":"BMimvNvIJnE4R13etr8xTuyqzJ41IjYCpSBH0LICimXu2yzRI8mDhMJzRYfKhoNrs0TMpvkaa5asJ7Dl6PorcZE="}'} | 71 | body: {string: '{"id":44,"endpoint":"https://example.com","alerts":{"follow":true,"favourite":true,"reblog":true,"mention":true},"server_key":"BAWt221FllE4MOQ_TNqrMrc32IW2XhCRR0WTPI0Ne0TzoNm6UeUdEDDs5FAn8nGtW8eiJyCmSMoJnUEFi1Cj1Rk="}'} |
72 | headers: | 72 | headers: |
73 | Cache-Control: ['no-cache, no-store'] | 73 | Cache-Control: ['no-cache, no-store'] |
74 | Content-Type: [application/json; charset=utf-8] | 74 | Content-Type: [application/json; charset=utf-8] |
@@ -79,25 +79,25 @@ interactions: | |||
79 | X-Download-Options: [noopen] | 79 | X-Download-Options: [noopen] |
80 | X-Frame-Options: [SAMEORIGIN] | 80 | X-Frame-Options: [SAMEORIGIN] |
81 | X-Permitted-Cross-Domain-Policies: [none] | 81 | X-Permitted-Cross-Domain-Policies: [none] |
82 | X-Request-Id: [ae7f8cd0-7fbd-4656-93ee-0d1908cbf023] | 82 | X-Request-Id: [ba525c4c-71b1-48c8-86fc-595b8242c274] |
83 | X-Runtime: ['0.052002'] | 83 | X-Runtime: ['0.017948'] |
84 | X-XSS-Protection: [1; mode=block] | 84 | X-XSS-Protection: [1; mode=block] |
85 | content-length: ['225'] | 85 | content-length: ['217'] |
86 | status: {code: 200, message: OK} | 86 | status: {code: 200, message: OK} |
87 | - request: | 87 | - request: |
88 | body: data%5Balerts%5D%5Bfollow%5D=False&data%5Balerts%5D%5Bfavourite%5D=False&data%5Balerts%5D%5Breblog%5D=False&data%5Balerts%5D%5Bmention%5D=False | 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 |
89 | headers: | 89 | headers: |
90 | Accept: ['*/*'] | 90 | Accept: ['*/*'] |
91 | Accept-Encoding: ['gzip, deflate'] | 91 | Accept-Encoding: ['gzip, deflate'] |
92 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 92 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] |
93 | Connection: [keep-alive] | 93 | Connection: [keep-alive] |
94 | Content-Length: ['143'] | 94 | Content-Length: ['127'] |
95 | Content-Type: [application/x-www-form-urlencoded] | 95 | Content-Type: [application/x-www-form-urlencoded] |
96 | User-Agent: [python-requests/2.18.4] | 96 | User-Agent: [python-requests/2.18.4] |
97 | method: PUT | 97 | method: PUT |
98 | uri: http://localhost:3000/api/v1/push/subscription | 98 | uri: http://localhost:3000/api/v1/push/subscription |
99 | response: | 99 | response: |
100 | body: {string: '{"id":14,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BMimvNvIJnE4R13etr8xTuyqzJ41IjYCpSBH0LICimXu2yzRI8mDhMJzRYfKhoNrs0TMpvkaa5asJ7Dl6PorcZE="}'} | 100 | body: {string: '{"id":44,"endpoint":"https://example.com","alerts":{"follow":false,"favourite":false,"reblog":false,"mention":false},"server_key":"BAWt221FllE4MOQ_TNqrMrc32IW2XhCRR0WTPI0Ne0TzoNm6UeUdEDDs5FAn8nGtW8eiJyCmSMoJnUEFi1Cj1Rk="}'} |
101 | headers: | 101 | headers: |
102 | Cache-Control: ['no-cache, no-store'] | 102 | Cache-Control: ['no-cache, no-store'] |
103 | Content-Type: [application/json; charset=utf-8] | 103 | Content-Type: [application/json; charset=utf-8] |
@@ -108,10 +108,10 @@ interactions: | |||
108 | X-Download-Options: [noopen] | 108 | X-Download-Options: [noopen] |
109 | X-Frame-Options: [SAMEORIGIN] | 109 | X-Frame-Options: [SAMEORIGIN] |
110 | X-Permitted-Cross-Domain-Policies: [none] | 110 | X-Permitted-Cross-Domain-Policies: [none] |
111 | X-Request-Id: [62d2ea53-af2d-4855-87e4-ae49bed448ad] | 111 | X-Request-Id: [a1f9a93e-183e-4915-915a-69fe399ab25f] |
112 | X-Runtime: ['0.046968'] | 112 | X-Runtime: ['0.030133'] |
113 | X-XSS-Protection: [1; mode=block] | 113 | X-XSS-Protection: [1; mode=block] |
114 | content-length: ['229'] | 114 | content-length: ['221'] |
115 | status: {code: 200, message: OK} | 115 | status: {code: 200, message: OK} |
116 | - request: | 116 | - request: |
117 | body: null | 117 | body: null |
@@ -124,7 +124,7 @@ interactions: | |||
124 | method: GET | 124 | method: GET |
125 | uri: http://localhost:3000/api/v1/push/subscription | 125 | uri: http://localhost:3000/api/v1/push/subscription |
126 | response: | 126 | response: |
127 | body: {string: '{"id":14,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BMimvNvIJnE4R13etr8xTuyqzJ41IjYCpSBH0LICimXu2yzRI8mDhMJzRYfKhoNrs0TMpvkaa5asJ7Dl6PorcZE="}'} | 127 | body: {string: '{"id":44,"endpoint":"https://example.com","alerts":{"follow":false,"favourite":false,"reblog":false,"mention":false},"server_key":"BAWt221FllE4MOQ_TNqrMrc32IW2XhCRR0WTPI0Ne0TzoNm6UeUdEDDs5FAn8nGtW8eiJyCmSMoJnUEFi1Cj1Rk="}'} |
128 | headers: | 128 | headers: |
129 | Cache-Control: ['no-cache, no-store'] | 129 | Cache-Control: ['no-cache, no-store'] |
130 | Content-Type: [application/json; charset=utf-8] | 130 | Content-Type: [application/json; charset=utf-8] |
@@ -135,9 +135,36 @@ interactions: | |||
135 | X-Download-Options: [noopen] | 135 | X-Download-Options: [noopen] |
136 | X-Frame-Options: [SAMEORIGIN] | 136 | X-Frame-Options: [SAMEORIGIN] |
137 | X-Permitted-Cross-Domain-Policies: [none] | 137 | X-Permitted-Cross-Domain-Policies: [none] |
138 | X-Request-Id: [a0001fc1-ac0f-41ac-be02-08533b54d277] | 138 | X-Request-Id: [2b1245fe-6cd3-4afd-96d7-ccee7791f4df] |
139 | X-Runtime: ['0.032558'] | 139 | X-Runtime: ['0.028445'] |
140 | X-XSS-Protection: [1; mode=block] | 140 | X-XSS-Protection: [1; mode=block] |
141 | content-length: ['229'] | 141 | content-length: ['221'] |
142 | status: {code: 200, message: OK} | ||
143 | - request: | ||
144 | body: null | ||
145 | headers: | ||
146 | Accept: ['*/*'] | ||
147 | Accept-Encoding: ['gzip, deflate'] | ||
148 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
149 | Connection: [keep-alive] | ||
150 | User-Agent: [python-requests/2.18.4] | ||
151 | method: GET | ||
152 | uri: http://localhost:3000/api/v1/push/subscription | ||
153 | response: | ||
154 | body: {string: '{"id":44,"endpoint":"https://example.com","alerts":{"follow":false,"favourite":false,"reblog":false,"mention":false},"server_key":"BAWt221FllE4MOQ_TNqrMrc32IW2XhCRR0WTPI0Ne0TzoNm6UeUdEDDs5FAn8nGtW8eiJyCmSMoJnUEFi1Cj1Rk="}'} | ||
155 | headers: | ||
156 | Cache-Control: ['no-cache, no-store'] | ||
157 | Content-Type: [application/json; charset=utf-8] | ||
158 | Referrer-Policy: [strict-origin-when-cross-origin] | ||
159 | Transfer-Encoding: [chunked] | ||
160 | Vary: ['Accept-Encoding, Origin'] | ||
161 | X-Content-Type-Options: [nosniff] | ||
162 | X-Download-Options: [noopen] | ||
163 | X-Frame-Options: [SAMEORIGIN] | ||
164 | X-Permitted-Cross-Domain-Policies: [none] | ||
165 | X-Request-Id: [6d7d368e-82d3-42a1-857b-2dc0240fb8b7] | ||
166 | X-Runtime: ['0.014119'] | ||
167 | X-XSS-Protection: [1; mode=block] | ||
168 | content-length: ['221'] | ||
142 | status: {code: 200, message: OK} | 169 | status: {code: 200, message: OK} |
143 | version: 1 | 170 | version: 1 |