Mastodonplus.py/tests/cassettes/test_app_account_create.yaml

116 líneas
5,2 KiB
YAML
Original Vista normal Històric

2019-04-28 17:56:20 +02:00
interactions:
- request:
body: client_name=mastodon.py+generated+test+app&scopes=read+write+follow+push&redirect_uris=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['122']
Content-Type: [application/x-www-form-urlencoded]
User-Agent: [python-requests/2.18.4]
method: POST
uri: http://localhost:3000/api/v1/apps
response:
2019-06-22 23:16:47 +02:00
body: {string: '{"id":"9","name":"mastodon.py generated test app","website":null,"redirect_uri":"urn:ietf:wg:oauth:2.0:oob","client_id":"8JNtbrDxmk5qfqv2XrD8VjxoB9yDAGWX-BHLUEZLi4A","client_secret":"8M1U9VJ0OJFijsI-CfSnh46jaqMYdw_RA7TkX8Q9xaQ","vapid_key":"BMimvNvIJnE4R13etr8xTuyqzJ41IjYCpSBH0LICimXu2yzRI8mDhMJzRYfKhoNrs0TMpvkaa5asJ7Dl6PorcZE="}'}
2019-04-28 17:56:20 +02:00
headers:
2019-06-22 15:28:27 +02:00
Cache-Control: ['no-cache, no-store']
2019-04-28 17:56:20 +02:00
Content-Type: [application/json; charset=utf-8]
Referrer-Policy: [strict-origin-when-cross-origin]
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
2019-06-22 23:16:47 +02:00
X-Request-Id: [ff274a7b-ad41-4bcb-a680-0869d9375fde]
X-Runtime: ['0.026146']
2019-04-28 17:56:20 +02:00
X-XSS-Protection: [1; mode=block]
2019-06-22 15:28:27 +02:00
content-length: ['331']
2019-04-28 17:56:20 +02:00
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
User-Agent: [python-requests/2.18.4]
method: GET
uri: http://localhost:3000/api/v1/instance/
response:
2019-06-22 23:16:47 +02:00
body: {string: '{"uri":"localhost","title":"Mastodon","description":"","email":"","version":"2.9.1","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":3,"status_count":16,"domain_count":0},"thumbnail":"http://localhost/packs/media/images/preview-9a17d32fc48369e8ccd910a75260e67d.jpg","languages":["en"],"registrations":true,"contact_account":null}'}
2019-04-28 17:56:20 +02:00
headers:
Cache-Control: ['max-age=300, public']
Content-Type: [application/json; charset=utf-8]
2019-06-22 23:16:47 +02:00
Date: ['Sat, 22 Jun 2019 21:12:12 GMT']
ETag: [W/"78fbeabe9ecd4beafbc2259c901ebc50"]
2019-04-28 17:56:20 +02:00
Referrer-Policy: [strict-origin-when-cross-origin]
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
2019-06-22 23:16:47 +02:00
X-Request-Id: [960cb677-c620-4aa0-8656-ef57cadcccfd]
X-Runtime: ['0.025556']
2019-04-28 17:56:20 +02:00
X-XSS-Protection: [1; mode=block]
2019-06-22 23:16:47 +02:00
content-length: ['349']
2019-04-28 17:56:20 +02:00
status: {code: 200, message: OK}
- request:
2019-06-22 23:16:47 +02:00
body: scope=read+write+follow+push&client_id=8JNtbrDxmk5qfqv2XrD8VjxoB9yDAGWX-BHLUEZLi4A&client_secret=8M1U9VJ0OJFijsI-CfSnh46jaqMYdw_RA7TkX8Q9xaQ&grant_type=client_credentials
2019-04-28 17:56:20 +02:00
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
2019-06-22 15:28:27 +02:00
Content-Length: ['170']
2019-04-28 17:56:20 +02:00
Content-Type: [application/x-www-form-urlencoded]
User-Agent: [python-requests/2.18.4]
method: POST
uri: http://localhost:3000/oauth/token
response:
2019-06-22 23:16:47 +02:00
body: {string: '{"access_token":"JxJ3-HVb1v8E2fL0TWZupTiv37HnmQgkQp3LBkRNbeg","token_type":"Bearer","scope":"read
write follow push","created_at":1561237932}'}
2019-04-28 17:56:20 +02:00
headers:
Cache-Control: ['private, no-store']
Content-Type: [application/json; charset=utf-8]
2019-06-22 23:16:47 +02:00
ETag: [W/"07eae9f7e1ab03fe9cfe8a38da0e6a36"]
2019-04-28 17:56:20 +02:00
Pragma: [no-cache]
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
2019-06-22 23:16:47 +02:00
X-Request-Id: [7076d445-9898-4104-8295-bc06906b6e55]
X-Runtime: ['0.027344']
2019-06-22 15:28:27 +02:00
content-length: ['141']
2019-04-28 17:56:20 +02:00
status: {code: 200, message: OK}
- request:
2019-06-22 23:16:47 +02:00
body: locale=en&agreement=1&email=email%40localhost90885&password=swordfish&username=coolguy90885&client_id=8JNtbrDxmk5qfqv2XrD8VjxoB9yDAGWX-BHLUEZLi4A&client_secret=8M1U9VJ0OJFijsI-CfSnh46jaqMYdw_RA7TkX8Q9xaQ
2019-04-28 17:56:20 +02:00
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
2019-06-22 23:16:47 +02:00
Authorization: [Bearer JxJ3-HVb1v8E2fL0TWZupTiv37HnmQgkQp3LBkRNbeg]
2019-04-28 17:56:20 +02:00
Connection: [keep-alive]
2019-06-22 15:28:27 +02:00
Content-Length: ['203']
2019-04-28 17:56:20 +02:00
Content-Type: [application/x-www-form-urlencoded]
User-Agent: [python-requests/2.18.4]
method: POST
uri: http://localhost:3000/api/v1/accounts
response:
2019-06-22 23:16:47 +02:00
body: {string: '{"access_token":"mtid2fVfjteKNHuJX-0XNAQ529z3dO2Zpzq80ylNH_I","token_type":"Bearer","scope":"read
write follow push","created_at":1561237932}'}
2019-04-28 17:56:20 +02:00
headers:
Cache-Control: ['private, no-store']
Content-Type: [application/json; charset=utf-8]
2019-06-22 23:16:47 +02:00
ETag: [W/"9ce4d72a21d00ff937dbcd69861b3385"]
2019-04-28 17:56:20 +02:00
Pragma: [no-cache]
Referrer-Policy: [strict-origin-when-cross-origin]
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
2019-06-22 23:16:47 +02:00
X-Request-Id: [574081ae-1f36-4a92-a843-b476500a83c1]
X-Runtime: ['0.113198']
2019-04-28 17:56:20 +02:00
X-XSS-Protection: [1; mode=block]
2019-06-22 15:28:27 +02:00
content-length: ['141']
2019-04-28 17:56:20 +02:00
status: {code: 200, message: OK}
version: 1