diff options
Diffstat (limited to 'tests/cassettes/test_stream_direct.yaml')
-rw-r--r-- | tests/cassettes/test_stream_direct.yaml | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/cassettes/test_stream_direct.yaml b/tests/cassettes/test_stream_direct.yaml index e1646f2..7969848 100644 --- a/tests/cassettes/test_stream_direct.yaml +++ b/tests/cassettes/test_stream_direct.yaml | |||
@@ -10,12 +10,12 @@ 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","title":"Mastodon","short_description":"","description":"","email":"","version":"3.0.1","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":3,"status_count":32,"domain_count":0},"thumbnail":"http://localhost/packs/media/images/preview-9a17d32fc48369e8ccd910a75260e67d.jpg","languages":["en"],"registrations":true,"approval_required":false,"contact_account":null}'} | 13 | body: {string: '{"uri":"localhost","title":"Mastodon","short_description":"","description":"","email":"","version":"3.0.1","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":3,"status_count":35,"domain_count":0},"thumbnail":"http://localhost/packs/media/images/preview-9a17d32fc48369e8ccd910a75260e67d.jpg","languages":["en"],"registrations":true,"approval_required":false,"contact_account":null}'} |
14 | headers: | 14 | headers: |
15 | Cache-Control: ['max-age=180, public'] | 15 | Cache-Control: ['max-age=180, public'] |
16 | Content-Type: [application/json; charset=utf-8] | 16 | Content-Type: [application/json; charset=utf-8] |
17 | Date: ['Fri, 11 Oct 2019 21:50:26 GMT'] | 17 | Date: ['Sat, 12 Oct 2019 21:02:19 GMT'] |
18 | ETag: [W/"14c5607e676a1628520f9771268b5539"] | 18 | ETag: [W/"ff826cf42bb295e7dd0d367a9e8291cb"] |
19 | Referrer-Policy: [strict-origin-when-cross-origin] | 19 | Referrer-Policy: [strict-origin-when-cross-origin] |
20 | Transfer-Encoding: [chunked] | 20 | Transfer-Encoding: [chunked] |
21 | Vary: ['Accept-Encoding, Origin'] | 21 | Vary: ['Accept-Encoding, Origin'] |
@@ -23,8 +23,8 @@ interactions: | |||
23 | X-Download-Options: [noopen] | 23 | X-Download-Options: [noopen] |
24 | X-Frame-Options: [SAMEORIGIN] | 24 | X-Frame-Options: [SAMEORIGIN] |
25 | X-Permitted-Cross-Domain-Policies: [none] | 25 | X-Permitted-Cross-Domain-Policies: [none] |
26 | X-Request-Id: [c7d6d83a-8ad1-4bb0-8b78-a7281251d0d5] | 26 | X-Request-Id: [05953499-e17b-4c5a-bf6b-60a185e2df3b] |
27 | X-Runtime: ['0.037793'] | 27 | X-Runtime: ['0.034994'] |
28 | X-XSS-Protection: [1; mode=block] | 28 | X-XSS-Protection: [1; mode=block] |
29 | content-length: ['398'] | 29 | content-length: ['398'] |
30 | status: {code: 200, message: OK} | 30 | status: {code: 200, message: OK} |
@@ -41,11 +41,11 @@ interactions: | |||
41 | method: POST | 41 | method: POST |
42 | uri: http://localhost:3000/api/v1/statuses | 42 | uri: http://localhost:3000/api/v1/statuses |
43 | response: | 43 | response: |
44 | body: {string: '{"id":"102945956268583629","created_at":"2019-10-11T21:50:31.557Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"direct","language":"en","uri":"http://localhost/users/admin/statuses/102945956268583629","url":"http://localhost/@admin/102945956268583629","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"content":"\u003cp\u003e\u003cspan | 44 | body: {string: '{"id":"102951429389872972","created_at":"2019-10-12T21:02:24.756Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"direct","language":"en","uri":"http://localhost/users/admin/statuses/102951429389872972","url":"http://localhost/@admin/102951429389872972","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"content":"\u003cp\u003e\u003cspan |
45 | class=\"h-card\"\u003e\u003ca href=\"http://localhost/@mastodonpy_test\" class=\"u-url | 45 | class=\"h-card\"\u003e\u003ca href=\"http://localhost/@mastodonpy_test\" class=\"u-url |
46 | mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e | 46 | mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e |
47 | todo funny text here\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py | 47 | todo funny text here\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py |
48 | test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":2,"following_count":1,"statuses_count":30,"last_status_at":"2019-10-11T21:49:51.782Z","emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}'} | 48 | test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":2,"following_count":1,"statuses_count":33,"last_status_at":"2019-10-12T21:01:45.075Z","emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}'} |
49 | headers: | 49 | headers: |
50 | Cache-Control: ['no-cache, no-store'] | 50 | Cache-Control: ['no-cache, no-store'] |
51 | Content-Type: [application/json; charset=utf-8] | 51 | Content-Type: [application/json; charset=utf-8] |
@@ -56,8 +56,8 @@ interactions: | |||
56 | X-Download-Options: [noopen] | 56 | X-Download-Options: [noopen] |
57 | X-Frame-Options: [SAMEORIGIN] | 57 | X-Frame-Options: [SAMEORIGIN] |
58 | X-Permitted-Cross-Domain-Policies: [none] | 58 | X-Permitted-Cross-Domain-Policies: [none] |
59 | X-Request-Id: [dca40778-fa9d-4a95-91d8-475f5afeb800] | 59 | X-Request-Id: [3fa3f705-4295-4b3d-8daf-045241521e5f] |
60 | X-Runtime: ['0.254184'] | 60 | X-Runtime: ['0.223443'] |
61 | X-XSS-Protection: [1; mode=block] | 61 | X-XSS-Protection: [1; mode=block] |
62 | content-length: ['1531'] | 62 | content-length: ['1531'] |
63 | status: {code: 200, message: OK} | 63 | status: {code: 200, message: OK} |
@@ -74,10 +74,10 @@ interactions: | |||
74 | response: | 74 | response: |
75 | body: {string: 'event: conversation | 75 | body: {string: 'event: conversation |
76 | 76 | ||
77 | data: {"id":"36","unread":true,"accounts":[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"<p></p>","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":2,"following_count":1,"statuses_count":30,"last_status_at":"2019-10-11T21:49:51.782Z","emojis":[],"fields":[]}],"last_status":{"id":"102945956268583629","created_at":"2019-10-11T21:50:31.557Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"direct","language":"en","uri":"http://localhost/users/admin/statuses/102945956268583629","url":"http://localhost/@admin/102945956268583629","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"content":"<p><span | 77 | data: {"id":"42","unread":true,"accounts":[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"<p></p>","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":2,"following_count":1,"statuses_count":33,"last_status_at":"2019-10-12T21:01:45.075Z","emojis":[],"fields":[]}],"last_status":{"id":"102951429389872972","created_at":"2019-10-12T21:02:24.756Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"direct","language":"en","uri":"http://localhost/users/admin/statuses/102951429389872972","url":"http://localhost/@admin/102951429389872972","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"content":"<p><span |
78 | class=\"h-card\"><a href=\"http://localhost/@mastodonpy_test\" class=\"u-url | 78 | class=\"h-card\"><a href=\"http://localhost/@mastodonpy_test\" class=\"u-url |
79 | mention\">@<span>mastodonpy_test</span></a></span> todo funny text here</p>","reblog":null,"application":{"name":"Mastodon.py | 79 | mention\">@<span>mastodonpy_test</span></a></span> todo funny text here</p>","reblog":null,"application":{"name":"Mastodon.py |
80 | test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"<p></p>","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":2,"following_count":1,"statuses_count":30,"last_status_at":"2019-10-11T21:49:51.782Z","emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}} | 80 | test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"<p></p>","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":2,"following_count":1,"statuses_count":33,"last_status_at":"2019-10-12T21:01:45.075Z","emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}} |
81 | 81 | ||
82 | 82 | ||
83 | :'} | 83 | :'} |
@@ -87,9 +87,9 @@ interactions: | |||
87 | Access-Control-Allow-Origin: ['*'] | 87 | Access-Control-Allow-Origin: ['*'] |
88 | Connection: [keep-alive] | 88 | Connection: [keep-alive] |
89 | Content-Type: [text/event-stream] | 89 | Content-Type: [text/event-stream] |
90 | Date: ['Fri, 11 Oct 2019 21:50:31 GMT'] | 90 | Date: ['Sat, 12 Oct 2019 21:02:25 GMT'] |
91 | Transfer-Encoding: [chunked] | 91 | Transfer-Encoding: [chunked] |
92 | X-Powered-By: [Express] | 92 | X-Powered-By: [Express] |
93 | X-Request-Id: [a1c5c5e7-7759-4267-bff3-bef42cdf23ac] | 93 | X-Request-Id: [170c81f2-1f6a-401d-bf84-12bafefc7984] |
94 | status: {code: 200, message: OK} | 94 | status: {code: 200, message: OK} |
95 | version: 1 | 95 | version: 1 |