kopia lustrzana https://github.com/halcy/Mastodon.py
181 wiersze
5.9 KiB
YAML
181 wiersze
5.9 KiB
YAML
interactions:
|
|
- request:
|
|
body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BKXwdN%2FZ8W1gFPcS4vDRJSiPQ4qJ4D%2FE4OWy73%2FrdLNk0GmqBNAFgWynHX58xPZmvW4VBbwwgjq9Da0LM8WivYw%3D&subscription%5Bkeys%5D%5Bauth%5D=Jlzc800AB0YFWKqPmCXWrQ%3D%3D&policy=all
|
|
headers:
|
|
Accept:
|
|
- '*/*'
|
|
Accept-Encoding:
|
|
- gzip, deflate
|
|
Authorization:
|
|
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
|
|
Connection:
|
|
- keep-alive
|
|
Content-Length:
|
|
- '257'
|
|
Content-Type:
|
|
- application/x-www-form-urlencoded
|
|
User-Agent:
|
|
- tests/v311
|
|
method: POST
|
|
uri: http://localhost:3000/api/v1/push/subscription
|
|
response:
|
|
body:
|
|
string: '{"id":3,"endpoint":"https://example.com","alerts":{},"server_key":"BCzv2IBoCn5an4RTxaTcxEUb14hWbXsS6yVkraxqbFAOwD_nR0l5I4fS7kFzJYmNnYij873sO8zDjJ_m6OAFqEo="}'
|
|
headers:
|
|
Cache-Control:
|
|
- no-store
|
|
Content-Security-Policy:
|
|
- 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
|
|
''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
|
|
style-src ''self'' http://localhost:3000 ''nonce-owHhTTFyUkszs5mlmq5nMg=='';
|
|
media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
|
|
https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
|
|
data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
|
|
ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
|
|
''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
|
|
worker-src ''self'' blob: http://localhost:3000'
|
|
Content-Type:
|
|
- application/json; charset=utf-8
|
|
ETag:
|
|
- W/"29ed2fc5af898c627fdfbd5625a7586d"
|
|
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:
|
|
- 69fab862-7938-41cf-94df-7eda79cb2c6f
|
|
X-Runtime:
|
|
- '0.014054'
|
|
X-XSS-Protection:
|
|
- 1; mode=block
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
- 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
|
|
method: DELETE
|
|
uri: http://localhost:3000/api/v1/push/subscription
|
|
response:
|
|
body:
|
|
string: '{}'
|
|
headers:
|
|
Cache-Control:
|
|
- no-store
|
|
Content-Security-Policy:
|
|
- 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
|
|
''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
|
|
style-src ''self'' http://localhost:3000 ''nonce-UrkVOlZMu7QBu5Swe2+Wjg=='';
|
|
media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
|
|
https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
|
|
data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
|
|
ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
|
|
''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
|
|
worker-src ''self'' blob: http://localhost:3000'
|
|
Content-Type:
|
|
- application/json; charset=utf-8
|
|
ETag:
|
|
- W/"44136fa355b3678a1146ad16f7e8649e"
|
|
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:
|
|
- 8948f106-1dd3-47b1-8daf-47d81fb3d2f5
|
|
X-Runtime:
|
|
- '0.012297'
|
|
X-XSS-Protection:
|
|
- 1; mode=block
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
- request:
|
|
body: null
|
|
headers:
|
|
Accept:
|
|
- '*/*'
|
|
Accept-Encoding:
|
|
- gzip, deflate
|
|
Authorization:
|
|
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
|
|
Connection:
|
|
- keep-alive
|
|
User-Agent:
|
|
- tests/v311
|
|
method: GET
|
|
uri: http://localhost:3000/api/v1/push/subscription
|
|
response:
|
|
body:
|
|
string: '{"error":"Not Found"}'
|
|
headers:
|
|
Cache-Control:
|
|
- no-store
|
|
Content-Security-Policy:
|
|
- 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
|
|
''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
|
|
style-src ''self'' http://localhost:3000 ''nonce-j3uWoX/LnRpCO2AqAHorQg=='';
|
|
media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
|
|
https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
|
|
data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
|
|
ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
|
|
''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
|
|
worker-src ''self'' blob: http://localhost:3000'
|
|
Content-Type:
|
|
- application/json; charset=utf-8
|
|
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:
|
|
- a551afa5-a9f9-436b-bdb2-bd891728cbeb
|
|
X-Runtime:
|
|
- '0.007331'
|
|
X-XSS-Protection:
|
|
- 1; mode=block
|
|
status:
|
|
code: 404
|
|
message: Not Found
|
|
version: 1
|