aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_push_update.yaml')
-rw-r--r--tests/cassettes/test_push_update.yaml52
1 files changed, 26 insertions, 26 deletions
diff --git a/tests/cassettes/test_push_update.yaml b/tests/cassettes/test_push_update.yaml
index da01907..af24017 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=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 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
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: ['376'] 9 Content-Length: ['370']
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":47,"endpoint":"https://example.com","alerts":{"follow":false,"favourite":false,"reblog":false,"mention":false},"server_key":"BAWt221FllE4MOQ_TNqrMrc32IW2XhCRR0WTPI0Ne0TzoNm6UeUdEDDs5FAn8nGtW8eiJyCmSMoJnUEFi1Cj1Rk="}'} 15 body: {string: '{"id":2,"endpoint":"https://example.com","alerts":{"follow":false,"favourite":false,"reblog":false,"mention":false},"server_key":"BPSW9N0oBHCeTlN6VgEPwlf36QQzuU6XtxguTJSM9xyW9kxnN2I_lzcHsk3ShJMRa0Na7t2kiE9UyJWrtQOsTJo="}'}
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,10 +23,10 @@ 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: [2155b1d9-1fb4-46c8-aa6d-3ba0650e39bd] 26 X-Request-Id: [24aaab97-8db2-477a-9153-b2580eb291f8]
27 X-Runtime: ['0.030293'] 27 X-Runtime: ['0.037218']
28 X-XSS-Protection: [1; mode=block] 28 X-XSS-Protection: [1; mode=block]
29 content-length: ['221'] 29 content-length: ['220']
30 status: {code: 200, message: OK} 30 status: {code: 200, message: OK}
31- request: 31- 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 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
@@ -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":47,"endpoint":"https://example.com","alerts":{"follow":true,"favourite":true,"reblog":true,"mention":true},"server_key":"BAWt221FllE4MOQ_TNqrMrc32IW2XhCRR0WTPI0Ne0TzoNm6UeUdEDDs5FAn8nGtW8eiJyCmSMoJnUEFi1Cj1Rk="}'} 44 body: {string: '{"id":2,"endpoint":"https://example.com","alerts":{"follow":true,"favourite":true,"reblog":true,"mention":true},"server_key":"BPSW9N0oBHCeTlN6VgEPwlf36QQzuU6XtxguTJSM9xyW9kxnN2I_lzcHsk3ShJMRa0Na7t2kiE9UyJWrtQOsTJo="}'}
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: [50b25586-b6c1-4773-96f2-7de9b2342728] 55 X-Request-Id: [6b278a6a-1307-4538-a866-37fe5693e156]
56 X-Runtime: ['0.019509'] 56 X-Runtime: ['0.033939']
57 X-XSS-Protection: [1; mode=block] 57 X-XSS-Protection: [1; mode=block]
58 content-length: ['217'] 58 content-length: ['216']
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":47,"endpoint":"https://example.com","alerts":{"follow":true,"favourite":true,"reblog":true,"mention":true},"server_key":"BAWt221FllE4MOQ_TNqrMrc32IW2XhCRR0WTPI0Ne0TzoNm6UeUdEDDs5FAn8nGtW8eiJyCmSMoJnUEFi1Cj1Rk="}'} 71 body: {string: '{"id":2,"endpoint":"https://example.com","alerts":{"follow":true,"favourite":true,"reblog":true,"mention":true},"server_key":"BPSW9N0oBHCeTlN6VgEPwlf36QQzuU6XtxguTJSM9xyW9kxnN2I_lzcHsk3ShJMRa0Na7t2kiE9UyJWrtQOsTJo="}'}
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,10 +79,10 @@ 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: [14ea052a-8423-4947-95cc-4bf45b1837f1] 82 X-Request-Id: [f8777881-aa4d-4460-8426-bd7412b67b29]
83 X-Runtime: ['0.031910'] 83 X-Runtime: ['0.027582']
84 X-XSS-Protection: [1; mode=block] 84 X-XSS-Protection: [1; mode=block]
85 content-length: ['217'] 85 content-length: ['216']
86 status: {code: 200, message: OK} 86 status: {code: 200, message: OK}
87- request: 87- 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 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
@@ -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":47,"endpoint":"https://example.com","alerts":{"follow":false,"favourite":false,"reblog":false,"mention":false},"server_key":"BAWt221FllE4MOQ_TNqrMrc32IW2XhCRR0WTPI0Ne0TzoNm6UeUdEDDs5FAn8nGtW8eiJyCmSMoJnUEFi1Cj1Rk="}'} 100 body: {string: '{"id":2,"endpoint":"https://example.com","alerts":{"follow":false,"favourite":false,"reblog":false,"mention":false},"server_key":"BPSW9N0oBHCeTlN6VgEPwlf36QQzuU6XtxguTJSM9xyW9kxnN2I_lzcHsk3ShJMRa0Na7t2kiE9UyJWrtQOsTJo="}'}
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: [e8f5d511-9979-47f3-a5e4-701e55ced861] 111 X-Request-Id: [e9eb1030-4c89-4a96-abf0-6bb19146e0c4]
112 X-Runtime: ['0.047377'] 112 X-Runtime: ['0.040965']
113 X-XSS-Protection: [1; mode=block] 113 X-XSS-Protection: [1; mode=block]
114 content-length: ['221'] 114 content-length: ['220']
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":47,"endpoint":"https://example.com","alerts":{"follow":false,"favourite":false,"reblog":false,"mention":false},"server_key":"BAWt221FllE4MOQ_TNqrMrc32IW2XhCRR0WTPI0Ne0TzoNm6UeUdEDDs5FAn8nGtW8eiJyCmSMoJnUEFi1Cj1Rk="}'} 127 body: {string: '{"id":2,"endpoint":"https://example.com","alerts":{"follow":false,"favourite":false,"reblog":false,"mention":false},"server_key":"BPSW9N0oBHCeTlN6VgEPwlf36QQzuU6XtxguTJSM9xyW9kxnN2I_lzcHsk3ShJMRa0Na7t2kiE9UyJWrtQOsTJo="}'}
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,10 +135,10 @@ 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: [61383f96-f20a-4a7e-b670-735ed147c8aa] 138 X-Request-Id: [c164dee0-74fe-4a2a-b604-95c63e52db76]
139 X-Runtime: ['0.017065'] 139 X-Runtime: ['0.027418']
140 X-XSS-Protection: [1; mode=block] 140 X-XSS-Protection: [1; mode=block]
141 content-length: ['221'] 141 content-length: ['220']
142 status: {code: 200, message: OK} 142 status: {code: 200, message: OK}
143- request: 143- request:
144 body: null 144 body: null
@@ -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":47,"endpoint":"https://example.com","alerts":{"follow":false,"favourite":false,"reblog":false,"mention":false},"server_key":"BAWt221FllE4MOQ_TNqrMrc32IW2XhCRR0WTPI0Ne0TzoNm6UeUdEDDs5FAn8nGtW8eiJyCmSMoJnUEFi1Cj1Rk="}'} 154 body: {string: '{"id":2,"endpoint":"https://example.com","alerts":{"follow":false,"favourite":false,"reblog":false,"mention":false},"server_key":"BPSW9N0oBHCeTlN6VgEPwlf36QQzuU6XtxguTJSM9xyW9kxnN2I_lzcHsk3ShJMRa0Na7t2kiE9UyJWrtQOsTJo="}'}
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,9 +162,9 @@ 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: [2e438ee6-05a3-40ea-9dc1-5914a40efee4] 165 X-Request-Id: [67f329f9-0f19-44c8-bef3-59d5bd55f4eb]
166 X-Runtime: ['0.015956'] 166 X-Runtime: ['0.031697']
167 X-XSS-Protection: [1; mode=block] 167 X-XSS-Protection: [1; mode=block]
168 content-length: ['221'] 168 content-length: ['220']
169 status: {code: 200, message: OK} 169 status: {code: 200, message: OK}
170version: 1 170version: 1
Powered by cgit v1.2.3 (git 2.41.0)