aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2018-07-30 23:19:51 +0200
committerLorenz Diener <[email protected]>2018-07-30 23:19:51 +0200
commitd0c71b1a8497a3047f630cd1926f803a5190d7aa (patch)
treef52a76a1160e768de4519e31548a5d1cb1c29c6f /tests/cassettes/test_push_update.yaml
parent8b06b53ed50e41411857181e4881e54823ed661b (diff)
downloadmastodon.py-d0c71b1a8497a3047f630cd1926f803a5190d7aa.tar.gz
Fresh set of tests pre-release
Diffstat (limited to 'tests/cassettes/test_push_update.yaml')
-rw-r--r--tests/cassettes/test_push_update.yaml44
1 files changed, 22 insertions, 22 deletions
diff --git a/tests/cassettes/test_push_update.yaml b/tests/cassettes/test_push_update.yaml
index 531a698..7f6527b 100644
--- a/tests/cassettes/test_push_update.yaml
+++ b/tests/cassettes/test_push_update.yaml
@@ -1,22 +1,22 @@
1interactions: 1interactions:
2- request: 2- request:
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 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
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: ['388'] 9 Content-Length: ['396']
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":5,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BC0l_ldr_Wvytg6fB3PdfeZx8NNB0E0UL2xIOtLfwumKtHTby9zdL0UdeqEQQJcKI6ZGqWoFD6OSkT7aRHKJmX8="}'} 15 body: {string: '{"id":8,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BFUzywftzA81kLihlpi_bTniTwxuGp_D2gX9CHRq4qJQJgsKQUFyc8juKZ-fHMR6YxnA1A1qhgVvMTChH21CMhY="}'}
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/"252094381c7d9c858fa5575db429db14"] 19 ETag: [W/"cb873fcf08406f258972bef68fe34f3e"]
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: [4cef0e38-16bc-4e0d-afbb-43ab53094996] 27 X-Request-Id: [dc740d07-571d-40a7-850e-d62d16771f6b]
28 X-Runtime: ['0.030632'] 28 X-Runtime: ['0.037476']
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":5,"endpoint":"https://example.com","alerts":{"follow":"True","favourite":"True","reblog":"True","mention":"True"},"server_key":"BC0l_ldr_Wvytg6fB3PdfeZx8NNB0E0UL2xIOtLfwumKtHTby9zdL0UdeqEQQJcKI6ZGqWoFD6OSkT7aRHKJmX8="}'} 45 body: {string: '{"id":8,"endpoint":"https://example.com","alerts":{"follow":"True","favourite":"True","reblog":"True","mention":"True"},"server_key":"BFUzywftzA81kLihlpi_bTniTwxuGp_D2gX9CHRq4qJQJgsKQUFyc8juKZ-fHMR6YxnA1A1qhgVvMTChH21CMhY="}'}
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/"0e38c3ae2e417768d42b98066b8d8ad6"] 49 ETag: [W/"3aa680a6852f654c4978e92abac3835b"]
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: [dd447739-83b1-4ddd-a31e-83d4c63ffc25] 57 X-Request-Id: [9c0f65db-6c7d-4a33-8b36-7dcc2538d739]
58 X-Runtime: ['0.039073'] 58 X-Runtime: ['0.027803']
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":5,"endpoint":"https://example.com","alerts":{"follow":"True","favourite":"True","reblog":"True","mention":"True"},"server_key":"BC0l_ldr_Wvytg6fB3PdfeZx8NNB0E0UL2xIOtLfwumKtHTby9zdL0UdeqEQQJcKI6ZGqWoFD6OSkT7aRHKJmX8="}'} 73 body: {string: '{"id":8,"endpoint":"https://example.com","alerts":{"follow":"True","favourite":"True","reblog":"True","mention":"True"},"server_key":"BFUzywftzA81kLihlpi_bTniTwxuGp_D2gX9CHRq4qJQJgsKQUFyc8juKZ-fHMR6YxnA1A1qhgVvMTChH21CMhY="}'}
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/"5887f72cb22fcc3a8e96c458d6c5da50"] 77 ETag: [W/"c634d8dcb9a3ad60e3dafc74cc311246"]
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: [f07be2a8-d9c9-49f9-8735-09b3248468e3] 85 X-Request-Id: [bc57a4d9-d409-41ea-9a73-5831798fc911]
86 X-Runtime: ['0.014578'] 86 X-Runtime: ['0.040363']
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":5,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BC0l_ldr_Wvytg6fB3PdfeZx8NNB0E0UL2xIOtLfwumKtHTby9zdL0UdeqEQQJcKI6ZGqWoFD6OSkT7aRHKJmX8="}'} 103 body: {string: '{"id":8,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BFUzywftzA81kLihlpi_bTniTwxuGp_D2gX9CHRq4qJQJgsKQUFyc8juKZ-fHMR6YxnA1A1qhgVvMTChH21CMhY="}'}
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/"84dcf2c7f2f39c087d9780aaf15bc109"] 107 ETag: [W/"20acfc2e3be503e3b91d0643fe1b99e4"]
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: [e2ed4297-a2f1-48d5-abcb-a732116ac8d0] 115 X-Request-Id: [77fdd51d-3d92-4512-88b4-8c71bf87e399]
116 X-Runtime: ['0.027530'] 116 X-Runtime: ['0.063999']
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":5,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BC0l_ldr_Wvytg6fB3PdfeZx8NNB0E0UL2xIOtLfwumKtHTby9zdL0UdeqEQQJcKI6ZGqWoFD6OSkT7aRHKJmX8="}'} 131 body: {string: '{"id":8,"endpoint":"https://example.com","alerts":{"follow":"False","favourite":"False","reblog":"False","mention":"False"},"server_key":"BFUzywftzA81kLihlpi_bTniTwxuGp_D2gX9CHRq4qJQJgsKQUFyc8juKZ-fHMR6YxnA1A1qhgVvMTChH21CMhY="}'}
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/"ebbdc78441110323a7cb3fdadd400172"] 135 ETag: [W/"c87557e258dc7ac7ab2aa5f083020884"]
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: [392eb7c7-79dd-40b1-b55c-6f0d88028ac4] 143 X-Request-Id: [fe7eb705-967f-40a8-9b76-416b6f2d8879]
144 X-Runtime: ['0.016925'] 144 X-Runtime: ['0.031638']
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}
Powered by cgit v1.2.3 (git 2.41.0)