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 7f6527b..5ba387d 100644 --- a/tests/cassettes/test_push_update.yaml +++ b/tests/cassettes/test_push_update.yaml | |||
@@ -1,22 +1,22 @@ | |||
1 | interactions: | 1 | interactions: |
2 | - request: | 2 | - request: |
3 | body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BNf5vOWrGdkIa%2B0ymfGGguAJJqG0vJgw%2FXYtQaQBAf67LUQj7wL61kqqR%2F4JTjXJFu%2FXBbp%2FudchIsmU556gb9Y%3D&subscription%5Bkeys%5D%5Bauth%5D=KYw%2BrnihQdlsaTlYIsFwXw%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=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 |
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: ['396'] | 9 | Content-Length: ['394'] |
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":"BFUzywftzA81kLihlpi_bTniTwxuGp_D2gX9CHRq4qJQJgsKQUFyc8juKZ-fHMR6YxnA1A1qhgVvMTChH21CMhY="}'} | 15 | body: {string: '{"id":8,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BP3YHleCxMqxCT6NGjNfl8rRj9BVI9ZGr3xLNzK53Uf0AcMo2VUFgAtdwQBfGofTb48sImPX-LRHTZgmZACu8A0="}'} |
16 | headers: | 16 | headers: |
17 | Cache-Control: ['max-age=0, private, must-revalidate'] | 17 | Cache-Control: ['max-age=0, private, must-revalidate'] |
18 | Content-Type: [application/json; charset=utf-8] | 18 | Content-Type: [application/json; charset=utf-8] |
19 | ETag: [W/"cb873fcf08406f258972bef68fe34f3e"] | 19 | ETag: [W/"a9f714714ecf13be238f8e14137ad705"] |
20 | Referrer-Policy: [strict-origin-when-cross-origin] | 20 | Referrer-Policy: [strict-origin-when-cross-origin] |
21 | Transfer-Encoding: [chunked] | 21 | Transfer-Encoding: [chunked] |
22 | Vary: ['Accept-Encoding, Origin'] | 22 | Vary: ['Accept-Encoding, Origin'] |
@@ -24,8 +24,8 @@ interactions: | |||
24 | X-Download-Options: [noopen] | 24 | X-Download-Options: [noopen] |
25 | X-Frame-Options: [SAMEORIGIN] | 25 | X-Frame-Options: [SAMEORIGIN] |
26 | X-Permitted-Cross-Domain-Policies: [none] | 26 | X-Permitted-Cross-Domain-Policies: [none] |
27 | X-Request-Id: [dc740d07-571d-40a7-850e-d62d16771f6b] | 27 | X-Request-Id: [6689cc6f-dd12-47e3-9be8-8d324809756f] |
28 | X-Runtime: ['0.037476'] | 28 | X-Runtime: ['0.024519'] |
29 | X-XSS-Protection: [1; mode=block] | 29 | X-XSS-Protection: [1; mode=block] |
30 | content-length: ['228'] | 30 | content-length: ['228'] |
31 | status: {code: 200, message: OK} | 31 | status: {code: 200, message: OK} |
@@ -42,11 +42,11 @@ interactions: | |||
42 | method: PUT | 42 | method: PUT |
43 | uri: http://localhost:3000/api/v1/push/subscription | 43 | uri: http://localhost:3000/api/v1/push/subscription |
44 | response: | 44 | response: |
45 | body: {string: '{"id":8,"endpoint":"https://example.com","alerts":{"follow":"True","favourite":"True","reblog":"True","mention":"True"},"server_key":"BFUzywftzA81kLihlpi_bTniTwxuGp_D2gX9CHRq4qJQJgsKQUFyc8juKZ-fHMR6YxnA1A1qhgVvMTChH21CMhY="}'} | 45 | body: {string: '{"id":8,"endpoint":"https://example.com","alerts":{"follow":"True","favourite":"True","reblog":"True","mention":"True"},"server_key":"BP3YHleCxMqxCT6NGjNfl8rRj9BVI9ZGr3xLNzK53Uf0AcMo2VUFgAtdwQBfGofTb48sImPX-LRHTZgmZACu8A0="}'} |
46 | headers: | 46 | headers: |
47 | Cache-Control: ['max-age=0, private, must-revalidate'] | 47 | Cache-Control: ['max-age=0, private, must-revalidate'] |
48 | Content-Type: [application/json; charset=utf-8] | 48 | Content-Type: [application/json; charset=utf-8] |
49 | ETag: [W/"3aa680a6852f654c4978e92abac3835b"] | 49 | ETag: [W/"5df558b00f6a5c9e0f94f4c8e4505b33"] |
50 | Referrer-Policy: [strict-origin-when-cross-origin] | 50 | Referrer-Policy: [strict-origin-when-cross-origin] |
51 | Transfer-Encoding: [chunked] | 51 | Transfer-Encoding: [chunked] |
52 | Vary: ['Accept-Encoding, Origin'] | 52 | Vary: ['Accept-Encoding, Origin'] |
@@ -54,8 +54,8 @@ interactions: | |||
54 | X-Download-Options: [noopen] | 54 | X-Download-Options: [noopen] |
55 | X-Frame-Options: [SAMEORIGIN] | 55 | X-Frame-Options: [SAMEORIGIN] |
56 | X-Permitted-Cross-Domain-Policies: [none] | 56 | X-Permitted-Cross-Domain-Policies: [none] |
57 | X-Request-Id: [9c0f65db-6c7d-4a33-8b36-7dcc2538d739] | 57 | X-Request-Id: [2f636234-36ea-49e5-ab5c-7b2c0e0b1a6d] |
58 | X-Runtime: ['0.027803'] | 58 | X-Runtime: ['0.020232'] |
59 | X-XSS-Protection: [1; mode=block] | 59 | X-XSS-Protection: [1; mode=block] |
60 | content-length: ['224'] | 60 | content-length: ['224'] |
61 | status: {code: 200, message: OK} | 61 | status: {code: 200, message: OK} |
@@ -70,11 +70,11 @@ interactions: | |||
70 | method: GET | 70 | method: GET |
71 | uri: http://localhost:3000/api/v1/push/subscription | 71 | uri: http://localhost:3000/api/v1/push/subscription |
72 | response: | 72 | response: |
73 | body: {string: '{"id":8,"endpoint":"https://example.com","alerts":{"follow":"True","favourite":"True","reblog":"True","mention":"True"},"server_key":"BFUzywftzA81kLihlpi_bTniTwxuGp_D2gX9CHRq4qJQJgsKQUFyc8juKZ-fHMR6YxnA1A1qhgVvMTChH21CMhY="}'} | 73 | body: {string: '{"id":8,"endpoint":"https://example.com","alerts":{"follow":"True","favourite":"True","reblog":"True","mention":"True"},"server_key":"BP3YHleCxMqxCT6NGjNfl8rRj9BVI9ZGr3xLNzK53Uf0AcMo2VUFgAtdwQBfGofTb48sImPX-LRHTZgmZACu8A0="}'} |
74 | headers: | 74 | headers: |
75 | Cache-Control: ['max-age=0, private, must-revalidate'] | 75 | Cache-Control: ['max-age=0, private, must-revalidate'] |
76 | Content-Type: [application/json; charset=utf-8] | 76 | Content-Type: [application/json; charset=utf-8] |
77 | ETag: [W/"c634d8dcb9a3ad60e3dafc74cc311246"] | 77 | ETag: [W/"0d6e9bdc5b0f821bfffd98651bb53f5d"] |
78 | Referrer-Policy: [strict-origin-when-cross-origin] | 78 | Referrer-Policy: [strict-origin-when-cross-origin] |
79 | Transfer-Encoding: [chunked] | 79 | Transfer-Encoding: [chunked] |
80 | Vary: ['Accept-Encoding, Origin'] | 80 | Vary: ['Accept-Encoding, Origin'] |
@@ -82,8 +82,8 @@ interactions: | |||
82 | X-Download-Options: [noopen] | 82 | X-Download-Options: [noopen] |
83 | X-Frame-Options: [SAMEORIGIN] | 83 | X-Frame-Options: [SAMEORIGIN] |
84 | X-Permitted-Cross-Domain-Policies: [none] | 84 | X-Permitted-Cross-Domain-Policies: [none] |
85 | X-Request-Id: [bc57a4d9-d409-41ea-9a73-5831798fc911] | 85 | X-Request-Id: [878a3b34-e985-4b71-994c-5302abd2e3ca] |
86 | X-Runtime: ['0.040363'] | 86 | X-Runtime: ['0.052652'] |
87 | X-XSS-Protection: [1; mode=block] | 87 | X-XSS-Protection: [1; mode=block] |
88 | content-length: ['224'] | 88 | content-length: ['224'] |
89 | status: {code: 200, message: OK} | 89 | status: {code: 200, message: OK} |
@@ -100,11 +100,11 @@ interactions: | |||
100 | method: PUT | 100 | method: PUT |
101 | uri: http://localhost:3000/api/v1/push/subscription | 101 | uri: http://localhost:3000/api/v1/push/subscription |
102 | response: | 102 | response: |
103 | body: {string: '{"id":8,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BFUzywftzA81kLihlpi_bTniTwxuGp_D2gX9CHRq4qJQJgsKQUFyc8juKZ-fHMR6YxnA1A1qhgVvMTChH21CMhY="}'} | 103 | body: {string: '{"id":8,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BP3YHleCxMqxCT6NGjNfl8rRj9BVI9ZGr3xLNzK53Uf0AcMo2VUFgAtdwQBfGofTb48sImPX-LRHTZgmZACu8A0="}'} |
104 | headers: | 104 | headers: |
105 | Cache-Control: ['max-age=0, private, must-revalidate'] | 105 | Cache-Control: ['max-age=0, private, must-revalidate'] |
106 | Content-Type: [application/json; charset=utf-8] | 106 | Content-Type: [application/json; charset=utf-8] |
107 | ETag: [W/"20acfc2e3be503e3b91d0643fe1b99e4"] | 107 | ETag: [W/"58efea622787388ae99d1c4e21701d46"] |
108 | Referrer-Policy: [strict-origin-when-cross-origin] | 108 | Referrer-Policy: [strict-origin-when-cross-origin] |
109 | Transfer-Encoding: [chunked] | 109 | Transfer-Encoding: [chunked] |
110 | Vary: ['Accept-Encoding, Origin'] | 110 | Vary: ['Accept-Encoding, Origin'] |
@@ -112,8 +112,8 @@ interactions: | |||
112 | X-Download-Options: [noopen] | 112 | X-Download-Options: [noopen] |
113 | X-Frame-Options: [SAMEORIGIN] | 113 | X-Frame-Options: [SAMEORIGIN] |
114 | X-Permitted-Cross-Domain-Policies: [none] | 114 | X-Permitted-Cross-Domain-Policies: [none] |
115 | X-Request-Id: [77fdd51d-3d92-4512-88b4-8c71bf87e399] | 115 | X-Request-Id: [7a27b5cc-f810-4ea6-ad96-fac6810f5747] |
116 | X-Runtime: ['0.063999'] | 116 | X-Runtime: ['0.026188'] |
117 | X-XSS-Protection: [1; mode=block] | 117 | X-XSS-Protection: [1; mode=block] |
118 | content-length: ['228'] | 118 | content-length: ['228'] |
119 | status: {code: 200, message: OK} | 119 | status: {code: 200, message: OK} |
@@ -128,11 +128,11 @@ interactions: | |||
128 | method: GET | 128 | method: GET |
129 | uri: http://localhost:3000/api/v1/push/subscription | 129 | uri: http://localhost:3000/api/v1/push/subscription |
130 | response: | 130 | response: |
131 | body: {string: '{"id":8,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BFUzywftzA81kLihlpi_bTniTwxuGp_D2gX9CHRq4qJQJgsKQUFyc8juKZ-fHMR6YxnA1A1qhgVvMTChH21CMhY="}'} | 131 | body: {string: '{"id":8,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BP3YHleCxMqxCT6NGjNfl8rRj9BVI9ZGr3xLNzK53Uf0AcMo2VUFgAtdwQBfGofTb48sImPX-LRHTZgmZACu8A0="}'} |
132 | headers: | 132 | headers: |
133 | Cache-Control: ['max-age=0, private, must-revalidate'] | 133 | Cache-Control: ['max-age=0, private, must-revalidate'] |
134 | Content-Type: [application/json; charset=utf-8] | 134 | Content-Type: [application/json; charset=utf-8] |
135 | ETag: [W/"c87557e258dc7ac7ab2aa5f083020884"] | 135 | ETag: [W/"7968a6fb2a6f4e3cb959f29ba1bd38d5"] |
136 | Referrer-Policy: [strict-origin-when-cross-origin] | 136 | Referrer-Policy: [strict-origin-when-cross-origin] |
137 | Transfer-Encoding: [chunked] | 137 | Transfer-Encoding: [chunked] |
138 | Vary: ['Accept-Encoding, Origin'] | 138 | Vary: ['Accept-Encoding, Origin'] |
@@ -140,8 +140,8 @@ interactions: | |||
140 | X-Download-Options: [noopen] | 140 | X-Download-Options: [noopen] |
141 | X-Frame-Options: [SAMEORIGIN] | 141 | X-Frame-Options: [SAMEORIGIN] |
142 | X-Permitted-Cross-Domain-Policies: [none] | 142 | X-Permitted-Cross-Domain-Policies: [none] |
143 | X-Request-Id: [fe7eb705-967f-40a8-9b76-416b6f2d8879] | 143 | X-Request-Id: [9eeec92f-a9b0-427d-b266-affaaf8f7f98] |
144 | X-Runtime: ['0.031638'] | 144 | X-Runtime: ['0.035473'] |
145 | X-XSS-Protection: [1; mode=block] | 145 | X-XSS-Protection: [1; mode=block] |
146 | content-length: ['228'] | 146 | content-length: ['228'] |
147 | status: {code: 200, message: OK} | 147 | status: {code: 200, message: OK} |