aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_stream_direct.yaml')
-rw-r--r--tests/cassettes/test_stream_direct.yaml35
1 files changed, 19 insertions, 16 deletions
diff --git a/tests/cassettes/test_stream_direct.yaml b/tests/cassettes/test_stream_direct.yaml
index 7969848..07a860f 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":35,"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.1.1","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":3,"status_count":5,"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: ['Sat, 12 Oct 2019 21:02:19 GMT'] 17 Date: ['Sat, 22 Feb 2020 19:30:30 GMT']
18 ETag: [W/"ff826cf42bb295e7dd0d367a9e8291cb"] 18 ETag: [W/"51587391c411617410e169d0ce505880"]
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,10 +23,10 @@ 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: [05953499-e17b-4c5a-bf6b-60a185e2df3b] 26 X-Request-Id: [aeccbf84-349a-4394-be58-83af49fd2a57]
27 X-Runtime: ['0.034994'] 27 X-Runtime: ['0.055290']
28 X-XSS-Protection: [1; mode=block] 28 X-XSS-Protection: [1; mode=block]
29 content-length: ['398'] 29 content-length: ['397']
30 status: {code: 200, message: OK} 30 status: {code: 200, message: OK}
31- request: 31- request:
32 body: visibility=direct&status=%40mastodonpy_test+todo+funny+text+here 32 body: visibility=direct&status=%40mastodonpy_test+todo+funny+text+here
@@ -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":"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 44 body: {string: '{"id":"103704155604374665","created_at":"2020-02-22T19:30:35.304Z","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/103704155604374665","url":"http://localhost/@admin/103704155604374665","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":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":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}'} 48 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","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":0,"following_count":0,"statuses_count":3,"last_status_at":"2020-02-22","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,10 +56,10 @@ 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: [3fa3f705-4295-4b3d-8daf-045241521e5f] 59 X-Request-Id: [eb31d98b-c1c6-4e75-b11a-3fc21f206b6b]
60 X-Runtime: ['0.223443'] 60 X-Runtime: ['0.246356']
61 X-XSS-Protection: [1; mode=block] 61 X-XSS-Protection: [1; mode=block]
62 content-length: ['1531'] 62 content-length: ['1569']
63 status: {code: 200, message: OK} 63 status: {code: 200, message: OK}
64- request: 64- request:
65 body: null 65 body: null
@@ -72,12 +72,14 @@ interactions:
72 method: GET 72 method: GET
73 uri: http://localhost:4000/api/v1/streaming/direct 73 uri: http://localhost:4000/api/v1/streaming/direct
74 response: 74 response:
75 body: {string: 'event: conversation 75 body: {string: ':)
76 76
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 77 event: conversation
78
79 data: {"id":"4","unread":true,"accounts":[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","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":0,"following_count":0,"statuses_count":3,"last_status_at":"2020-02-22","emojis":[],"fields":[]}],"last_status":{"id":"103704155604374665","created_at":"2020-02-22T19:30:35.304Z","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/103704155604374665","url":"http://localhost/@admin/103704155604374665","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"<p><span
78 class=\"h-card\"><a href=\"http://localhost/@mastodonpy_test\" class=\"u-url 80 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 81 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":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}} 82 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","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":0,"following_count":0,"statuses_count":3,"last_status_at":"2020-02-22","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 83
82 84
83 :'} 85 :'}
@@ -85,11 +87,12 @@ interactions:
85 Access-Control-Allow-Headers: ['Authorization, Accept, Cache-Control'] 87 Access-Control-Allow-Headers: ['Authorization, Accept, Cache-Control']
86 Access-Control-Allow-Methods: ['GET, OPTIONS'] 88 Access-Control-Allow-Methods: ['GET, OPTIONS']
87 Access-Control-Allow-Origin: ['*'] 89 Access-Control-Allow-Origin: ['*']
90 Cache-Control: [no-store]
88 Connection: [keep-alive] 91 Connection: [keep-alive]
89 Content-Type: [text/event-stream] 92 Content-Type: [text/event-stream]
90 Date: ['Sat, 12 Oct 2019 21:02:25 GMT'] 93 Date: ['Sat, 22 Feb 2020 19:30:30 GMT']
91 Transfer-Encoding: [chunked] 94 Transfer-Encoding: [chunked]
92 X-Powered-By: [Express] 95 X-Powered-By: [Express]
93 X-Request-Id: [170c81f2-1f6a-401d-bf84-12bafefc7984] 96 X-Request-Id: [254a2c3c-5131-44b1-ad76-128a348475c9]
94 status: {code: 200, message: OK} 97 status: {code: 200, message: OK}
95version: 1 98version: 1
Powered by cgit v1.2.3 (git 2.41.0)