diff options
Diffstat (limited to 'tests/cassettes/test_stream_user_local.yaml')
-rw-r--r-- | tests/cassettes/test_stream_user_local.yaml | 54 |
1 files changed, 25 insertions, 29 deletions
diff --git a/tests/cassettes/test_stream_user_local.yaml b/tests/cassettes/test_stream_user_local.yaml index 9d72a4d..22de8fb 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":"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":[]}'} | 13 | body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-04-27T18:52:42.626Z","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":10,"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/"183e1b0f0d58dd3b410dd700a2727161"] | 17 | ETag: [W/"897cda4d35dcffc1a0e9dd29fc71130f"] |
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: [c7ad422b-3b8f-4a21-a661-0c1c0778966d] | 25 | X-Request-Id: [9c808452-96f3-4dee-b8b4-5159a9686307] |
26 | X-Runtime: ['0.030147'] | 26 | X-Runtime: ['0.024396'] |
27 | X-XSS-Protection: [1; mode=block] | 27 | X-XSS-Protection: [1; mode=block] |
28 | content-length: ['609'] | 28 | content-length: ['610'] |
29 | status: {code: 200, message: OK} | 29 | status: {code: 200, message: OK} |
30 | - request: | 30 | - request: |
31 | body: null | 31 | body: null |
@@ -43,7 +43,7 @@ interactions: | |||
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/"41cf01fea278b3569d7c8d5a5c5782ec"] | 46 | ETag: [W/"2268b88a081c532f69d4e8f3f6cc1a41"] |
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,8 +51,8 @@ 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: [194e9c74-f1f7-489a-9cdc-dcc6cdb2872c] | 54 | X-Request-Id: [809c4964-6493-485a-8a47-5ffc3c0e6d5d] |
55 | X-Runtime: ['0.025540'] | 55 | X-Runtime: ['0.022342'] |
56 | X-XSS-Protection: [1; mode=block] | 56 | X-XSS-Protection: [1; mode=block] |
57 | content-length: ['211'] | 57 | content-length: ['211'] |
58 | status: {code: 200, message: OK} | 58 | status: {code: 200, message: OK} |
@@ -67,12 +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","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}'} | 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":12,"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=300, public'] | 72 | Cache-Control: ['max-age=300, public'] |
73 | Content-Type: [application/json; charset=utf-8] | 73 | Content-Type: [application/json; charset=utf-8] |
74 | Date: ['Sat, 27 Apr 2019 18:19:24 GMT'] | 74 | Date: ['Sat, 27 Apr 2019 23:51:28 GMT'] |
75 | ETag: [W/"ad3c648b6557460453c53744b0145a35"] | 75 | ETag: [W/"23dbf13c779b1cc02bec5079773083f5"] |
76 | Referrer-Policy: [strict-origin-when-cross-origin] | 76 | Referrer-Policy: [strict-origin-when-cross-origin] |
77 | Transfer-Encoding: [chunked] | 77 | Transfer-Encoding: [chunked] |
78 | Vary: ['Accept-Encoding, Origin'] | 78 | Vary: ['Accept-Encoding, Origin'] |
@@ -80,8 +80,8 @@ interactions: | |||
80 | X-Download-Options: [noopen] | 80 | X-Download-Options: [noopen] |
81 | X-Frame-Options: [SAMEORIGIN] | 81 | X-Frame-Options: [SAMEORIGIN] |
82 | X-Permitted-Cross-Domain-Policies: [none] | 82 | X-Permitted-Cross-Domain-Policies: [none] |
83 | X-Request-Id: [6171dbda-326f-42e2-8e40-10b8d18bbe74] | 83 | X-Request-Id: [b3f91b98-37e1-4689-b1d5-ca0915bc72c6] |
84 | X-Runtime: ['0.025239'] | 84 | X-Runtime: ['0.023238'] |
85 | X-XSS-Protection: [1; mode=block] | 85 | X-XSS-Protection: [1; mode=block] |
86 | content-length: ['349'] | 86 | content-length: ['349'] |
87 | status: {code: 200, message: OK} | 87 | status: {code: 200, message: OK} |
@@ -98,15 +98,13 @@ interactions: | |||
98 | method: POST | 98 | method: POST |
99 | uri: http://localhost:3000/api/v1/statuses | 99 | uri: http://localhost:3000/api/v1/statuses |
100 | response: | 100 | response: |
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 | body: {string: '{"id":"102000826367266958","created_at":"2019-04-27T23:51:33.747Z","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/102000826367266958","content":"\u003cp\u003eit\u0026apos;s |
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 | cool guy\u003c/p\u003e","url":"http://localhost/@mastodonpy_test/102000826367266958","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py |
103 | 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":"","locked":true,"bot":false,"created_at":"2019-04-27T20:56:20.155Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","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,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} |
104 | Lennon","locked":true,"bot":false,"created_at":"2019-04-27T20:03:12.393Z","note":"\u003cp\u003eI | ||
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}'} | ||
106 | headers: | 104 | headers: |
107 | Cache-Control: ['max-age=0, private, must-revalidate'] | 105 | Cache-Control: ['max-age=0, private, must-revalidate'] |
108 | Content-Type: [application/json; charset=utf-8] | 106 | Content-Type: [application/json; charset=utf-8] |
109 | ETag: [W/"773142da1c08dd0b884a6c52bdd50256"] | 107 | ETag: [W/"31fb33fa6323ac79ab4d8a1caf4d1c40"] |
110 | Referrer-Policy: [strict-origin-when-cross-origin] | 108 | Referrer-Policy: [strict-origin-when-cross-origin] |
111 | Transfer-Encoding: [chunked] | 109 | Transfer-Encoding: [chunked] |
112 | Vary: ['Accept-Encoding, Origin'] | 110 | Vary: ['Accept-Encoding, Origin'] |
@@ -114,10 +112,10 @@ interactions: | |||
114 | X-Download-Options: [noopen] | 112 | X-Download-Options: [noopen] |
115 | X-Frame-Options: [SAMEORIGIN] | 113 | X-Frame-Options: [SAMEORIGIN] |
116 | X-Permitted-Cross-Domain-Policies: [none] | 114 | X-Permitted-Cross-Domain-Policies: [none] |
117 | X-Request-Id: [b74a2cfe-c18f-42d5-b966-dd8dabbcd286] | 115 | X-Request-Id: [0f41d973-d9b0-4e72-9f81-8c98d8ddfb40] |
118 | X-Runtime: ['0.149867'] | 116 | X-Runtime: ['0.158456'] |
119 | X-XSS-Protection: [1; mode=block] | 117 | X-XSS-Protection: [1; mode=block] |
120 | content-length: ['1616'] | 118 | content-length: ['1253'] |
121 | status: {code: 200, message: OK} | 119 | status: {code: 200, message: OK} |
122 | - request: | 120 | - request: |
123 | body: null | 121 | body: null |
@@ -132,11 +130,9 @@ interactions: | |||
132 | response: | 130 | response: |
133 | body: {string: 'event: update | 131 | body: {string: 'event: update |
134 | 132 | ||
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's | 133 | data: {"id":"102000826367266958","created_at":"2019-04-27T23:51:33.747Z","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/102000826367266958","content":"<p>it's |
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 | 134 | cool guy</p>","url":"http://localhost/@mastodonpy_test/102000826367266958","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py |
137 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | 135 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"created_at":"2019-04-27T20:56:20.155Z","note":"<p></p>","url":"http://localhost/@mastodonpy_test","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,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null} |
138 | Lennon","locked":true,"bot":false,"created_at":"2019-04-27T20:03:12.393Z","note":"<p>I | ||
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} | ||
140 | 136 | ||
141 | 137 | ||
142 | :'} | 138 | :'} |
@@ -146,9 +142,9 @@ interactions: | |||
146 | Access-Control-Allow-Origin: ['*'] | 142 | Access-Control-Allow-Origin: ['*'] |
147 | Connection: [keep-alive] | 143 | Connection: [keep-alive] |
148 | Content-Type: [text/event-stream] | 144 | Content-Type: [text/event-stream] |
149 | Date: ['Sat, 27 Apr 2019 18:19:29 GMT'] | 145 | Date: ['Sat, 27 Apr 2019 23:51:33 GMT'] |
150 | Transfer-Encoding: [chunked] | 146 | Transfer-Encoding: [chunked] |
151 | X-Powered-By: [Express] | 147 | X-Powered-By: [Express] |
152 | X-Request-Id: [1545b4dd-c428-4904-8db3-b5f4af9908c3] | 148 | X-Request-Id: [d39b3ece-b7de-459d-8cea-f55d018ce010] |
153 | status: {code: 200, message: OK} | 149 | status: {code: 200, message: OK} |
154 | version: 1 | 150 | version: 1 |