diff options
Diffstat (limited to 'tests/cassettes/test_stream_user_local.yaml')
-rw-r--r-- | tests/cassettes/test_stream_user_local.yaml | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/tests/cassettes/test_stream_user_local.yaml b/tests/cassettes/test_stream_user_local.yaml index 22de8fb..ab29ae4 100644 --- a/tests/cassettes/test_stream_user_local.yaml +++ b/tests/cassettes/test_stream_user_local.yaml | |||
@@ -10,11 +10,10 @@ 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-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":[]}'} | 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":0,"following_count":0,"statuses_count":3,"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: ['no-cache, no-store'] |
16 | Content-Type: [application/json; charset=utf-8] | 16 | Content-Type: [application/json; charset=utf-8] |
17 | ETag: [W/"897cda4d35dcffc1a0e9dd29fc71130f"] | ||
18 | Referrer-Policy: [strict-origin-when-cross-origin] | 17 | Referrer-Policy: [strict-origin-when-cross-origin] |
19 | Transfer-Encoding: [chunked] | 18 | Transfer-Encoding: [chunked] |
20 | Vary: ['Accept-Encoding, Origin'] | 19 | Vary: ['Accept-Encoding, Origin'] |
@@ -22,10 +21,10 @@ interactions: | |||
22 | X-Download-Options: [noopen] | 21 | X-Download-Options: [noopen] |
23 | X-Frame-Options: [SAMEORIGIN] | 22 | X-Frame-Options: [SAMEORIGIN] |
24 | X-Permitted-Cross-Domain-Policies: [none] | 23 | X-Permitted-Cross-Domain-Policies: [none] |
25 | X-Request-Id: [9c808452-96f3-4dee-b8b4-5159a9686307] | 24 | X-Request-Id: [ad992017-5f81-4f72-9485-97febd9ec5d6] |
26 | X-Runtime: ['0.024396'] | 25 | X-Runtime: ['0.025060'] |
27 | X-XSS-Protection: [1; mode=block] | 26 | X-XSS-Protection: [1; mode=block] |
28 | content-length: ['610'] | 27 | content-length: ['609'] |
29 | status: {code: 200, message: OK} | 28 | status: {code: 200, message: OK} |
30 | - request: | 29 | - request: |
31 | body: null | 30 | body: null |
@@ -41,9 +40,8 @@ interactions: | |||
41 | response: | 40 | response: |
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}'} | 41 | 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: | 42 | headers: |
44 | Cache-Control: ['max-age=0, private, must-revalidate'] | 43 | Cache-Control: ['no-cache, no-store'] |
45 | Content-Type: [application/json; charset=utf-8] | 44 | Content-Type: [application/json; charset=utf-8] |
46 | ETag: [W/"2268b88a081c532f69d4e8f3f6cc1a41"] | ||
47 | Referrer-Policy: [strict-origin-when-cross-origin] | 45 | Referrer-Policy: [strict-origin-when-cross-origin] |
48 | Transfer-Encoding: [chunked] | 46 | Transfer-Encoding: [chunked] |
49 | Vary: ['Accept-Encoding, Origin'] | 47 | Vary: ['Accept-Encoding, Origin'] |
@@ -51,8 +49,8 @@ interactions: | |||
51 | X-Download-Options: [noopen] | 49 | X-Download-Options: [noopen] |
52 | X-Frame-Options: [SAMEORIGIN] | 50 | X-Frame-Options: [SAMEORIGIN] |
53 | X-Permitted-Cross-Domain-Policies: [none] | 51 | X-Permitted-Cross-Domain-Policies: [none] |
54 | X-Request-Id: [809c4964-6493-485a-8a47-5ffc3c0e6d5d] | 52 | X-Request-Id: [89572238-4859-4178-b577-e872c8c10048] |
55 | X-Runtime: ['0.022342'] | 53 | X-Runtime: ['0.026184'] |
56 | X-XSS-Protection: [1; mode=block] | 54 | X-XSS-Protection: [1; mode=block] |
57 | content-length: ['211'] | 55 | content-length: ['211'] |
58 | status: {code: 200, message: OK} | 56 | status: {code: 200, message: OK} |
@@ -67,12 +65,12 @@ interactions: | |||
67 | method: GET | 65 | method: GET |
68 | uri: http://localhost:3000/api/v1/instance/ | 66 | uri: http://localhost:3000/api/v1/instance/ |
69 | response: | 67 | 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":12,"domain_count":0},"thumbnail":"http://localhost/packs/media/images/preview-9a17d32fc48369e8ccd910a75260e67d.jpg","languages":["en"],"registrations":true,"contact_account":null}'} | 68 | body: {string: '{"uri":"localhost","title":"Mastodon","description":"","email":"","version":"2.9.1","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":2,"status_count":3,"domain_count":0},"thumbnail":"http://localhost/packs/media/images/preview-9a17d32fc48369e8ccd910a75260e67d.jpg","languages":["en"],"registrations":true,"contact_account":null}'} |
71 | headers: | 69 | headers: |
72 | Cache-Control: ['max-age=300, public'] | 70 | Cache-Control: ['max-age=300, public'] |
73 | Content-Type: [application/json; charset=utf-8] | 71 | Content-Type: [application/json; charset=utf-8] |
74 | Date: ['Sat, 27 Apr 2019 23:51:28 GMT'] | 72 | Date: ['Sat, 22 Jun 2019 13:04:16 GMT'] |
75 | ETag: [W/"23dbf13c779b1cc02bec5079773083f5"] | 73 | ETag: [W/"e46b43e71d02bdf7eafa21eaa51869ad"] |
76 | Referrer-Policy: [strict-origin-when-cross-origin] | 74 | Referrer-Policy: [strict-origin-when-cross-origin] |
77 | Transfer-Encoding: [chunked] | 75 | Transfer-Encoding: [chunked] |
78 | Vary: ['Accept-Encoding, Origin'] | 76 | Vary: ['Accept-Encoding, Origin'] |
@@ -80,10 +78,10 @@ interactions: | |||
80 | X-Download-Options: [noopen] | 78 | X-Download-Options: [noopen] |
81 | X-Frame-Options: [SAMEORIGIN] | 79 | X-Frame-Options: [SAMEORIGIN] |
82 | X-Permitted-Cross-Domain-Policies: [none] | 80 | X-Permitted-Cross-Domain-Policies: [none] |
83 | X-Request-Id: [b3f91b98-37e1-4689-b1d5-ca0915bc72c6] | 81 | X-Request-Id: [b8b7e68f-4c6f-4843-9ae2-ce52e1e00d33] |
84 | X-Runtime: ['0.023238'] | 82 | X-Runtime: ['0.027002'] |
85 | X-XSS-Protection: [1; mode=block] | 83 | X-XSS-Protection: [1; mode=block] |
86 | content-length: ['349'] | 84 | content-length: ['348'] |
87 | status: {code: 200, message: OK} | 85 | status: {code: 200, message: OK} |
88 | - request: | 86 | - request: |
89 | body: status=it%27s+cool+guy | 87 | body: status=it%27s+cool+guy |
@@ -98,13 +96,14 @@ interactions: | |||
98 | method: POST | 96 | method: POST |
99 | uri: http://localhost:3000/api/v1/statuses | 97 | uri: http://localhost:3000/api/v1/statuses |
100 | response: | 98 | response: |
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 | 99 | body: {string: '{"id":"102315370831297879","created_at":"2019-06-22T13:04:21.374Z","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/102315370831297879","url":"http://localhost/@mastodonpy_test/102315370831297879","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"content":"\u003cp\u003eit\u0026apos;s |
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 | 100 | cool guy\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py test |
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}'} | 101 | suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John |
102 | Lennon","locked":true,"bot":false,"created_at":"2019-06-22T14:46:28.567Z","note":"\u003cp\u003eI | ||
103 | walk funny\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","followers_count":0,"following_count":0,"statuses_count":1,"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}'} | ||
104 | headers: | 104 | headers: |
105 | Cache-Control: ['max-age=0, private, must-revalidate'] | 105 | Cache-Control: ['no-cache, no-store'] |
106 | Content-Type: [application/json; charset=utf-8] | 106 | Content-Type: [application/json; charset=utf-8] |
107 | ETag: [W/"31fb33fa6323ac79ab4d8a1caf4d1c40"] | ||
108 | Referrer-Policy: [strict-origin-when-cross-origin] | 107 | Referrer-Policy: [strict-origin-when-cross-origin] |
109 | Transfer-Encoding: [chunked] | 108 | Transfer-Encoding: [chunked] |
110 | Vary: ['Accept-Encoding, Origin'] | 109 | Vary: ['Accept-Encoding, Origin'] |
@@ -112,10 +111,10 @@ interactions: | |||
112 | X-Download-Options: [noopen] | 111 | X-Download-Options: [noopen] |
113 | X-Frame-Options: [SAMEORIGIN] | 112 | X-Frame-Options: [SAMEORIGIN] |
114 | X-Permitted-Cross-Domain-Policies: [none] | 113 | X-Permitted-Cross-Domain-Policies: [none] |
115 | X-Request-Id: [0f41d973-d9b0-4e72-9f81-8c98d8ddfb40] | 114 | X-Request-Id: [6d8e5859-d19a-4e7b-a0bd-9977aa200db0] |
116 | X-Runtime: ['0.158456'] | 115 | X-Runtime: ['0.224264'] |
117 | X-XSS-Protection: [1; mode=block] | 116 | X-XSS-Protection: [1; mode=block] |
118 | content-length: ['1253'] | 117 | content-length: ['1615'] |
119 | status: {code: 200, message: OK} | 118 | status: {code: 200, message: OK} |
120 | - request: | 119 | - request: |
121 | body: null | 120 | body: null |
@@ -130,9 +129,10 @@ interactions: | |||
130 | response: | 129 | response: |
131 | body: {string: 'event: update | 130 | body: {string: 'event: update |
132 | 131 | ||
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 | 132 | data: {"id":"102315370831297879","created_at":"2019-06-22T13:04:21.374Z","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/102315370831297879","url":"http://localhost/@mastodonpy_test/102315370831297879","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"content":"<p>it's |
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 | 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":"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} | 134 | Lennon","locked":true,"bot":false,"created_at":"2019-06-22T14:46:28.567Z","note":"<p>I |
135 | walk funny</p>","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","followers_count":0,"following_count":0,"statuses_count":1,"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} | ||
136 | 136 | ||
137 | 137 | ||
138 | :'} | 138 | :'} |
@@ -142,9 +142,9 @@ interactions: | |||
142 | Access-Control-Allow-Origin: ['*'] | 142 | Access-Control-Allow-Origin: ['*'] |
143 | Connection: [keep-alive] | 143 | Connection: [keep-alive] |
144 | Content-Type: [text/event-stream] | 144 | Content-Type: [text/event-stream] |
145 | Date: ['Sat, 27 Apr 2019 23:51:33 GMT'] | 145 | Date: ['Sat, 22 Jun 2019 13:04:21 GMT'] |
146 | Transfer-Encoding: [chunked] | 146 | Transfer-Encoding: [chunked] |
147 | X-Powered-By: [Express] | 147 | X-Powered-By: [Express] |
148 | X-Request-Id: [d39b3ece-b7de-459d-8cea-f55d018ce010] | 148 | X-Request-Id: [12e545fa-06b0-4c73-9bca-f267a7bd7770] |
149 | status: {code: 200, message: OK} | 149 | status: {code: 200, message: OK} |
150 | version: 1 | 150 | version: 1 |