aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_stream_user_local.yaml')
-rw-r--r--tests/cassettes/test_stream_user_local.yaml61
1 files changed, 31 insertions, 30 deletions
diff --git a/tests/cassettes/test_stream_user_local.yaml b/tests/cassettes/test_stream_user_local.yaml
index 4081302..9d72a4d 100644
--- a/tests/cassettes/test_stream_user_local.yaml
+++ b/tests/cassettes/test_stream_user_local.yaml
@@ -10,11 +10,11 @@ interactions:
10 method: GET 10 method: GET
11 uri: http://localhost:3000/api/v1/accounts/verify_credentials 11 uri: http://localhost:3000/api/v1/accounts/verify_credentials
12 response: 12 response:
13 body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-07-13T19:35:33.303Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":86,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[]},"emojis":[],"fields":[]}'} 13 body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-04-27T17:58:11.427Z","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":6,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[]},"emojis":[],"fields":[]}'}
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/"461acccca479fa590f945f2cf8b0ce97"] 17 ETag: [W/"183e1b0f0d58dd3b410dd700a2727161"]
18 Referrer-Policy: [strict-origin-when-cross-origin] 18 Referrer-Policy: [strict-origin-when-cross-origin]
19 Transfer-Encoding: [chunked] 19 Transfer-Encoding: [chunked]
20 Vary: ['Accept-Encoding, Origin'] 20 Vary: ['Accept-Encoding, Origin']
@@ -22,10 +22,10 @@ interactions:
22 X-Download-Options: [noopen] 22 X-Download-Options: [noopen]
23 X-Frame-Options: [SAMEORIGIN] 23 X-Frame-Options: [SAMEORIGIN]
24 X-Permitted-Cross-Domain-Policies: [none] 24 X-Permitted-Cross-Domain-Policies: [none]
25 X-Request-Id: [c8038701-afcd-4cca-873b-ef2bb709be36] 25 X-Request-Id: [c7ad422b-3b8f-4a21-a661-0c1c0778966d]
26 X-Runtime: ['0.026800'] 26 X-Runtime: ['0.030147']
27 X-XSS-Protection: [1; mode=block] 27 X-XSS-Protection: [1; mode=block]
28 content-length: ['635'] 28 content-length: ['609']
29 status: {code: 200, message: OK} 29 status: {code: 200, message: OK}
30- request: 30- request:
31 body: null 31 body: null
@@ -39,11 +39,11 @@ interactions:
39 method: POST 39 method: POST
40 uri: http://localhost:3000/api/v1/accounts/1/unfollow 40 uri: http://localhost:3000/api/v1/accounts/1/unfollow
41 response: 41 response:
42 body: {string: '{"id":"1","following":false,"showing_reblogs":false,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'} 42 body: {string: '{"id":"1","following":false,"showing_reblogs":false,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false}'}
43 headers: 43 headers:
44 Cache-Control: ['max-age=0, private, must-revalidate'] 44 Cache-Control: ['max-age=0, private, must-revalidate']
45 Content-Type: [application/json; charset=utf-8] 45 Content-Type: [application/json; charset=utf-8]
46 ETag: [W/"e2069723e40fa83e206d55b6e8206f3d"] 46 ETag: [W/"41cf01fea278b3569d7c8d5a5c5782ec"]
47 Referrer-Policy: [strict-origin-when-cross-origin] 47 Referrer-Policy: [strict-origin-when-cross-origin]
48 Transfer-Encoding: [chunked] 48 Transfer-Encoding: [chunked]
49 Vary: ['Accept-Encoding, Origin'] 49 Vary: ['Accept-Encoding, Origin']
@@ -51,10 +51,10 @@ interactions:
51 X-Download-Options: [noopen] 51 X-Download-Options: [noopen]
52 X-Frame-Options: [SAMEORIGIN] 52 X-Frame-Options: [SAMEORIGIN]
53 X-Permitted-Cross-Domain-Policies: [none] 53 X-Permitted-Cross-Domain-Policies: [none]
54 X-Request-Id: [52549b35-dae4-4220-8d1c-e5837784d2be] 54 X-Request-Id: [194e9c74-f1f7-489a-9cdc-dcc6cdb2872c]
55 X-Runtime: ['0.034051'] 55 X-Runtime: ['0.025540']
56 X-XSS-Protection: [1; mode=block] 56 X-XSS-Protection: [1; mode=block]
57 content-length: ['175'] 57 content-length: ['211']
58 status: {code: 200, message: OK} 58 status: {code: 200, message: OK}
59- request: 59- request:
60 body: null 60 body: null
@@ -67,11 +67,12 @@ interactions:
67 method: GET 67 method: GET
68 uri: http://localhost:3000/api/v1/instance/ 68 uri: http://localhost:3000/api/v1/instance/
69 response: 69 response:
70 body: {string: '{"uri":"localhost:3000","title":"Mastodon","description":"","email":"","version":"2.4.3","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":2,"status_count":199,"domain_count":0},"thumbnail":"http://localhost:3000/packs/preview.jpg","languages":["en"],"contact_account":null}'} 70 body: {string: '{"uri":"localhost","title":"Mastodon","description":"","email":"","version":"2.8.0","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":2,"status_count":68,"domain_count":0},"thumbnail":"http://localhost/packs/media/images/preview-9a17d32fc48369e8ccd910a75260e67d.jpg","languages":["en"],"registrations":true,"contact_account":null}'}
71 headers: 71 headers:
72 Cache-Control: ['max-age=0, private, must-revalidate'] 72 Cache-Control: ['max-age=300, public']
73 Content-Type: [application/json; charset=utf-8] 73 Content-Type: [application/json; charset=utf-8]
74 ETag: [W/"d3992af6131c61a220419ab4ee068e7e"] 74 Date: ['Sat, 27 Apr 2019 18:19:24 GMT']
75 ETag: [W/"ad3c648b6557460453c53744b0145a35"]
75 Referrer-Policy: [strict-origin-when-cross-origin] 76 Referrer-Policy: [strict-origin-when-cross-origin]
76 Transfer-Encoding: [chunked] 77 Transfer-Encoding: [chunked]
77 Vary: ['Accept-Encoding, Origin'] 78 Vary: ['Accept-Encoding, Origin']
@@ -79,10 +80,10 @@ interactions:
79 X-Download-Options: [noopen] 80 X-Download-Options: [noopen]
80 X-Frame-Options: [SAMEORIGIN] 81 X-Frame-Options: [SAMEORIGIN]
81 X-Permitted-Cross-Domain-Policies: [none] 82 X-Permitted-Cross-Domain-Policies: [none]
82 X-Request-Id: [b4e0366d-ef11-4c7b-a417-5754e5e4627f] 83 X-Request-Id: [6171dbda-326f-42e2-8e40-10b8d18bbe74]
83 X-Runtime: ['0.044058'] 84 X-Runtime: ['0.025239']
84 X-XSS-Protection: [1; mode=block] 85 X-XSS-Protection: [1; mode=block]
85 content-length: ['293'] 86 content-length: ['349']
86 status: {code: 200, message: OK} 87 status: {code: 200, message: OK}
87- request: 88- request:
88 body: status=it%27s+cool+guy 89 body: status=it%27s+cool+guy
@@ -97,15 +98,15 @@ interactions:
97 method: POST 98 method: POST
98 uri: http://localhost:3000/api/v1/statuses 99 uri: http://localhost:3000/api/v1/statuses
99 response: 100 response:
100 body: {string: '{"id":"100465735355867158","created_at":"2018-07-30T21:17:43.820Z","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/100465735355867158","content":"\u003cp\u003eit\u0026apos;s 101 body: {string: '{"id":"101999520584397869","created_at":"2019-04-27T18:19:29.079Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost/users/mastodonpy_test/statuses/101999520584397869","content":"\u003cp\u003eit\u0026apos;s
101 cool guy\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/100465735355867158","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 102 cool guy\u003c/p\u003e","url":"http://localhost/@mastodonpy_test/101999520584397869","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
102 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 103 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
103 Lennon","locked":true,"bot":false,"created_at":"2018-07-13T23:02:25.260Z","note":"\u003cp\u003eI 104 Lennon","locked":true,"bot":false,"created_at":"2019-04-27T20:03:12.393Z","note":"\u003cp\u003eI
104 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":114,"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} 105 walk funny\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","followers_count":0,"following_count":0,"statuses_count":63,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'}
105 headers: 106 headers:
106 Cache-Control: ['max-age=0, private, must-revalidate'] 107 Cache-Control: ['max-age=0, private, must-revalidate']
107 Content-Type: [application/json; charset=utf-8] 108 Content-Type: [application/json; charset=utf-8]
108 ETag: [W/"f945ad0f976a195a4e2ebf8b0d786374"] 109 ETag: [W/"773142da1c08dd0b884a6c52bdd50256"]
109 Referrer-Policy: [strict-origin-when-cross-origin] 110 Referrer-Policy: [strict-origin-when-cross-origin]
110 Transfer-Encoding: [chunked] 111 Transfer-Encoding: [chunked]
111 Vary: ['Accept-Encoding, Origin'] 112 Vary: ['Accept-Encoding, Origin']
@@ -113,10 +114,10 @@ interactions:
113 X-Download-Options: [noopen] 114 X-Download-Options: [noopen]
114 X-Frame-Options: [SAMEORIGIN] 115 X-Frame-Options: [SAMEORIGIN]
115 X-Permitted-Cross-Domain-Policies: [none] 116 X-Permitted-Cross-Domain-Policies: [none]
116 X-Request-Id: [7b1a4e11-f488-4249-bdfb-c3243912d06e] 117 X-Request-Id: [b74a2cfe-c18f-42d5-b966-dd8dabbcd286]
117 X-Runtime: ['0.184139'] 118 X-Runtime: ['0.149867']
118 X-XSS-Protection: [1; mode=block] 119 X-XSS-Protection: [1; mode=block]
119 content-length: ['1528'] 120 content-length: ['1616']
120 status: {code: 200, message: OK} 121 status: {code: 200, message: OK}
121- request: 122- request:
122 body: null 123 body: null
@@ -131,11 +132,11 @@ interactions:
131 response: 132 response:
132 body: {string: 'event: update 133 body: {string: 'event: update
133 134
134 data: {"id":"100465735355867158","created_at":"2018-07-30T21:17:43.820Z","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/100465735355867158","content":"<p>it&apos;s 135 data: {"id":"101999520584397869","created_at":"2019-04-27T18:19:29.079Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost/users/mastodonpy_test/statuses/101999520584397869","content":"<p>it&apos;s
135 cool guy</p>","url":"http://localhost:3000/@mastodonpy_test/100465735355867158","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 136 cool guy</p>","url":"http://localhost/@mastodonpy_test/101999520584397869","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
136 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 137 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
137 Lennon","locked":true,"bot":false,"created_at":"2018-07-13T23:02:25.260Z","note":"<p>I 138 Lennon","locked":true,"bot":false,"created_at":"2019-04-27T20:03:12.393Z","note":"<p>I
138 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":114,"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]} 139 walk funny</p>","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","followers_count":0,"following_count":0,"statuses_count":63,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}
139 140
140 141
141 :'} 142 :'}
@@ -145,9 +146,9 @@ interactions:
145 Access-Control-Allow-Origin: ['*'] 146 Access-Control-Allow-Origin: ['*']
146 Connection: [keep-alive] 147 Connection: [keep-alive]
147 Content-Type: [text/event-stream] 148 Content-Type: [text/event-stream]
148 Date: ['Mon, 30 Jul 2018 21:17:44 GMT'] 149 Date: ['Sat, 27 Apr 2019 18:19:29 GMT']
149 Transfer-Encoding: [chunked] 150 Transfer-Encoding: [chunked]
150 X-Powered-By: [Express] 151 X-Powered-By: [Express]
151 X-Request-Id: [a4748999-b365-4c8c-8d61-5ce919b5934d] 152 X-Request-Id: [1545b4dd-c428-4904-8db3-b5f4af9908c3]
152 status: {code: 200, message: OK} 153 status: {code: 200, message: OK}
153version: 1 154version: 1
Powered by cgit v1.2.3 (git 2.41.0)