diff options
Diffstat (limited to 'tests/cassettes/test_stream_user_local.yaml')
-rw-r--r-- | tests/cassettes/test_stream_user_local.yaml | 120 |
1 files changed, 16 insertions, 104 deletions
diff --git a/tests/cassettes/test_stream_user_local.yaml b/tests/cassettes/test_stream_user_local.yaml index 0b7b172..c67b3e0 100644 --- a/tests/cassettes/test_stream_user_local.yaml +++ b/tests/cassettes/test_stream_user_local.yaml | |||
@@ -10,17 +10,17 @@ interactions: | |||
10 | method: GET | 10 | method: GET |
11 | uri: http://localhost:3000/api/v1/instance/ | 11 | uri: http://localhost:3000/api/v1/instance/ |
12 | response: | 12 | response: |
13 | body: {string: '{"uri":"localhost:3000","title":"Mastodon","description":"","email":"","version":"2.3.3","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":2,"status_count":168,"domain_count":0},"thumbnail":"http://localhost:3000/packs/preview.jpg","languages":["en"],"contact_account":null}'} | 13 | body: {string: '{"uri":"localhost:3000","title":"Mastodon","description":"","email":"","version":"2.3.3","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":2,"status_count":176,"domain_count":0},"thumbnail":"http://localhost:3000/packs/preview.jpg","languages":["en"],"contact_account":null}'} |
14 | headers: | 14 | headers: |
15 | Cache-Control: ['max-age=0, private, must-revalidate'] | 15 | Cache-Control: ['max-age=0, private, must-revalidate'] |
16 | Content-Type: [application/json; charset=utf-8] | 16 | Content-Type: [application/json; charset=utf-8] |
17 | ETag: [W/"9dcdc369320d2f0c962f1a06daed8db9"] | 17 | ETag: [W/"e7438609654ceaf29ee8473be78c6782"] |
18 | Transfer-Encoding: [chunked] | 18 | Transfer-Encoding: [chunked] |
19 | Vary: ['Accept-Encoding, Origin'] | 19 | Vary: ['Accept-Encoding, Origin'] |
20 | X-Content-Type-Options: [nosniff] | 20 | X-Content-Type-Options: [nosniff] |
21 | X-Frame-Options: [SAMEORIGIN] | 21 | X-Frame-Options: [SAMEORIGIN] |
22 | X-Request-Id: [2429f21b-a558-47f9-8bd3-4d3084a2680b] | 22 | X-Request-Id: [538a00d7-e3d9-40ab-b4a7-5ebe31b49edf] |
23 | X-Runtime: ['0.041377'] | 23 | X-Runtime: ['0.111461'] |
24 | X-XSS-Protection: [1; mode=block] | 24 | X-XSS-Protection: [1; mode=block] |
25 | content-length: ['293'] | 25 | content-length: ['293'] |
26 | status: {code: 200, message: OK} | 26 | status: {code: 200, message: OK} |
@@ -37,23 +37,23 @@ interactions: | |||
37 | method: POST | 37 | method: POST |
38 | uri: http://localhost:3000/api/v1/statuses | 38 | uri: http://localhost:3000/api/v1/statuses |
39 | response: | 39 | response: |
40 | body: {string: '{"id":"99979403680236480","created_at":"2018-05-05T23:57:11.361Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"fy","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99979403680236480","content":"\u003cp\u003eit\u0026apos;s | 40 | body: {string: '{"id":"99979654724997948","created_at":"2018-05-06T01:01:01.999Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"fy","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99979654724997948","content":"\u003cp\u003eit\u0026apos;s |
41 | cool guy\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99979403680236480","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | 41 | cool guy\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99979654724997948","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py |
42 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | 42 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John |
43 | Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI | 43 | Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI |
44 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","followers_count":0,"following_count":0,"statuses_count":127},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} | 44 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","followers_count":0,"following_count":0,"statuses_count":129},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} |
45 | headers: | 45 | headers: |
46 | Cache-Control: ['max-age=0, private, must-revalidate'] | 46 | Cache-Control: ['max-age=0, private, must-revalidate'] |
47 | Content-Type: [application/json; charset=utf-8] | 47 | Content-Type: [application/json; charset=utf-8] |
48 | ETag: [W/"121605cb0579eff7d8201d992e4d2cb1"] | 48 | ETag: [W/"ae8929212adac738456aad6638db6a8b"] |
49 | Transfer-Encoding: [chunked] | 49 | Transfer-Encoding: [chunked] |
50 | Vary: ['Accept-Encoding, Origin'] | 50 | Vary: ['Accept-Encoding, Origin'] |
51 | X-Content-Type-Options: [nosniff] | 51 | X-Content-Type-Options: [nosniff] |
52 | X-Frame-Options: [SAMEORIGIN] | 52 | X-Frame-Options: [SAMEORIGIN] |
53 | X-Request-Id: [e3123208-a5d0-47b5-82f4-fef3bc5054a5] | 53 | X-Request-Id: [77dcd227-6ee2-4358-a2de-6cc958590e0b] |
54 | X-Runtime: ['0.147603'] | 54 | X-Runtime: ['0.131181'] |
55 | X-XSS-Protection: [1; mode=block] | 55 | X-XSS-Protection: [1; mode=block] |
56 | content-length: ['1416'] | 56 | content-length: ['1420'] |
57 | status: {code: 200, message: OK} | 57 | status: {code: 200, message: OK} |
58 | - request: | 58 | - request: |
59 | body: null | 59 | body: null |
@@ -68,11 +68,11 @@ interactions: | |||
68 | response: | 68 | response: |
69 | body: {string: 'event: update | 69 | body: {string: 'event: update |
70 | 70 | ||
71 | data: {"id":"99979403680236480","created_at":"2018-05-05T23:57:11.361Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"fy","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99979403680236480","content":"<p>it's | 71 | data: {"id":"99979654724997948","created_at":"2018-05-06T01:01:01.999Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"fy","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99979654724997948","content":"<p>it's |
72 | cool guy</p>","url":"http://localhost:3000/@mastodonpy_test/99979403680236480","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | 72 | cool guy</p>","url":"http://localhost:3000/@mastodonpy_test/99979654724997948","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py |
73 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | 73 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John |
74 | Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"<p>I | 74 | Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"<p>I |
75 | walk funny</p>","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","followers_count":0,"following_count":0,"statuses_count":127},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]} | 75 | walk funny</p>","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","followers_count":0,"following_count":0,"statuses_count":129},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]} |
76 | 76 | ||
77 | 77 | ||
78 | '} | 78 | '} |
@@ -82,97 +82,9 @@ interactions: | |||
82 | Access-Control-Allow-Origin: ['*'] | 82 | Access-Control-Allow-Origin: ['*'] |
83 | Connection: [keep-alive] | 83 | Connection: [keep-alive] |
84 | Content-Type: [text/event-stream] | 84 | Content-Type: [text/event-stream] |
85 | Date: ['Sat, 05 May 2018 23:57:11 GMT'] | 85 | Date: ['Sun, 06 May 2018 01:01:02 GMT'] |
86 | Transfer-Encoding: [chunked] | 86 | Transfer-Encoding: [chunked] |
87 | X-Powered-By: [Express] | 87 | X-Powered-By: [Express] |
88 | X-Request-Id: [78347150-7ae6-453d-a423-187c71c50b2b] | 88 | X-Request-Id: [05121de6-5df0-4cac-a32b-a5830a322c71] |
89 | status: {code: 200, message: OK} | ||
90 | - request: | ||
91 | body: null | ||
92 | headers: | ||
93 | Accept: ['*/*'] | ||
94 | Accept-Encoding: ['gzip, deflate'] | ||
95 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
96 | Connection: [keep-alive] | ||
97 | User-Agent: [python-requests/2.9.1] | ||
98 | method: GET | ||
99 | uri: http://localhost:3000/api/v1/instance/ | ||
100 | response: | ||
101 | body: {string: '{"uri":"localhost:3000","title":"Mastodon","description":"","email":"","version":"2.3.3","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":2,"status_count":173,"domain_count":0},"thumbnail":"http://localhost:3000/packs/preview.jpg","languages":["en"],"contact_account":null}'} | ||
102 | headers: | ||
103 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
104 | Content-Type: [application/json; charset=utf-8] | ||
105 | ETag: [W/"4ea0e36d646260365a2d1414798974a6"] | ||
106 | Transfer-Encoding: [chunked] | ||
107 | Vary: ['Accept-Encoding, Origin'] | ||
108 | X-Content-Type-Options: [nosniff] | ||
109 | X-Frame-Options: [SAMEORIGIN] | ||
110 | X-Request-Id: [e8c8246d-d382-41d9-b7f1-d11fb0b74711] | ||
111 | X-Runtime: ['0.455622'] | ||
112 | X-XSS-Protection: [1; mode=block] | ||
113 | content-length: ['293'] | ||
114 | status: {code: 200, message: OK} | ||
115 | - request: | ||
116 | body: status=it%27s+cool+guy | ||
117 | headers: | ||
118 | Accept: ['*/*'] | ||
119 | Accept-Encoding: ['gzip, deflate'] | ||
120 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
121 | Connection: [keep-alive] | ||
122 | Content-Length: ['22'] | ||
123 | Content-Type: [application/x-www-form-urlencoded] | ||
124 | User-Agent: [python-requests/2.9.1] | ||
125 | method: POST | ||
126 | uri: http://localhost:3000/api/v1/statuses | ||
127 | response: | ||
128 | body: {string: '{"id":"99979411114866656","created_at":"2018-05-05T23:59:04.956Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"fy","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99979411114866656","content":"\u003cp\u003eit\u0026apos;s | ||
129 | cool guy\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99979411114866656","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | ||
130 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
131 | Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI | ||
132 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","followers_count":0,"following_count":0,"statuses_count":128},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} | ||
133 | headers: | ||
134 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
135 | Content-Type: [application/json; charset=utf-8] | ||
136 | ETag: [W/"37bc69af5d0ef985756917c50ebd21e9"] | ||
137 | Transfer-Encoding: [chunked] | ||
138 | Vary: ['Accept-Encoding, Origin'] | ||
139 | X-Content-Type-Options: [nosniff] | ||
140 | X-Frame-Options: [SAMEORIGIN] | ||
141 | X-Request-Id: [64080bdc-dd95-409c-a2ac-b24b5207ca86] | ||
142 | X-Runtime: ['0.553667'] | ||
143 | X-XSS-Protection: [1; mode=block] | ||
144 | content-length: ['1416'] | ||
145 | status: {code: 200, message: OK} | ||
146 | - request: | ||
147 | body: null | ||
148 | headers: | ||
149 | Accept: ['*/*'] | ||
150 | Accept-Encoding: ['gzip, deflate'] | ||
151 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
152 | Connection: [keep-alive] | ||
153 | User-Agent: [python-requests/2.9.1] | ||
154 | method: GET | ||
155 | uri: http://localhost:4000/api/v1/streaming/user | ||
156 | response: | ||
157 | body: {string: 'event: update | ||
158 | |||
159 | data: {"id":"99979411114866656","created_at":"2018-05-05T23:59:04.956Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"fy","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99979411114866656","content":"<p>it's | ||
160 | cool guy</p>","url":"http://localhost:3000/@mastodonpy_test/99979411114866656","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | ||
161 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
162 | Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"<p>I | ||
163 | walk funny</p>","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","followers_count":0,"following_count":0,"statuses_count":128},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]} | ||
164 | |||
165 | |||
166 | '} | ||
167 | headers: | ||
168 | Access-Control-Allow-Headers: ['Authorization, Accept, Cache-Control'] | ||
169 | Access-Control-Allow-Methods: ['GET, OPTIONS'] | ||
170 | Access-Control-Allow-Origin: ['*'] | ||
171 | Connection: [keep-alive] | ||
172 | Content-Type: [text/event-stream] | ||
173 | Date: ['Sat, 05 May 2018 23:59:05 GMT'] | ||
174 | Transfer-Encoding: [chunked] | ||
175 | X-Powered-By: [Express] | ||
176 | X-Request-Id: [824c3f23-264a-44cd-8c2a-55bf888c5ed3] | ||
177 | status: {code: 200, message: OK} | 89 | status: {code: 200, message: OK} |
178 | version: 1 | 90 | version: 1 |