diff options
Diffstat (limited to 'tests/cassettes/test_stream_user_local.yaml')
-rw-r--r-- | tests/cassettes/test_stream_user_local.yaml | 47 |
1 files changed, 25 insertions, 22 deletions
diff --git a/tests/cassettes/test_stream_user_local.yaml b/tests/cassettes/test_stream_user_local.yaml index b8e78bd..daa22ff 100644 --- a/tests/cassettes/test_stream_user_local.yaml +++ b/tests/cassettes/test_stream_user_local.yaml | |||
@@ -10,7 +10,7 @@ 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-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","source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[]}'} | 13 | body: {string: '{"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","source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[]}'} |
14 | headers: | 14 | headers: |
15 | Cache-Control: ['no-cache, no-store'] | 15 | Cache-Control: ['no-cache, no-store'] |
16 | Content-Type: [application/json; charset=utf-8] | 16 | Content-Type: [application/json; charset=utf-8] |
@@ -21,10 +21,10 @@ interactions: | |||
21 | X-Download-Options: [noopen] | 21 | X-Download-Options: [noopen] |
22 | X-Frame-Options: [SAMEORIGIN] | 22 | X-Frame-Options: [SAMEORIGIN] |
23 | X-Permitted-Cross-Domain-Policies: [none] | 23 | X-Permitted-Cross-Domain-Policies: [none] |
24 | X-Request-Id: [5174cfdc-9177-485d-80eb-66740a678bd0] | 24 | X-Request-Id: [1f8b96b6-c78a-4428-974d-a86d47d1eed6] |
25 | X-Runtime: ['0.031069'] | 25 | X-Runtime: ['0.050175'] |
26 | X-XSS-Protection: [1; mode=block] | 26 | X-XSS-Protection: [1; mode=block] |
27 | content-length: ['680'] | 27 | content-length: ['699'] |
28 | status: {code: 200, message: OK} | 28 | status: {code: 200, message: OK} |
29 | - request: | 29 | - request: |
30 | body: null | 30 | body: null |
@@ -49,8 +49,8 @@ interactions: | |||
49 | X-Download-Options: [noopen] | 49 | X-Download-Options: [noopen] |
50 | X-Frame-Options: [SAMEORIGIN] | 50 | X-Frame-Options: [SAMEORIGIN] |
51 | X-Permitted-Cross-Domain-Policies: [none] | 51 | X-Permitted-Cross-Domain-Policies: [none] |
52 | X-Request-Id: [394d8329-51d2-44a0-9d13-9b6a14da6cb5] | 52 | X-Request-Id: [a35199a0-d2b2-4af6-9cfc-94b290dbd15b] |
53 | X-Runtime: ['0.028644'] | 53 | X-Runtime: ['0.046315'] |
54 | X-XSS-Protection: [1; mode=block] | 54 | X-XSS-Protection: [1; mode=block] |
55 | content-length: ['211'] | 55 | content-length: ['211'] |
56 | status: {code: 200, message: OK} | 56 | status: {code: 200, message: OK} |
@@ -65,12 +65,12 @@ interactions: | |||
65 | method: GET | 65 | method: GET |
66 | uri: http://localhost:3000/api/v1/instance/ | 66 | uri: http://localhost:3000/api/v1/instance/ |
67 | response: | 67 | response: |
68 | 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":34,"domain_count":0},"thumbnail":"http://localhost/packs/media/images/preview-9a17d32fc48369e8ccd910a75260e67d.jpg","languages":["en"],"registrations":true,"approval_required":false,"contact_account":null}'} | 68 | 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":4,"domain_count":0},"thumbnail":"http://localhost/packs/media/images/preview-9a17d32fc48369e8ccd910a75260e67d.jpg","languages":["en"],"registrations":true,"approval_required":false,"contact_account":null}'} |
69 | headers: | 69 | headers: |
70 | Cache-Control: ['max-age=180, public'] | 70 | Cache-Control: ['max-age=180, public'] |
71 | Content-Type: [application/json; charset=utf-8] | 71 | Content-Type: [application/json; charset=utf-8] |
72 | Date: ['Sat, 12 Oct 2019 21:01:59 GMT'] | 72 | Date: ['Sat, 22 Feb 2020 19:30:10 GMT'] |
73 | ETag: [W/"b1cd0117fc529e198d2e886647ce8296"] | 73 | ETag: [W/"b0ffa42b1b8e2eb0e6a9b3dae373b272"] |
74 | Referrer-Policy: [strict-origin-when-cross-origin] | 74 | Referrer-Policy: [strict-origin-when-cross-origin] |
75 | Transfer-Encoding: [chunked] | 75 | Transfer-Encoding: [chunked] |
76 | Vary: ['Accept-Encoding, Origin'] | 76 | Vary: ['Accept-Encoding, Origin'] |
@@ -78,10 +78,10 @@ interactions: | |||
78 | X-Download-Options: [noopen] | 78 | X-Download-Options: [noopen] |
79 | X-Frame-Options: [SAMEORIGIN] | 79 | X-Frame-Options: [SAMEORIGIN] |
80 | X-Permitted-Cross-Domain-Policies: [none] | 80 | X-Permitted-Cross-Domain-Policies: [none] |
81 | X-Request-Id: [440ec0fb-5806-4293-a20a-cc7e4cf79c79] | 81 | X-Request-Id: [a5901c8a-4df0-4746-9545-6458e7e8fcbb] |
82 | X-Runtime: ['0.028512'] | 82 | X-Runtime: ['0.047905'] |
83 | X-XSS-Protection: [1; mode=block] | 83 | X-XSS-Protection: [1; mode=block] |
84 | content-length: ['398'] | 84 | content-length: ['397'] |
85 | status: {code: 200, message: OK} | 85 | status: {code: 200, message: OK} |
86 | - request: | 86 | - request: |
87 | body: status=it%27s+cool+guy | 87 | body: status=it%27s+cool+guy |
@@ -96,9 +96,9 @@ interactions: | |||
96 | method: POST | 96 | method: POST |
97 | uri: http://localhost:3000/api/v1/statuses | 97 | uri: http://localhost:3000/api/v1/statuses |
98 | response: | 98 | response: |
99 | body: {string: '{"id":"102951428073573330","created_at":"2019-10-12T21:02:04.665Z","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/102951428073573330","url":"http://localhost/@mastodonpy_test/102951428073573330","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"content":"\u003cp\u003eit\u0026apos;s | 99 | body: {string: '{"id":"103704154287057569","created_at":"2020-02-22T19:30:15.186Z","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/103704154287057569","url":"http://localhost/@mastodonpy_test/103704154287057569","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eit\u0026apos;s |
100 | cool guy\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py test | 100 | cool guy\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py test |
101 | suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","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":2,"last_status_at":"2019-10-12T21:02:04.684Z","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} | 101 | suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"discoverable":false,"group":false,"created_at":"2020-02-22T20:26:54.402Z","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":2,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} |
102 | headers: | 102 | headers: |
103 | Cache-Control: ['no-cache, no-store'] | 103 | Cache-Control: ['no-cache, no-store'] |
104 | Content-Type: [application/json; charset=utf-8] | 104 | Content-Type: [application/json; charset=utf-8] |
@@ -109,10 +109,10 @@ interactions: | |||
109 | X-Download-Options: [noopen] | 109 | X-Download-Options: [noopen] |
110 | X-Frame-Options: [SAMEORIGIN] | 110 | X-Frame-Options: [SAMEORIGIN] |
111 | X-Permitted-Cross-Domain-Policies: [none] | 111 | X-Permitted-Cross-Domain-Policies: [none] |
112 | X-Request-Id: [45c561f8-c83d-41c1-9fb8-97f033fb4d60] | 112 | X-Request-Id: [dfb25e3b-98fd-4270-b6b8-4377a469a4a2] |
113 | X-Runtime: ['0.199172'] | 113 | X-Runtime: ['0.266320'] |
114 | X-XSS-Protection: [1; mode=block] | 114 | X-XSS-Protection: [1; mode=block] |
115 | content-length: ['1298'] | 115 | content-length: ['1338'] |
116 | status: {code: 200, message: OK} | 116 | status: {code: 200, message: OK} |
117 | - request: | 117 | - request: |
118 | body: null | 118 | body: null |
@@ -125,10 +125,12 @@ interactions: | |||
125 | method: GET | 125 | method: GET |
126 | uri: http://localhost:4000/api/v1/streaming/user | 126 | uri: http://localhost:4000/api/v1/streaming/user |
127 | response: | 127 | response: |
128 | body: {string: 'event: update | 128 | body: {string: ':) |
129 | 129 | ||
130 | data: {"id":"102951428073573330","created_at":"2019-10-12T21:02:04.665Z","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/102951428073573330","url":"http://localhost/@mastodonpy_test/102951428073573330","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"content":"<p>it's | 130 | event: update |
131 | cool guy</p>","reblog":null,"application":{"name":"Mastodon.py test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","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":2,"last_status_at":"2019-10-12T21:02:04.684Z","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null} | 131 | |
132 | data: {"id":"103704154287057569","created_at":"2020-02-22T19:30:15.186Z","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/103704154287057569","url":"http://localhost/@mastodonpy_test/103704154287057569","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"<p>it's | ||
133 | cool guy</p>","reblog":null,"application":{"name":"Mastodon.py test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"discoverable":false,"group":false,"created_at":"2020-02-22T20:26:54.402Z","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":2,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null} | ||
132 | 134 | ||
133 | 135 | ||
134 | :'} | 136 | :'} |
@@ -136,11 +138,12 @@ interactions: | |||
136 | Access-Control-Allow-Headers: ['Authorization, Accept, Cache-Control'] | 138 | Access-Control-Allow-Headers: ['Authorization, Accept, Cache-Control'] |
137 | Access-Control-Allow-Methods: ['GET, OPTIONS'] | 139 | Access-Control-Allow-Methods: ['GET, OPTIONS'] |
138 | Access-Control-Allow-Origin: ['*'] | 140 | Access-Control-Allow-Origin: ['*'] |
141 | Cache-Control: [no-store] | ||
139 | Connection: [keep-alive] | 142 | Connection: [keep-alive] |
140 | Content-Type: [text/event-stream] | 143 | Content-Type: [text/event-stream] |
141 | Date: ['Sat, 12 Oct 2019 21:02:04 GMT'] | 144 | Date: ['Sat, 22 Feb 2020 19:30:10 GMT'] |
142 | Transfer-Encoding: [chunked] | 145 | Transfer-Encoding: [chunked] |
143 | X-Powered-By: [Express] | 146 | X-Powered-By: [Express] |
144 | X-Request-Id: [5dbf1e91-dd66-4095-849b-5cedf4cee9e3] | 147 | X-Request-Id: [adfda15c-cfd5-495f-8392-44653eeea43c] |
145 | status: {code: 200, message: OK} | 148 | status: {code: 200, message: OK} |
146 | version: 1 | 149 | version: 1 |