diff options
Diffstat (limited to 'tests/cassettes/test_push_update.yaml')
-rw-r--r-- | tests/cassettes/test_push_update.yaml | 49 |
1 files changed, 22 insertions, 27 deletions
diff --git a/tests/cassettes/test_push_update.yaml b/tests/cassettes/test_push_update.yaml index 5ba387d..a06b0db 100644 --- a/tests/cassettes/test_push_update.yaml +++ b/tests/cassettes/test_push_update.yaml | |||
@@ -1,22 +1,21 @@ | |||
1 | interactions: | 1 | interactions: |
2 | - request: | 2 | - request: |
3 | body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BAouXva76kHOex7%2FtGQHEcfKF9B%2FSFszspUvSljPFTcwjm1NK6WZzLSTdqctwyHAkBD%2BZIUXEkF%2FlObYDU4UKho%3D&subscription%5Bkeys%5D%5Bauth%5D=38p8CsDi%2BiQINZLdx36rsw%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=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 |
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: ['394'] | 9 | Content-Length: ['390'] |
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":8,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BP3YHleCxMqxCT6NGjNfl8rRj9BVI9ZGr3xLNzK53Uf0AcMo2VUFgAtdwQBfGofTb48sImPX-LRHTZgmZACu8A0="}'} | 15 | body: {string: '{"id":2,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BDoiaZnI8zQeheo5OzO3lDE5gn63dlzoaHrLTP7tctyKW-hj8yFIvIfWyCp8e-dT8kpJd9Ru7Sd-TTO2DXYgvwI="}'} |
16 | headers: | 16 | headers: |
17 | Cache-Control: ['max-age=0, private, must-revalidate'] | 17 | Cache-Control: ['no-cache, no-store'] |
18 | Content-Type: [application/json; charset=utf-8] | 18 | Content-Type: [application/json; charset=utf-8] |
19 | ETag: [W/"a9f714714ecf13be238f8e14137ad705"] | ||
20 | Referrer-Policy: [strict-origin-when-cross-origin] | 19 | Referrer-Policy: [strict-origin-when-cross-origin] |
21 | Transfer-Encoding: [chunked] | 20 | Transfer-Encoding: [chunked] |
22 | Vary: ['Accept-Encoding, Origin'] | 21 | Vary: ['Accept-Encoding, Origin'] |
@@ -24,8 +23,8 @@ interactions: | |||
24 | X-Download-Options: [noopen] | 23 | X-Download-Options: [noopen] |
25 | X-Frame-Options: [SAMEORIGIN] | 24 | X-Frame-Options: [SAMEORIGIN] |
26 | X-Permitted-Cross-Domain-Policies: [none] | 25 | X-Permitted-Cross-Domain-Policies: [none] |
27 | X-Request-Id: [6689cc6f-dd12-47e3-9be8-8d324809756f] | 26 | X-Request-Id: [4664e69f-5eb3-4914-b582-311b223d1742] |
28 | X-Runtime: ['0.024519'] | 27 | X-Runtime: ['0.027990'] |
29 | X-XSS-Protection: [1; mode=block] | 28 | X-XSS-Protection: [1; mode=block] |
30 | content-length: ['228'] | 29 | content-length: ['228'] |
31 | status: {code: 200, message: OK} | 30 | status: {code: 200, message: OK} |
@@ -42,11 +41,10 @@ interactions: | |||
42 | method: PUT | 41 | method: PUT |
43 | uri: http://localhost:3000/api/v1/push/subscription | 42 | uri: http://localhost:3000/api/v1/push/subscription |
44 | response: | 43 | response: |
45 | body: {string: '{"id":8,"endpoint":"https://example.com","alerts":{"follow":"True","favourite":"True","reblog":"True","mention":"True"},"server_key":"BP3YHleCxMqxCT6NGjNfl8rRj9BVI9ZGr3xLNzK53Uf0AcMo2VUFgAtdwQBfGofTb48sImPX-LRHTZgmZACu8A0="}'} | 44 | body: {string: '{"id":2,"endpoint":"https://example.com","alerts":{"follow":"True","favourite":"True","reblog":"True","mention":"True"},"server_key":"BDoiaZnI8zQeheo5OzO3lDE5gn63dlzoaHrLTP7tctyKW-hj8yFIvIfWyCp8e-dT8kpJd9Ru7Sd-TTO2DXYgvwI="}'} |
46 | headers: | 45 | headers: |
47 | Cache-Control: ['max-age=0, private, must-revalidate'] | 46 | Cache-Control: ['no-cache, no-store'] |
48 | Content-Type: [application/json; charset=utf-8] | 47 | Content-Type: [application/json; charset=utf-8] |
49 | ETag: [W/"5df558b00f6a5c9e0f94f4c8e4505b33"] | ||
50 | Referrer-Policy: [strict-origin-when-cross-origin] | 48 | Referrer-Policy: [strict-origin-when-cross-origin] |
51 | Transfer-Encoding: [chunked] | 49 | Transfer-Encoding: [chunked] |
52 | Vary: ['Accept-Encoding, Origin'] | 50 | Vary: ['Accept-Encoding, Origin'] |
@@ -54,8 +52,8 @@ interactions: | |||
54 | X-Download-Options: [noopen] | 52 | X-Download-Options: [noopen] |
55 | X-Frame-Options: [SAMEORIGIN] | 53 | X-Frame-Options: [SAMEORIGIN] |
56 | X-Permitted-Cross-Domain-Policies: [none] | 54 | X-Permitted-Cross-Domain-Policies: [none] |
57 | X-Request-Id: [2f636234-36ea-49e5-ab5c-7b2c0e0b1a6d] | 55 | X-Request-Id: [8c70a605-241a-4428-8c83-449b6a9a09a9] |
58 | X-Runtime: ['0.020232'] | 56 | X-Runtime: ['0.018987'] |
59 | X-XSS-Protection: [1; mode=block] | 57 | X-XSS-Protection: [1; mode=block] |
60 | content-length: ['224'] | 58 | content-length: ['224'] |
61 | status: {code: 200, message: OK} | 59 | status: {code: 200, message: OK} |
@@ -70,11 +68,10 @@ interactions: | |||
70 | method: GET | 68 | method: GET |
71 | uri: http://localhost:3000/api/v1/push/subscription | 69 | uri: http://localhost:3000/api/v1/push/subscription |
72 | response: | 70 | response: |
73 | body: {string: '{"id":8,"endpoint":"https://example.com","alerts":{"follow":"True","favourite":"True","reblog":"True","mention":"True"},"server_key":"BP3YHleCxMqxCT6NGjNfl8rRj9BVI9ZGr3xLNzK53Uf0AcMo2VUFgAtdwQBfGofTb48sImPX-LRHTZgmZACu8A0="}'} | 71 | body: {string: '{"id":2,"endpoint":"https://example.com","alerts":{"follow":"True","favourite":"True","reblog":"True","mention":"True"},"server_key":"BDoiaZnI8zQeheo5OzO3lDE5gn63dlzoaHrLTP7tctyKW-hj8yFIvIfWyCp8e-dT8kpJd9Ru7Sd-TTO2DXYgvwI="}'} |
74 | headers: | 72 | headers: |
75 | Cache-Control: ['max-age=0, private, must-revalidate'] | 73 | Cache-Control: ['no-cache, no-store'] |
76 | Content-Type: [application/json; charset=utf-8] | 74 | Content-Type: [application/json; charset=utf-8] |
77 | ETag: [W/"0d6e9bdc5b0f821bfffd98651bb53f5d"] | ||
78 | Referrer-Policy: [strict-origin-when-cross-origin] | 75 | Referrer-Policy: [strict-origin-when-cross-origin] |
79 | Transfer-Encoding: [chunked] | 76 | Transfer-Encoding: [chunked] |
80 | Vary: ['Accept-Encoding, Origin'] | 77 | Vary: ['Accept-Encoding, Origin'] |
@@ -82,8 +79,8 @@ interactions: | |||
82 | X-Download-Options: [noopen] | 79 | X-Download-Options: [noopen] |
83 | X-Frame-Options: [SAMEORIGIN] | 80 | X-Frame-Options: [SAMEORIGIN] |
84 | X-Permitted-Cross-Domain-Policies: [none] | 81 | X-Permitted-Cross-Domain-Policies: [none] |
85 | X-Request-Id: [878a3b34-e985-4b71-994c-5302abd2e3ca] | 82 | X-Request-Id: [1637493b-ac39-482b-9872-6a377d574442] |
86 | X-Runtime: ['0.052652'] | 83 | X-Runtime: ['0.016466'] |
87 | X-XSS-Protection: [1; mode=block] | 84 | X-XSS-Protection: [1; mode=block] |
88 | content-length: ['224'] | 85 | content-length: ['224'] |
89 | status: {code: 200, message: OK} | 86 | status: {code: 200, message: OK} |
@@ -100,11 +97,10 @@ interactions: | |||
100 | method: PUT | 97 | method: PUT |
101 | uri: http://localhost:3000/api/v1/push/subscription | 98 | uri: http://localhost:3000/api/v1/push/subscription |
102 | response: | 99 | response: |
103 | body: {string: '{"id":8,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BP3YHleCxMqxCT6NGjNfl8rRj9BVI9ZGr3xLNzK53Uf0AcMo2VUFgAtdwQBfGofTb48sImPX-LRHTZgmZACu8A0="}'} | 100 | body: {string: '{"id":2,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BDoiaZnI8zQeheo5OzO3lDE5gn63dlzoaHrLTP7tctyKW-hj8yFIvIfWyCp8e-dT8kpJd9Ru7Sd-TTO2DXYgvwI="}'} |
104 | headers: | 101 | headers: |
105 | Cache-Control: ['max-age=0, private, must-revalidate'] | 102 | Cache-Control: ['no-cache, no-store'] |
106 | Content-Type: [application/json; charset=utf-8] | 103 | Content-Type: [application/json; charset=utf-8] |
107 | ETag: [W/"58efea622787388ae99d1c4e21701d46"] | ||
108 | Referrer-Policy: [strict-origin-when-cross-origin] | 104 | Referrer-Policy: [strict-origin-when-cross-origin] |
109 | Transfer-Encoding: [chunked] | 105 | Transfer-Encoding: [chunked] |
110 | Vary: ['Accept-Encoding, Origin'] | 106 | Vary: ['Accept-Encoding, Origin'] |
@@ -112,8 +108,8 @@ interactions: | |||
112 | X-Download-Options: [noopen] | 108 | X-Download-Options: [noopen] |
113 | X-Frame-Options: [SAMEORIGIN] | 109 | X-Frame-Options: [SAMEORIGIN] |
114 | X-Permitted-Cross-Domain-Policies: [none] | 110 | X-Permitted-Cross-Domain-Policies: [none] |
115 | X-Request-Id: [7a27b5cc-f810-4ea6-ad96-fac6810f5747] | 111 | X-Request-Id: [0664fb73-af67-4cbb-ab55-f4cfdf0e5a22] |
116 | X-Runtime: ['0.026188'] | 112 | X-Runtime: ['0.027340'] |
117 | X-XSS-Protection: [1; mode=block] | 113 | X-XSS-Protection: [1; mode=block] |
118 | content-length: ['228'] | 114 | content-length: ['228'] |
119 | status: {code: 200, message: OK} | 115 | status: {code: 200, message: OK} |
@@ -128,11 +124,10 @@ interactions: | |||
128 | method: GET | 124 | method: GET |
129 | uri: http://localhost:3000/api/v1/push/subscription | 125 | uri: http://localhost:3000/api/v1/push/subscription |
130 | response: | 126 | response: |
131 | body: {string: '{"id":8,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BP3YHleCxMqxCT6NGjNfl8rRj9BVI9ZGr3xLNzK53Uf0AcMo2VUFgAtdwQBfGofTb48sImPX-LRHTZgmZACu8A0="}'} | 127 | body: {string: '{"id":2,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BDoiaZnI8zQeheo5OzO3lDE5gn63dlzoaHrLTP7tctyKW-hj8yFIvIfWyCp8e-dT8kpJd9Ru7Sd-TTO2DXYgvwI="}'} |
132 | headers: | 128 | headers: |
133 | Cache-Control: ['max-age=0, private, must-revalidate'] | 129 | Cache-Control: ['no-cache, no-store'] |
134 | Content-Type: [application/json; charset=utf-8] | 130 | Content-Type: [application/json; charset=utf-8] |
135 | ETag: [W/"7968a6fb2a6f4e3cb959f29ba1bd38d5"] | ||
136 | Referrer-Policy: [strict-origin-when-cross-origin] | 131 | Referrer-Policy: [strict-origin-when-cross-origin] |
137 | Transfer-Encoding: [chunked] | 132 | Transfer-Encoding: [chunked] |
138 | Vary: ['Accept-Encoding, Origin'] | 133 | Vary: ['Accept-Encoding, Origin'] |
@@ -140,8 +135,8 @@ interactions: | |||
140 | X-Download-Options: [noopen] | 135 | X-Download-Options: [noopen] |
141 | X-Frame-Options: [SAMEORIGIN] | 136 | X-Frame-Options: [SAMEORIGIN] |
142 | X-Permitted-Cross-Domain-Policies: [none] | 137 | X-Permitted-Cross-Domain-Policies: [none] |
143 | X-Request-Id: [9eeec92f-a9b0-427d-b266-affaaf8f7f98] | 138 | X-Request-Id: [fe12165a-06c0-4bce-9eb3-037c6828f0cf] |
144 | X-Runtime: ['0.035473'] | 139 | X-Runtime: ['0.022023'] |
145 | X-XSS-Protection: [1; mode=block] | 140 | X-XSS-Protection: [1; mode=block] |
146 | content-length: ['228'] | 141 | content-length: ['228'] |
147 | status: {code: 200, message: OK} | 142 | status: {code: 200, message: OK} |