diff options
author | Lorenz Diener <[email protected]> | 2018-07-14 01:07:26 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2018-07-14 01:07:26 +0200 |
commit | 65b1f41e65d5f20136de0bd01f154ecf4134eaf8 (patch) | |
tree | 6cb000bf369c5eda54f3ce4dcc5636437a20e9e0 /tests/cassettes/test_push_update.yaml | |
parent | 91de8ca061524712cae1d1b327cc2b2881c37548 (diff) | |
download | mastodon.py-65b1f41e65d5f20136de0bd01f154ecf4134eaf8.tar.gz |
Rerun all tests
Diffstat (limited to 'tests/cassettes/test_push_update.yaml')
-rw-r--r-- | tests/cassettes/test_push_update.yaml | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/tests/cassettes/test_push_update.yaml b/tests/cassettes/test_push_update.yaml index d104e16..531a698 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: 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 | 3 | body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BEezdIcRPItLy97aGLxjarOo9Tr3SR2t%2BugBHlmW5XBjh1km%2FBzh386YxTuuQmFHTgauuKsA916TqjroIlR3YXo%3D&subscription%5Bkeys%5D%5Bauth%5D=UWQyKZpYhAOJlafZFBGQUg%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: ['398'] | 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.9.1] | 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":"BEFgv48oiSIH0eOGT7FydL1ukygGBCLjUDocQJQABVZuFedxZr3QRjZQQvaVVrtMALGqQj9Skemt34NvshOvhyo="}'} | 15 | body: {string: '{"id":5,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BC0l_ldr_Wvytg6fB3PdfeZx8NNB0E0UL2xIOtLfwumKtHTby9zdL0UdeqEQQJcKI6ZGqWoFD6OSkT7aRHKJmX8="}'} |
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/"b5b71aae730fd5d31b23f14fdd57c42f"] | 19 | ETag: [W/"252094381c7d9c858fa5575db429db14"] |
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,13 +24,13 @@ 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: [9fada085-29a3-4666-8c07-2021409541bf] | 27 | X-Request-Id: [4cef0e38-16bc-4e0d-afbb-43ab53094996] |
28 | X-Runtime: ['0.049096'] | 28 | X-Runtime: ['0.030632'] |
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} |
32 | - request: | 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 | 33 | 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 |
34 | headers: | 34 | headers: |
35 | Accept: ['*/*'] | 35 | Accept: ['*/*'] |
36 | Accept-Encoding: ['gzip, deflate'] | 36 | Accept-Encoding: ['gzip, deflate'] |
@@ -38,15 +38,15 @@ interactions: | |||
38 | Connection: [keep-alive] | 38 | Connection: [keep-alive] |
39 | Content-Length: ['139'] | 39 | Content-Length: ['139'] |
40 | Content-Type: [application/x-www-form-urlencoded] | 40 | Content-Type: [application/x-www-form-urlencoded] |
41 | User-Agent: [python-requests/2.9.1] | 41 | User-Agent: [python-requests/2.18.4] |
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":"BEFgv48oiSIH0eOGT7FydL1ukygGBCLjUDocQJQABVZuFedxZr3QRjZQQvaVVrtMALGqQj9Skemt34NvshOvhyo="}'} | 45 | body: {string: '{"id":5,"endpoint":"https://example.com","alerts":{"follow":"True","favourite":"True","reblog":"True","mention":"True"},"server_key":"BC0l_ldr_Wvytg6fB3PdfeZx8NNB0E0UL2xIOtLfwumKtHTby9zdL0UdeqEQQJcKI6ZGqWoFD6OSkT7aRHKJmX8="}'} |
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/"3fafedf49e495c0eb69b2da4d976d97d"] | 49 | ETag: [W/"0e38c3ae2e417768d42b98066b8d8ad6"] |
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: [2f6d8ac9-9650-4ec4-b3fe-79885e3cfc56] | 57 | X-Request-Id: [dd447739-83b1-4ddd-a31e-83d4c63ffc25] |
58 | X-Runtime: ['0.029778'] | 58 | X-Runtime: ['0.039073'] |
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} |
@@ -66,15 +66,15 @@ interactions: | |||
66 | Accept-Encoding: ['gzip, deflate'] | 66 | Accept-Encoding: ['gzip, deflate'] |
67 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 67 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] |
68 | Connection: [keep-alive] | 68 | Connection: [keep-alive] |
69 | User-Agent: [python-requests/2.9.1] | 69 | User-Agent: [python-requests/2.18.4] |
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":"BEFgv48oiSIH0eOGT7FydL1ukygGBCLjUDocQJQABVZuFedxZr3QRjZQQvaVVrtMALGqQj9Skemt34NvshOvhyo="}'} | 73 | body: {string: '{"id":5,"endpoint":"https://example.com","alerts":{"follow":"True","favourite":"True","reblog":"True","mention":"True"},"server_key":"BC0l_ldr_Wvytg6fB3PdfeZx8NNB0E0UL2xIOtLfwumKtHTby9zdL0UdeqEQQJcKI6ZGqWoFD6OSkT7aRHKJmX8="}'} |
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/"66ba38489a2226cf55fafd76860b1384"] | 77 | ETag: [W/"5887f72cb22fcc3a8e96c458d6c5da50"] |
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,13 +82,13 @@ 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: [36c25fd1-46b4-47aa-ada8-c8fe3e5d5a97] | 85 | X-Request-Id: [f07be2a8-d9c9-49f9-8735-09b3248468e3] |
86 | X-Runtime: ['0.024214'] | 86 | X-Runtime: ['0.014578'] |
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} |
90 | - request: | 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 | 91 | 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 |
92 | headers: | 92 | headers: |
93 | Accept: ['*/*'] | 93 | Accept: ['*/*'] |
94 | Accept-Encoding: ['gzip, deflate'] | 94 | Accept-Encoding: ['gzip, deflate'] |
@@ -96,15 +96,15 @@ interactions: | |||
96 | Connection: [keep-alive] | 96 | Connection: [keep-alive] |
97 | Content-Length: ['143'] | 97 | Content-Length: ['143'] |
98 | Content-Type: [application/x-www-form-urlencoded] | 98 | Content-Type: [application/x-www-form-urlencoded] |
99 | User-Agent: [python-requests/2.9.1] | 99 | User-Agent: [python-requests/2.18.4] |
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":"BEFgv48oiSIH0eOGT7FydL1ukygGBCLjUDocQJQABVZuFedxZr3QRjZQQvaVVrtMALGqQj9Skemt34NvshOvhyo="}'} | 103 | body: {string: '{"id":5,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BC0l_ldr_Wvytg6fB3PdfeZx8NNB0E0UL2xIOtLfwumKtHTby9zdL0UdeqEQQJcKI6ZGqWoFD6OSkT7aRHKJmX8="}'} |
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/"aaa8530ccca182b42e8f076f1da2f112"] | 107 | ETag: [W/"84dcf2c7f2f39c087d9780aaf15bc109"] |
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: [40893dfd-87c5-4886-9938-69e93d0578c6] | 115 | X-Request-Id: [e2ed4297-a2f1-48d5-abcb-a732116ac8d0] |
116 | X-Runtime: ['0.049371'] | 116 | X-Runtime: ['0.027530'] |
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} |
@@ -124,15 +124,15 @@ interactions: | |||
124 | Accept-Encoding: ['gzip, deflate'] | 124 | Accept-Encoding: ['gzip, deflate'] |
125 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 125 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] |
126 | Connection: [keep-alive] | 126 | Connection: [keep-alive] |
127 | User-Agent: [python-requests/2.9.1] | 127 | User-Agent: [python-requests/2.18.4] |
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":"BEFgv48oiSIH0eOGT7FydL1ukygGBCLjUDocQJQABVZuFedxZr3QRjZQQvaVVrtMALGqQj9Skemt34NvshOvhyo="}'} | 131 | body: {string: '{"id":5,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BC0l_ldr_Wvytg6fB3PdfeZx8NNB0E0UL2xIOtLfwumKtHTby9zdL0UdeqEQQJcKI6ZGqWoFD6OSkT7aRHKJmX8="}'} |
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/"e403993b72df1ff96f98eb99b4e6ff85"] | 135 | ETag: [W/"ebbdc78441110323a7cb3fdadd400172"] |
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: [bb02d1ad-37d7-4496-b136-ba085b60a774] | 143 | X-Request-Id: [392eb7c7-79dd-40b1-b55c-6f0d88028ac4] |
144 | X-Runtime: ['0.022633'] | 144 | X-Runtime: ['0.016925'] |
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} |