aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_stream_direct.yaml')
-rw-r--r--tests/cassettes/test_stream_direct.yaml32
1 files changed, 16 insertions, 16 deletions
diff --git a/tests/cassettes/test_stream_direct.yaml b/tests/cassettes/test_stream_direct.yaml
index 3ac9404..e1646f2 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","description":"","email":"","version":"2.9.1","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":3,"status_count":20,"domain_count":0},"thumbnail":"http://localhost/packs/media/images/preview-9a17d32fc48369e8ccd910a75260e67d.jpg","languages":["en"],"registrations":true,"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":32,"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=300, 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 20:32:08 GMT'] 17 Date: ['Fri, 11 Oct 2019 21:50:26 GMT']
18 ETag: [W/"d8eabce6cff38f5ade8c631c932a3dc3"] 18 ETag: [W/"14c5607e676a1628520f9771268b5539"]
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: [65bee269-4e3b-44ce-b234-65b907986c10] 26 X-Request-Id: [c7d6d83a-8ad1-4bb0-8b78-a7281251d0d5]
27 X-Runtime: ['0.033466'] 27 X-Runtime: ['0.037793']
28 X-XSS-Protection: [1; mode=block] 28 X-XSS-Protection: [1; mode=block]
29 content-length: ['349'] 29 content-length: ['398']
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":"102945648378590632","created_at":"2019-10-11T20:32:13.525Z","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/102945648378590632","url":"http://localhost/@admin/102945648378590632","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"content":"\u003cp\u003e\u003cspan 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
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":19,"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":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}'}
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: [d328499a-7be2-4e47-b4ca-42a67efbb523] 59 X-Request-Id: [dca40778-fa9d-4a95-91d8-475f5afeb800]
60 X-Runtime: ['0.219320'] 60 X-Runtime: ['0.254184']
61 X-XSS-Protection: [1; mode=block] 61 X-XSS-Protection: [1; mode=block]
62 content-length: ['1487'] 62 content-length: ['1531']
63 status: {code: 200, message: OK} 63 status: {code: 200, message: OK}
64- request: 64- request:
65 body: null 65 body: null
@@ -74,10 +74,10 @@ interactions:
74 response: 74 response:
75 body: {string: 'event: conversation 75 body: {string: 'event: conversation
76 76
77 data: {"id":"18","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":19,"emojis":[],"fields":[]}],"last_status":{"id":"102945648378590632","created_at":"2019-10-11T20:32:13.525Z","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/102945648378590632","url":"http://localhost/@admin/102945648378590632","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"content":"<p><span 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
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":19,"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":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}}
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 20:32:13 GMT'] 90 Date: ['Fri, 11 Oct 2019 21:50:31 GMT']
91 Transfer-Encoding: [chunked] 91 Transfer-Encoding: [chunked]
92 X-Powered-By: [Express] 92 X-Powered-By: [Express]
93 X-Request-Id: [bcbbbb42-7096-4be8-b175-8fb71c2f136f] 93 X-Request-Id: [a1c5c5e7-7759-4267-bff3-bef42cdf23ac]
94 status: {code: 200, message: OK} 94 status: {code: 200, message: OK}
95version: 1 95version: 1
Powered by cgit v1.2.3 (git 2.41.0)