diff options
Diffstat (limited to 'tests/cassettes/test_push_update.yaml')
-rw-r--r-- | tests/cassettes/test_push_update.yaml | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/tests/cassettes/test_push_update.yaml b/tests/cassettes/test_push_update.yaml index a06b0db..e0c1fa4 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=BCSaRbfF44wktnrM7Fk%2BGpfbi0wAYv7GWggcO%2FWDo2TE6lzmMKToEgNn%2F2wJ0joGbgTvSlLxy1TTdC7lnhWqKpQ%3D&subscription%5Bkeys%5D%5Bauth%5D=a33tvmLQP2HR1OEYwlMbJg%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=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 |
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: ['390'] | 9 | Content-Length: ['388'] |
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":2,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BDoiaZnI8zQeheo5OzO3lDE5gn63dlzoaHrLTP7tctyKW-hj8yFIvIfWyCp8e-dT8kpJd9Ru7Sd-TTO2DXYgvwI="}'} | 15 | body: {string: '{"id":14,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BMimvNvIJnE4R13etr8xTuyqzJ41IjYCpSBH0LICimXu2yzRI8mDhMJzRYfKhoNrs0TMpvkaa5asJ7Dl6PorcZE="}'} |
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: [4664e69f-5eb3-4914-b582-311b223d1742] | 26 | X-Request-Id: [dce13274-504f-4258-9c96-803874768b33] |
27 | X-Runtime: ['0.027990'] | 27 | X-Runtime: ['0.027264'] |
28 | X-XSS-Protection: [1; mode=block] | 28 | X-XSS-Protection: [1; mode=block] |
29 | content-length: ['228'] | 29 | content-length: ['229'] |
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=True&data%5Balerts%5D%5Bfavourite%5D=True&data%5Balerts%5D%5Breblog%5D=True&data%5Balerts%5D%5Bmention%5D=True |
@@ -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":2,"endpoint":"https://example.com","alerts":{"follow":"True","favourite":"True","reblog":"True","mention":"True"},"server_key":"BDoiaZnI8zQeheo5OzO3lDE5gn63dlzoaHrLTP7tctyKW-hj8yFIvIfWyCp8e-dT8kpJd9Ru7Sd-TTO2DXYgvwI="}'} | 44 | body: {string: '{"id":14,"endpoint":"https://example.com","alerts":{"follow":"True","favourite":"True","reblog":"True","mention":"True"},"server_key":"BMimvNvIJnE4R13etr8xTuyqzJ41IjYCpSBH0LICimXu2yzRI8mDhMJzRYfKhoNrs0TMpvkaa5asJ7Dl6PorcZE="}'} |
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: [8c70a605-241a-4428-8c83-449b6a9a09a9] | 55 | X-Request-Id: [618b7132-e767-40b5-8d45-a75379cb4e2e] |
56 | X-Runtime: ['0.018987'] | 56 | X-Runtime: ['0.040108'] |
57 | X-XSS-Protection: [1; mode=block] | 57 | X-XSS-Protection: [1; mode=block] |
58 | content-length: ['224'] | 58 | content-length: ['225'] |
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":2,"endpoint":"https://example.com","alerts":{"follow":"True","favourite":"True","reblog":"True","mention":"True"},"server_key":"BDoiaZnI8zQeheo5OzO3lDE5gn63dlzoaHrLTP7tctyKW-hj8yFIvIfWyCp8e-dT8kpJd9Ru7Sd-TTO2DXYgvwI="}'} | 71 | body: {string: '{"id":14,"endpoint":"https://example.com","alerts":{"follow":"True","favourite":"True","reblog":"True","mention":"True"},"server_key":"BMimvNvIJnE4R13etr8xTuyqzJ41IjYCpSBH0LICimXu2yzRI8mDhMJzRYfKhoNrs0TMpvkaa5asJ7Dl6PorcZE="}'} |
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: [1637493b-ac39-482b-9872-6a377d574442] | 82 | X-Request-Id: [ae7f8cd0-7fbd-4656-93ee-0d1908cbf023] |
83 | X-Runtime: ['0.016466'] | 83 | X-Runtime: ['0.052002'] |
84 | X-XSS-Protection: [1; mode=block] | 84 | X-XSS-Protection: [1; mode=block] |
85 | content-length: ['224'] | 85 | content-length: ['225'] |
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=False&data%5Balerts%5D%5Bfavourite%5D=False&data%5Balerts%5D%5Breblog%5D=False&data%5Balerts%5D%5Bmention%5D=False |
@@ -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":2,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BDoiaZnI8zQeheo5OzO3lDE5gn63dlzoaHrLTP7tctyKW-hj8yFIvIfWyCp8e-dT8kpJd9Ru7Sd-TTO2DXYgvwI="}'} | 100 | body: {string: '{"id":14,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BMimvNvIJnE4R13etr8xTuyqzJ41IjYCpSBH0LICimXu2yzRI8mDhMJzRYfKhoNrs0TMpvkaa5asJ7Dl6PorcZE="}'} |
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: [0664fb73-af67-4cbb-ab55-f4cfdf0e5a22] | 111 | X-Request-Id: [62d2ea53-af2d-4855-87e4-ae49bed448ad] |
112 | X-Runtime: ['0.027340'] | 112 | X-Runtime: ['0.046968'] |
113 | X-XSS-Protection: [1; mode=block] | 113 | X-XSS-Protection: [1; mode=block] |
114 | content-length: ['228'] | 114 | content-length: ['229'] |
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":2,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BDoiaZnI8zQeheo5OzO3lDE5gn63dlzoaHrLTP7tctyKW-hj8yFIvIfWyCp8e-dT8kpJd9Ru7Sd-TTO2DXYgvwI="}'} | 127 | body: {string: '{"id":14,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BMimvNvIJnE4R13etr8xTuyqzJ41IjYCpSBH0LICimXu2yzRI8mDhMJzRYfKhoNrs0TMpvkaa5asJ7Dl6PorcZE="}'} |
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,9 @@ 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: [fe12165a-06c0-4bce-9eb3-037c6828f0cf] | 138 | X-Request-Id: [a0001fc1-ac0f-41ac-be02-08533b54d277] |
139 | X-Runtime: ['0.022023'] | 139 | X-Runtime: ['0.032558'] |
140 | X-XSS-Protection: [1; mode=block] | 140 | X-XSS-Protection: [1; mode=block] |
141 | content-length: ['228'] | 141 | content-length: ['229'] |
142 | status: {code: 200, message: OK} | 142 | status: {code: 200, message: OK} |
143 | version: 1 | 143 | version: 1 |