aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_push_update.yaml')
-rw-r--r--tests/cassettes/test_push_update.yaml148
1 files changed, 148 insertions, 0 deletions
diff --git a/tests/cassettes/test_push_update.yaml b/tests/cassettes/test_push_update.yaml
new file mode 100644
index 0000000..d104e16
--- /dev/null
+++ b/tests/cassettes/test_push_update.yaml
@@ -0,0 +1,148 @@
1interactions:
2- request:
3 body: data%5Balerts%5D%5Bfollow%5D=False&data%5Balerts%5D%5Bmention%5D=False&data%5Balerts%5D%5Bfavourite%5D=False&data%5Balerts%5D%5Breblog%5D=False&subscription%5Bkeys%5D%5Bauth%5D=h5Zt2UrWoYKx02aVC5L0%2Fg%3D%3D&subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BJ%2F4Tq2mAxlVXrgepITYrCU%2B%2F0628kF1nX1vzbBUP3s2C%2FiLo9v1%2FMVCgpMLHVuPNG4fRCjgowdx4D9O%2FDSfncY%3D
4 headers:
5 Accept: ['*/*']
6 Accept-Encoding: ['gzip, deflate']
7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
8 Connection: [keep-alive]
9 Content-Length: ['398']
10 Content-Type: [application/x-www-form-urlencoded]
11 User-Agent: [python-requests/2.9.1]
12 method: POST
13 uri: http://localhost:3000/api/v1/push/subscription
14 response:
15 body: {string: '{"id":8,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BEFgv48oiSIH0eOGT7FydL1ukygGBCLjUDocQJQABVZuFedxZr3QRjZQQvaVVrtMALGqQj9Skemt34NvshOvhyo="}'}
16 headers:
17 Cache-Control: ['max-age=0, private, must-revalidate']
18 Content-Type: [application/json; charset=utf-8]
19 ETag: [W/"b5b71aae730fd5d31b23f14fdd57c42f"]
20 Referrer-Policy: [strict-origin-when-cross-origin]
21 Transfer-Encoding: [chunked]
22 Vary: ['Accept-Encoding, Origin']
23 X-Content-Type-Options: [nosniff]
24 X-Download-Options: [noopen]
25 X-Frame-Options: [SAMEORIGIN]
26 X-Permitted-Cross-Domain-Policies: [none]
27 X-Request-Id: [9fada085-29a3-4666-8c07-2021409541bf]
28 X-Runtime: ['0.049096']
29 X-XSS-Protection: [1; mode=block]
30 content-length: ['228']
31 status: {code: 200, message: OK}
32- request:
33 body: data%5Balerts%5D%5Bfollow%5D=True&data%5Balerts%5D%5Bmention%5D=True&data%5Balerts%5D%5Bfavourite%5D=True&data%5Balerts%5D%5Breblog%5D=True
34 headers:
35 Accept: ['*/*']
36 Accept-Encoding: ['gzip, deflate']
37 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
38 Connection: [keep-alive]
39 Content-Length: ['139']
40 Content-Type: [application/x-www-form-urlencoded]
41 User-Agent: [python-requests/2.9.1]
42 method: PUT
43 uri: http://localhost:3000/api/v1/push/subscription
44 response:
45 body: {string: '{"id":8,"endpoint":"https://example.com","alerts":{"follow":"True","favourite":"True","reblog":"True","mention":"True"},"server_key":"BEFgv48oiSIH0eOGT7FydL1ukygGBCLjUDocQJQABVZuFedxZr3QRjZQQvaVVrtMALGqQj9Skemt34NvshOvhyo="}'}
46 headers:
47 Cache-Control: ['max-age=0, private, must-revalidate']
48 Content-Type: [application/json; charset=utf-8]
49 ETag: [W/"3fafedf49e495c0eb69b2da4d976d97d"]
50 Referrer-Policy: [strict-origin-when-cross-origin]
51 Transfer-Encoding: [chunked]
52 Vary: ['Accept-Encoding, Origin']
53 X-Content-Type-Options: [nosniff]
54 X-Download-Options: [noopen]
55 X-Frame-Options: [SAMEORIGIN]
56 X-Permitted-Cross-Domain-Policies: [none]
57 X-Request-Id: [2f6d8ac9-9650-4ec4-b3fe-79885e3cfc56]
58 X-Runtime: ['0.029778']
59 X-XSS-Protection: [1; mode=block]
60 content-length: ['224']
61 status: {code: 200, message: OK}
62- request:
63 body: null
64 headers:
65 Accept: ['*/*']
66 Accept-Encoding: ['gzip, deflate']
67 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
68 Connection: [keep-alive]
69 User-Agent: [python-requests/2.9.1]
70 method: GET
71 uri: http://localhost:3000/api/v1/push/subscription
72 response:
73 body: {string: '{"id":8,"endpoint":"https://example.com","alerts":{"follow":"True","favourite":"True","reblog":"True","mention":"True"},"server_key":"BEFgv48oiSIH0eOGT7FydL1ukygGBCLjUDocQJQABVZuFedxZr3QRjZQQvaVVrtMALGqQj9Skemt34NvshOvhyo="}'}
74 headers:
75 Cache-Control: ['max-age=0, private, must-revalidate']
76 Content-Type: [application/json; charset=utf-8]
77 ETag: [W/"66ba38489a2226cf55fafd76860b1384"]
78 Referrer-Policy: [strict-origin-when-cross-origin]
79 Transfer-Encoding: [chunked]
80 Vary: ['Accept-Encoding, Origin']
81 X-Content-Type-Options: [nosniff]
82 X-Download-Options: [noopen]
83 X-Frame-Options: [SAMEORIGIN]
84 X-Permitted-Cross-Domain-Policies: [none]
85 X-Request-Id: [36c25fd1-46b4-47aa-ada8-c8fe3e5d5a97]
86 X-Runtime: ['0.024214']
87 X-XSS-Protection: [1; mode=block]
88 content-length: ['224']
89 status: {code: 200, message: OK}
90- request:
91 body: data%5Balerts%5D%5Bfollow%5D=False&data%5Balerts%5D%5Bmention%5D=False&data%5Balerts%5D%5Bfavourite%5D=False&data%5Balerts%5D%5Breblog%5D=False
92 headers:
93 Accept: ['*/*']
94 Accept-Encoding: ['gzip, deflate']
95 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
96 Connection: [keep-alive]
97 Content-Length: ['143']
98 Content-Type: [application/x-www-form-urlencoded]
99 User-Agent: [python-requests/2.9.1]
100 method: PUT
101 uri: http://localhost:3000/api/v1/push/subscription
102 response:
103 body: {string: '{"id":8,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BEFgv48oiSIH0eOGT7FydL1ukygGBCLjUDocQJQABVZuFedxZr3QRjZQQvaVVrtMALGqQj9Skemt34NvshOvhyo="}'}
104 headers:
105 Cache-Control: ['max-age=0, private, must-revalidate']
106 Content-Type: [application/json; charset=utf-8]
107 ETag: [W/"aaa8530ccca182b42e8f076f1da2f112"]
108 Referrer-Policy: [strict-origin-when-cross-origin]
109 Transfer-Encoding: [chunked]
110 Vary: ['Accept-Encoding, Origin']
111 X-Content-Type-Options: [nosniff]
112 X-Download-Options: [noopen]
113 X-Frame-Options: [SAMEORIGIN]
114 X-Permitted-Cross-Domain-Policies: [none]
115 X-Request-Id: [40893dfd-87c5-4886-9938-69e93d0578c6]
116 X-Runtime: ['0.049371']
117 X-XSS-Protection: [1; mode=block]
118 content-length: ['228']
119 status: {code: 200, message: OK}
120- request:
121 body: null
122 headers:
123 Accept: ['*/*']
124 Accept-Encoding: ['gzip, deflate']
125 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
126 Connection: [keep-alive]
127 User-Agent: [python-requests/2.9.1]
128 method: GET
129 uri: http://localhost:3000/api/v1/push/subscription
130 response:
131 body: {string: '{"id":8,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BEFgv48oiSIH0eOGT7FydL1ukygGBCLjUDocQJQABVZuFedxZr3QRjZQQvaVVrtMALGqQj9Skemt34NvshOvhyo="}'}
132 headers:
133 Cache-Control: ['max-age=0, private, must-revalidate']
134 Content-Type: [application/json; charset=utf-8]
135 ETag: [W/"e403993b72df1ff96f98eb99b4e6ff85"]
136 Referrer-Policy: [strict-origin-when-cross-origin]
137 Transfer-Encoding: [chunked]
138 Vary: ['Accept-Encoding, Origin']
139 X-Content-Type-Options: [nosniff]
140 X-Download-Options: [noopen]
141 X-Frame-Options: [SAMEORIGIN]
142 X-Permitted-Cross-Domain-Policies: [none]
143 X-Request-Id: [bb02d1ad-37d7-4496-b136-ba085b60a774]
144 X-Runtime: ['0.022633']
145 X-XSS-Protection: [1; mode=block]
146 content-length: ['228']
147 status: {code: 200, message: OK}
148version: 1
Powered by cgit v1.2.3 (git 2.41.0)