aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_push_update.yaml')
-rw-r--r--tests/cassettes/test_push_update.yaml40
1 files changed, 20 insertions, 20 deletions
diff --git a/tests/cassettes/test_push_update.yaml b/tests/cassettes/test_push_update.yaml
index 090906d..da01907 100644
--- a/tests/cassettes/test_push_update.yaml
+++ b/tests/cassettes/test_push_update.yaml
@@ -1,18 +1,18 @@
1interactions: 1interactions:
2- request: 2- request:
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 3 body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BAn0sXdglzYa3ZhyMRSMNX%2FD0OV05gkiZ7dwu%2B0SNyUUVHLybiX%2FR8pGnqI01Pxbme1mf2v9gKG6UpZmXnA%2BJdY%3D&subscription%5Bkeys%5D%5Bauth%5D=q4niy9KMG09aEfjIDlebfQ%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: ['382'] 9 Content-Length: ['376']
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":44,"endpoint":"https://example.com","alerts":{"follow":false,"favourite":false,"reblog":false,"mention":false},"server_key":"BAWt221FllE4MOQ_TNqrMrc32IW2XhCRR0WTPI0Ne0TzoNm6UeUdEDDs5FAn8nGtW8eiJyCmSMoJnUEFi1Cj1Rk="}'} 15 body: {string: '{"id":47,"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,8 +23,8 @@ 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: [b179ef39-798e-4509-8254-650b5bab6248] 26 X-Request-Id: [2155b1d9-1fb4-46c8-aa6d-3ba0650e39bd]
27 X-Runtime: ['0.052281'] 27 X-Runtime: ['0.030293']
28 X-XSS-Protection: [1; mode=block] 28 X-XSS-Protection: [1; mode=block]
29 content-length: ['221'] 29 content-length: ['221']
30 status: {code: 200, message: OK} 30 status: {code: 200, message: OK}
@@ -41,7 +41,7 @@ interactions:
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":44,"endpoint":"https://example.com","alerts":{"follow":true,"favourite":true,"reblog":true,"mention":true},"server_key":"BAWt221FllE4MOQ_TNqrMrc32IW2XhCRR0WTPI0Ne0TzoNm6UeUdEDDs5FAn8nGtW8eiJyCmSMoJnUEFi1Cj1Rk="}'} 44 body: {string: '{"id":47,"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,8 +52,8 @@ 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: [77c71d4e-4122-4352-be58-000c07f2b5b0] 55 X-Request-Id: [50b25586-b6c1-4773-96f2-7de9b2342728]
56 X-Runtime: ['0.018310'] 56 X-Runtime: ['0.019509']
57 X-XSS-Protection: [1; mode=block] 57 X-XSS-Protection: [1; mode=block]
58 content-length: ['217'] 58 content-length: ['217']
59 status: {code: 200, message: OK} 59 status: {code: 200, message: OK}
@@ -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":44,"endpoint":"https://example.com","alerts":{"follow":true,"favourite":true,"reblog":true,"mention":true},"server_key":"BAWt221FllE4MOQ_TNqrMrc32IW2XhCRR0WTPI0Ne0TzoNm6UeUdEDDs5FAn8nGtW8eiJyCmSMoJnUEFi1Cj1Rk="}'} 71 body: {string: '{"id":47,"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,8 +79,8 @@ 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: [ba525c4c-71b1-48c8-86fc-595b8242c274] 82 X-Request-Id: [14ea052a-8423-4947-95cc-4bf45b1837f1]
83 X-Runtime: ['0.017948'] 83 X-Runtime: ['0.031910']
84 X-XSS-Protection: [1; mode=block] 84 X-XSS-Protection: [1; mode=block]
85 content-length: ['217'] 85 content-length: ['217']
86 status: {code: 200, message: OK} 86 status: {code: 200, message: OK}
@@ -97,7 +97,7 @@ interactions:
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":44,"endpoint":"https://example.com","alerts":{"follow":false,"favourite":false,"reblog":false,"mention":false},"server_key":"BAWt221FllE4MOQ_TNqrMrc32IW2XhCRR0WTPI0Ne0TzoNm6UeUdEDDs5FAn8nGtW8eiJyCmSMoJnUEFi1Cj1Rk="}'} 100 body: {string: '{"id":47,"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,8 +108,8 @@ 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: [a1f9a93e-183e-4915-915a-69fe399ab25f] 111 X-Request-Id: [e8f5d511-9979-47f3-a5e4-701e55ced861]
112 X-Runtime: ['0.030133'] 112 X-Runtime: ['0.047377']
113 X-XSS-Protection: [1; mode=block] 113 X-XSS-Protection: [1; mode=block]
114 content-length: ['221'] 114 content-length: ['221']
115 status: {code: 200, message: OK} 115 status: {code: 200, message: OK}
@@ -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":44,"endpoint":"https://example.com","alerts":{"follow":false,"favourite":false,"reblog":false,"mention":false},"server_key":"BAWt221FllE4MOQ_TNqrMrc32IW2XhCRR0WTPI0Ne0TzoNm6UeUdEDDs5FAn8nGtW8eiJyCmSMoJnUEFi1Cj1Rk="}'} 127 body: {string: '{"id":47,"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,8 +135,8 @@ 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: [2b1245fe-6cd3-4afd-96d7-ccee7791f4df] 138 X-Request-Id: [61383f96-f20a-4a7e-b670-735ed147c8aa]
139 X-Runtime: ['0.028445'] 139 X-Runtime: ['0.017065']
140 X-XSS-Protection: [1; mode=block] 140 X-XSS-Protection: [1; mode=block]
141 content-length: ['221'] 141 content-length: ['221']
142 status: {code: 200, message: OK} 142 status: {code: 200, message: OK}
@@ -151,7 +151,7 @@ interactions:
151 method: GET 151 method: GET
152 uri: http://localhost:3000/api/v1/push/subscription 152 uri: http://localhost:3000/api/v1/push/subscription
153 response: 153 response:
154 body: {string: '{"id":44,"endpoint":"https://example.com","alerts":{"follow":false,"favourite":false,"reblog":false,"mention":false},"server_key":"BAWt221FllE4MOQ_TNqrMrc32IW2XhCRR0WTPI0Ne0TzoNm6UeUdEDDs5FAn8nGtW8eiJyCmSMoJnUEFi1Cj1Rk="}'} 154 body: {string: '{"id":47,"endpoint":"https://example.com","alerts":{"follow":false,"favourite":false,"reblog":false,"mention":false},"server_key":"BAWt221FllE4MOQ_TNqrMrc32IW2XhCRR0WTPI0Ne0TzoNm6UeUdEDDs5FAn8nGtW8eiJyCmSMoJnUEFi1Cj1Rk="}'}
155 headers: 155 headers:
156 Cache-Control: ['no-cache, no-store'] 156 Cache-Control: ['no-cache, no-store']
157 Content-Type: [application/json; charset=utf-8] 157 Content-Type: [application/json; charset=utf-8]
@@ -162,8 +162,8 @@ interactions:
162 X-Download-Options: [noopen] 162 X-Download-Options: [noopen]
163 X-Frame-Options: [SAMEORIGIN] 163 X-Frame-Options: [SAMEORIGIN]
164 X-Permitted-Cross-Domain-Policies: [none] 164 X-Permitted-Cross-Domain-Policies: [none]
165 X-Request-Id: [6d7d368e-82d3-42a1-857b-2dc0240fb8b7] 165 X-Request-Id: [2e438ee6-05a3-40ea-9dc1-5914a40efee4]
166 X-Runtime: ['0.014119'] 166 X-Runtime: ['0.015956']
167 X-XSS-Protection: [1; mode=block] 167 X-XSS-Protection: [1; mode=block]
168 content-length: ['221'] 168 content-length: ['221']
169 status: {code: 200, message: OK} 169 status: {code: 200, message: OK}
Powered by cgit v1.2.3 (git 2.41.0)