diff options
author | Lorenz Diener <[email protected]> | 2018-06-05 22:10:31 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2018-06-05 22:10:31 +0200 |
commit | 18c6b3b90ff8bd607df18af86d092ac1205ffbf7 (patch) | |
tree | 203729696d2639d5bf221168ad6c76a150130ab0 /tests/cassettes/test_stream_user_local.yaml | |
parent | 36194fd60c8e5c6d30134134e32dd24981aee324 (diff) | |
download | mastodon.py-18c6b3b90ff8bd607df18af86d092ac1205ffbf7.tar.gz |
New casettes, small fixes
Diffstat (limited to 'tests/cassettes/test_stream_user_local.yaml')
-rw-r--r-- | tests/cassettes/test_stream_user_local.yaml | 66 |
1 files changed, 39 insertions, 27 deletions
diff --git a/tests/cassettes/test_stream_user_local.yaml b/tests/cassettes/test_stream_user_local.yaml index 7d475cd..82407bf 100644 --- a/tests/cassettes/test_stream_user_local.yaml +++ b/tests/cassettes/test_stream_user_local.yaml | |||
@@ -10,19 +10,22 @@ 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,"created_at":"2018-05-06T22:36:57.850Z","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":10,"source":{"privacy":"public","sensitive":false,"note":""}}'} | 13 | body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-06-05T19:58:37.960Z","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":1,"following_count":0,"statuses_count":2,"source":{"privacy":"public","sensitive":false,"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/"15c11dfc23cf2cda445184d5e8460fcf"] | 17 | ETag: [W/"5a3cb8cc710fe491799791995af5fa74"] |
18 | Referrer-Policy: [strict-origin-when-cross-origin] | ||
18 | Transfer-Encoding: [chunked] | 19 | Transfer-Encoding: [chunked] |
19 | Vary: ['Accept-Encoding, Origin'] | 20 | Vary: ['Accept-Encoding, Origin'] |
20 | X-Content-Type-Options: [nosniff] | 21 | X-Content-Type-Options: [nosniff] |
22 | X-Download-Options: [noopen] | ||
21 | X-Frame-Options: [SAMEORIGIN] | 23 | X-Frame-Options: [SAMEORIGIN] |
22 | X-Request-Id: [f82c5ff8-4dba-43bc-980e-07c37116b8e0] | 24 | X-Permitted-Cross-Domain-Policies: [none] |
23 | X-Runtime: ['0.044216'] | 25 | X-Request-Id: [ba8279eb-7ec6-490a-9844-7f163b3a0d8f] |
26 | X-Runtime: ['0.053921'] | ||
24 | X-XSS-Protection: [1; mode=block] | 27 | X-XSS-Protection: [1; mode=block] |
25 | content-length: ['571'] | 28 | content-length: ['618'] |
26 | status: {code: 200, message: OK} | 29 | status: {code: 200, message: OK} |
27 | - request: | 30 | - request: |
28 | body: null | 31 | body: null |
@@ -40,13 +43,16 @@ interactions: | |||
40 | headers: | 43 | headers: |
41 | Cache-Control: ['max-age=0, private, must-revalidate'] | 44 | Cache-Control: ['max-age=0, private, must-revalidate'] |
42 | Content-Type: [application/json; charset=utf-8] | 45 | Content-Type: [application/json; charset=utf-8] |
43 | ETag: [W/"c63a2050dda59236b6c2a15e05a92893"] | 46 | ETag: [W/"a6d3db85e7e93705655b75b8c9346649"] |
47 | Referrer-Policy: [strict-origin-when-cross-origin] | ||
44 | Transfer-Encoding: [chunked] | 48 | Transfer-Encoding: [chunked] |
45 | Vary: ['Accept-Encoding, Origin'] | 49 | Vary: ['Accept-Encoding, Origin'] |
46 | X-Content-Type-Options: [nosniff] | 50 | X-Content-Type-Options: [nosniff] |
51 | X-Download-Options: [noopen] | ||
47 | X-Frame-Options: [SAMEORIGIN] | 52 | X-Frame-Options: [SAMEORIGIN] |
48 | X-Request-Id: [9fd55e86-9eed-4329-a340-bc7ffe21a669] | 53 | X-Permitted-Cross-Domain-Policies: [none] |
49 | X-Runtime: ['0.059000'] | 54 | X-Request-Id: [94910581-23c6-44f9-9dd4-8dc3e0e6b8f0] |
55 | X-Runtime: ['0.093588'] | ||
50 | X-XSS-Protection: [1; mode=block] | 56 | X-XSS-Protection: [1; mode=block] |
51 | content-length: ['175'] | 57 | content-length: ['175'] |
52 | status: {code: 200, message: OK} | 58 | status: {code: 200, message: OK} |
@@ -61,19 +67,22 @@ interactions: | |||
61 | method: GET | 67 | method: GET |
62 | uri: http://localhost:3000/api/v1/instance/ | 68 | uri: http://localhost:3000/api/v1/instance/ |
63 | response: | 69 | response: |
64 | body: {string: '{"uri":"localhost:3000","title":"Mastodon","description":"","email":"","version":"2.3.3","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":2,"status_count":13,"domain_count":0},"thumbnail":"http://localhost:3000/packs/preview.jpg","languages":["en"],"contact_account":null}'} | 70 | body: {string: '{"uri":"localhost:3000","title":"Mastodon","description":"","email":"","version":"2.4.1rc1","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":2,"status_count":24,"domain_count":0},"thumbnail":"http://localhost:3000/packs/preview.jpg","languages":["en"],"contact_account":null}'} |
65 | headers: | 71 | headers: |
66 | Cache-Control: ['max-age=0, private, must-revalidate'] | 72 | Cache-Control: ['max-age=0, private, must-revalidate'] |
67 | Content-Type: [application/json; charset=utf-8] | 73 | Content-Type: [application/json; charset=utf-8] |
68 | ETag: [W/"421c4f340027980c909b39b22002b1f4"] | 74 | ETag: [W/"330ef056bff1805f153cdd937a313f49"] |
75 | Referrer-Policy: [strict-origin-when-cross-origin] | ||
69 | Transfer-Encoding: [chunked] | 76 | Transfer-Encoding: [chunked] |
70 | Vary: ['Accept-Encoding, Origin'] | 77 | Vary: ['Accept-Encoding, Origin'] |
71 | X-Content-Type-Options: [nosniff] | 78 | X-Content-Type-Options: [nosniff] |
79 | X-Download-Options: [noopen] | ||
72 | X-Frame-Options: [SAMEORIGIN] | 80 | X-Frame-Options: [SAMEORIGIN] |
73 | X-Request-Id: [ffbc4aa1-8af6-4b46-b366-05aa2d3c0d6c] | 81 | X-Permitted-Cross-Domain-Policies: [none] |
74 | X-Runtime: ['0.056935'] | 82 | X-Request-Id: [4bb124c8-471a-4cf9-9455-a772d14e1d7b] |
83 | X-Runtime: ['0.069462'] | ||
75 | X-XSS-Protection: [1; mode=block] | 84 | X-XSS-Protection: [1; mode=block] |
76 | content-length: ['292'] | 85 | content-length: ['295'] |
77 | status: {code: 200, message: OK} | 86 | status: {code: 200, message: OK} |
78 | - request: | 87 | - request: |
79 | body: status=it%27s+cool+guy | 88 | body: status=it%27s+cool+guy |
@@ -88,23 +97,26 @@ interactions: | |||
88 | method: POST | 97 | method: POST |
89 | uri: http://localhost:3000/api/v1/statuses | 98 | uri: http://localhost:3000/api/v1/statuses |
90 | response: | 99 | response: |
91 | body: {string: '{"id":"99984807248835180","created_at":"2018-05-06T22:51:23.283Z","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/99984807248835180","content":"\u003cp\u003eit\u0026apos;s | 100 | body: {string: '{"id":"100154012619100124","created_at":"2018-06-05T20:02:32.332Z","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/100154012619100124","content":"\u003cp\u003eit\u0026apos;s |
92 | cool guy\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99984807248835180","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | 101 | cool guy\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/100154012619100124","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py |
93 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | 102 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John |
94 | Lennon","locked":true,"created_at":"2018-05-07T00:38:05.405Z","note":"\u003cp\u003eI | 103 | Lennon","locked":true,"bot":false,"created_at":"2018-06-05T21:58:43.069Z","note":"\u003cp\u003eI |
95 | 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":4},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} | 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_.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","followers_count":0,"following_count":1,"statuses_count":23,"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} |
96 | headers: | 105 | headers: |
97 | Cache-Control: ['max-age=0, private, must-revalidate'] | 106 | Cache-Control: ['max-age=0, private, must-revalidate'] |
98 | Content-Type: [application/json; charset=utf-8] | 107 | Content-Type: [application/json; charset=utf-8] |
99 | ETag: [W/"214f5dbab17261b078dbd3e22cf8dd0a"] | 108 | ETag: [W/"bccedf82eef77258d9135847e2049db6"] |
109 | Referrer-Policy: [strict-origin-when-cross-origin] | ||
100 | Transfer-Encoding: [chunked] | 110 | Transfer-Encoding: [chunked] |
101 | Vary: ['Accept-Encoding, Origin'] | 111 | Vary: ['Accept-Encoding, Origin'] |
102 | X-Content-Type-Options: [nosniff] | 112 | X-Content-Type-Options: [nosniff] |
113 | X-Download-Options: [noopen] | ||
103 | X-Frame-Options: [SAMEORIGIN] | 114 | X-Frame-Options: [SAMEORIGIN] |
104 | X-Request-Id: [721d894f-4f7b-428a-8da6-a8a010460196] | 115 | X-Permitted-Cross-Domain-Policies: [none] |
105 | X-Runtime: ['0.209618'] | 116 | X-Request-Id: [2422546a-b734-4372-a299-380416f5d1c9] |
117 | X-Runtime: ['0.208524'] | ||
106 | X-XSS-Protection: [1; mode=block] | 118 | X-XSS-Protection: [1; mode=block] |
107 | content-length: ['1418'] | 119 | content-length: ['1523'] |
108 | status: {code: 200, message: OK} | 120 | status: {code: 200, message: OK} |
109 | - request: | 121 | - request: |
110 | body: null | 122 | body: null |
@@ -119,11 +131,11 @@ interactions: | |||
119 | response: | 131 | response: |
120 | body: {string: 'event: update | 132 | body: {string: 'event: update |
121 | 133 | ||
122 | data: {"id":"99984807248835180","created_at":"2018-05-06T22:51:23.283Z","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/99984807248835180","content":"<p>it's | 134 | data: {"id":"100154012619100124","created_at":"2018-06-05T20:02:32.332Z","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/100154012619100124","content":"<p>it's |
123 | cool guy</p>","url":"http://localhost:3000/@mastodonpy_test/99984807248835180","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | 135 | cool guy</p>","url":"http://localhost:3000/@mastodonpy_test/100154012619100124","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py |
124 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | 136 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John |
125 | Lennon","locked":true,"created_at":"2018-05-07T00:38:05.405Z","note":"<p>I | 137 | Lennon","locked":true,"bot":false,"created_at":"2018-06-05T21:58:43.069Z","note":"<p>I |
126 | 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":4},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]} | 138 | walk funny</p>","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","followers_count":0,"following_count":1,"statuses_count":23,"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]} |
127 | 139 | ||
128 | 140 | ||
129 | '} | 141 | '} |
@@ -133,9 +145,9 @@ interactions: | |||
133 | Access-Control-Allow-Origin: ['*'] | 145 | Access-Control-Allow-Origin: ['*'] |
134 | Connection: [keep-alive] | 146 | Connection: [keep-alive] |
135 | Content-Type: [text/event-stream] | 147 | Content-Type: [text/event-stream] |
136 | Date: ['Sun, 06 May 2018 22:51:23 GMT'] | 148 | Date: ['Tue, 05 Jun 2018 20:02:32 GMT'] |
137 | Transfer-Encoding: [chunked] | 149 | Transfer-Encoding: [chunked] |
138 | X-Powered-By: [Express] | 150 | X-Powered-By: [Express] |
139 | X-Request-Id: [84741f72-f229-42ff-832c-8f1c4f1425bb] | 151 | X-Request-Id: [455f992e-1ac0-4f99-828b-829a09db2c87] |
140 | status: {code: 200, message: OK} | 152 | status: {code: 200, message: OK} |
141 | version: 1 | 153 | version: 1 |