Mastodon.py/tests/cassettes/test_status_card.yaml

182 wiersze
9.9 KiB
YAML
Czysty Zwykły widok Historia

2018-04-18 20:00:35 +00:00
interactions:
- request:
body: status=http%3A%2F%2Fexample.org%2F
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Authorization:
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
Connection:
- keep-alive
Content-Length:
- '34'
Content-Type:
- application/x-www-form-urlencoded
User-Agent:
- tests/v311
2018-04-18 20:00:35 +00:00
method: POST
uri: http://localhost:3000/api/v1/statuses
response:
body:
2023-04-23 18:22:33 +00:00
string: '{"id":"110249422255397922","created_at":"2023-04-23T17:57:58.459Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/110249422255397922","url":"http://localhost:3000/@mastodonpy_test/110249422255397922","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003e\u003ca
href=\"http://example.org/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"\u003e\u003cspan
2018-04-18 20:00:35 +00:00
class=\"invisible\"\u003ehttp://\u003c/span\u003e\u003cspan class=\"\"\u003eexample.org/\u003c/span\u003e\u003cspan
class=\"invisible\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
2023-04-23 18:22:33 +00:00
test suite","website":null},"account":{"id":"110248832373441811","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2023-04-23T00:00:00.000Z","note":"\u003cp\u003eI
walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/110/248/832/373/441/811/original/a3bffa303d66a3f3.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/110/248/832/373/441/811/original/a3bffa303d66a3f3.jpg","header":"http://localhost:3000/system/accounts/headers/110/248/832/373/441/811/original/9c722424942444ff.jpg","header_static":"http://localhost:3000/system/accounts/headers/110/248/832/373/441/811/original/9c722424942444ff.jpg","followers_count":0,"following_count":0,"statuses_count":4,"last_status_at":"2023-04-23","noindex":false,"emojis":[],"roles":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'
2018-04-18 20:00:35 +00:00
headers:
Cache-Control:
2023-04-23 18:22:33 +00:00
- private, no-store
Content-Security-Policy:
2023-04-23 18:22:33 +00:00
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
Content-Type:
- application/json; charset=utf-8
ETag:
2023-04-23 18:22:33 +00:00
- W/"d636bf6ca2ac0b2c6e1fde94ad00579e"
Referrer-Policy:
- strict-origin-when-cross-origin
Transfer-Encoding:
- chunked
Vary:
- Accept, Origin
X-Content-Type-Options:
- nosniff
X-Download-Options:
- noopen
X-Frame-Options:
- SAMEORIGIN
X-Permitted-Cross-Domain-Policies:
- none
X-RateLimit-Limit:
- '300'
X-RateLimit-Remaining:
- '218'
X-RateLimit-Reset:
2023-04-23 18:22:33 +00:00
- '2023-04-23T18:00:00.493395Z'
X-Request-Id:
2023-04-23 18:22:33 +00:00
- 18a994d1-41b5-4df4-9cfb-6b8f853e80c5
X-Runtime:
2023-04-23 18:22:33 +00:00
- '0.051249'
X-XSS-Protection:
- 1; mode=block
status:
code: 200
message: OK
2018-04-18 20:00:35 +00:00
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Authorization:
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
Connection:
- keep-alive
User-Agent:
- tests/v311
2018-04-18 20:00:35 +00:00
method: GET
2023-04-23 18:22:33 +00:00
uri: http://localhost:3000/api/v1/statuses/110249422255397922
2018-04-18 20:00:35 +00:00
response:
body:
2023-04-23 18:22:33 +00:00
string: '{"id":"110249422255397922","created_at":"2023-04-23T17:57:58.459Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/110249422255397922","url":"http://localhost:3000/@mastodonpy_test/110249422255397922","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003e\u003ca
href=\"http://example.org/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"\u003e\u003cspan
class=\"invisible\"\u003ehttp://\u003c/span\u003e\u003cspan class=\"\"\u003eexample.org/\u003c/span\u003e\u003cspan
class=\"invisible\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
2023-04-23 18:22:33 +00:00
test suite","website":null},"account":{"id":"110248832373441811","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2023-04-23T00:00:00.000Z","note":"\u003cp\u003eI
walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/110/248/832/373/441/811/original/a3bffa303d66a3f3.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/110/248/832/373/441/811/original/a3bffa303d66a3f3.jpg","header":"http://localhost:3000/system/accounts/headers/110/248/832/373/441/811/original/9c722424942444ff.jpg","header_static":"http://localhost:3000/system/accounts/headers/110/248/832/373/441/811/original/9c722424942444ff.jpg","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2023-04-23","noindex":false,"emojis":[],"roles":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":{"url":"http://example.org/","title":"Example
Domain","description":"","type":"link","author_name":"","author_url":"","provider_name":"","provider_url":"","html":"","width":0,"height":0,"image":null,"embed_url":"","blurhash":null},"poll":null}'
2018-04-18 20:00:35 +00:00
headers:
Cache-Control:
2023-04-23 18:22:33 +00:00
- private, no-store
Content-Security-Policy:
2023-04-23 18:22:33 +00:00
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
Content-Type:
- application/json; charset=utf-8
ETag:
2023-04-23 18:22:33 +00:00
- W/"ddab3d38fecdbd6cda239058f7f831fa"
Referrer-Policy:
- strict-origin-when-cross-origin
Transfer-Encoding:
- chunked
Vary:
- Accept, Origin
X-Content-Type-Options:
- nosniff
X-Download-Options:
- noopen
X-Frame-Options:
- SAMEORIGIN
X-Permitted-Cross-Domain-Policies:
- none
X-Request-Id:
2023-04-23 18:22:33 +00:00
- f6be8211-7f94-439c-916c-f0f39882dfc7
X-Runtime:
2023-04-23 18:22:33 +00:00
- '0.046407'
X-XSS-Protection:
- 1; mode=block
status:
code: 200
message: OK
2018-04-18 20:00:35 +00:00
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Authorization:
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- tests/v311
2018-04-18 20:00:35 +00:00
method: DELETE
2023-04-23 18:22:33 +00:00
uri: http://localhost:3000/api/v1/statuses/110249422255397922
2018-04-18 20:00:35 +00:00
response:
body:
2023-04-23 18:22:33 +00:00
string: '{"id":"110249422255397922","created_at":"2023-04-23T17:57:58.459Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/110249422255397922","url":"http://localhost:3000/@mastodonpy_test/110249422255397922","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"http://example.org/","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
test suite","website":null},"account":{"id":"110248832373441811","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2023-04-23T00:00:00.000Z","note":"\u003cp\u003eI
walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/110/248/832/373/441/811/original/a3bffa303d66a3f3.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/110/248/832/373/441/811/original/a3bffa303d66a3f3.jpg","header":"http://localhost:3000/system/accounts/headers/110/248/832/373/441/811/original/9c722424942444ff.jpg","header_static":"http://localhost:3000/system/accounts/headers/110/248/832/373/441/811/original/9c722424942444ff.jpg","followers_count":0,"following_count":0,"statuses_count":2,"last_status_at":"2023-04-23","noindex":false,"emojis":[],"roles":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":{"url":"http://example.org/","title":"Example
Domain","description":"","type":"link","author_name":"","author_url":"","provider_name":"","provider_url":"","html":"","width":0,"height":0,"image":null,"embed_url":"","blurhash":null},"poll":null}'
2018-04-18 20:00:35 +00:00
headers:
Cache-Control:
2023-04-23 18:22:33 +00:00
- private, no-store
Content-Security-Policy:
2023-04-23 18:22:33 +00:00
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
Content-Type:
- application/json; charset=utf-8
ETag:
2023-04-23 18:22:33 +00:00
- W/"d86fdf3d6f7bf77347138096f9469215"
Referrer-Policy:
- strict-origin-when-cross-origin
Transfer-Encoding:
- chunked
Vary:
- Accept, Origin
X-Content-Type-Options:
- nosniff
X-Download-Options:
- noopen
X-Frame-Options:
- SAMEORIGIN
X-Permitted-Cross-Domain-Policies:
- none
X-Request-Id:
2023-04-23 18:22:33 +00:00
- 70c0ea59-cac1-417f-a21f-57ab9c1b3866
X-Runtime:
2023-04-23 18:22:33 +00:00
- '0.046858'
X-XSS-Protection:
- 1; mode=block
status:
code: 200
message: OK
2018-04-18 20:00:35 +00:00
version: 1