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-10-12 23:03:14 +02:00
body: {string: '{"id":"14","name":"mastodon.py generated test app","website":null,"redirect_uri":"urn:ietf:wg:oauth:2.0:oob","client_id":"MzGBtpcvCxWYZnRsjgIls1AMETbJTrmlSy7Itk-TlVM","client_secret":"GxZO14xfcT2JsGv00pH_xB2sV0IPp35Hsig9aYdFGOY","vapid_key":"BAWt221FllE4MOQ_TNqrMrc32IW2XhCRR0WTPI0Ne0TzoNm6UeUdEDDs5FAn8nGtW8eiJyCmSMoJnUEFi1Cj1Rk="}'}
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-10-12 23:03:14 +02:00
X-Request-Id: [ccbebc8d-6d9a-4199-9da0-f302ff5cc103]
X-Runtime: ['0.039689']
2019-04-28 17:56:20 +02:00
X-XSS-Protection: [1; mode=block]
content-length: ['332']
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-10-12 23:03:14 +02:00
body: {string: '{"uri":"localhost","title":"Mastodon","short_description":"","description":"","email":"","version":"3.0.1","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":3,"status_count":31,"domain_count":0},"thumbnail":"http://localhost/packs/media/images/preview-9a17d32fc48369e8ccd910a75260e67d.jpg","languages":["en"],"registrations":true,"approval_required":false,"contact_account":null}'}
2019-04-28 17:56:20 +02:00
headers:
Cache-Control: ['max-age=180, public']
2019-04-28 17:56:20 +02:00
Content-Type: [application/json; charset=utf-8]
2019-10-12 23:03:14 +02:00
Date: ['Sat, 12 Oct 2019 21:00:22 GMT']
ETag: [W/"9db06456db31431568d35ac7638f0ebd"]
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-10-12 23:03:14 +02:00
X-Request-Id: [27af43cf-00d7-4ce9-b0aa-315b1ffa733e]
X-Runtime: ['0.033521']
2019-04-28 17:56:20 +02:00
X-XSS-Protection: [1; mode=block]
content-length: ['398']
2019-04-28 17:56:20 +02:00
status: {code: 200, message: OK}
- request:
2019-10-12 23:03:14 +02:00
body: scope=read+write+follow+push&client_id=MzGBtpcvCxWYZnRsjgIls1AMETbJTrmlSy7Itk-TlVM&client_secret=GxZO14xfcT2JsGv00pH_xB2sV0IPp35Hsig9aYdFGOY&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-10-12 23:03:14 +02:00
body: {string: '{"access_token":"s6deoDz1LsmZ_WOk2s1STazp_PNITCjmHZfDRAZWN5k","token_type":"Bearer","scope":"read
write follow push","created_at":1570914022}'}
2019-04-28 17:56:20 +02:00
headers:
Cache-Control: ['private, no-store']
Content-Type: [application/json; charset=utf-8]
2019-10-12 23:03:14 +02:00
ETag: [W/"55f7f2ad02ae74574fedcacc65f8932b"]
2019-04-28 17:56:20 +02:00
Pragma: [no-cache]
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
2019-10-12 23:03:14 +02:00
X-Request-Id: [afad64bd-a8ac-4a7e-bbf4-72653649a4c4]
X-Runtime: ['0.033029']
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-10-12 23:03:14 +02:00
body: locale=en&agreement=1&email=email%40localhost65825&password=swordfish&username=coolguy65825&client_id=MzGBtpcvCxWYZnRsjgIls1AMETbJTrmlSy7Itk-TlVM&client_secret=GxZO14xfcT2JsGv00pH_xB2sV0IPp35Hsig9aYdFGOY
2019-04-28 17:56:20 +02:00
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
2019-10-12 23:03:14 +02:00
Authorization: [Bearer s6deoDz1LsmZ_WOk2s1STazp_PNITCjmHZfDRAZWN5k]
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-10-12 23:03:14 +02:00
body: {string: '{"access_token":"RPw9YNg0bk_x6HHgf6VQ_NHHXz3ENaVe25Oo6tTXjw8","token_type":"Bearer","scope":"read
write follow push","created_at":1570914022}'}
2019-04-28 17:56:20 +02:00
headers:
Cache-Control: ['private, no-store']
Content-Type: [application/json; charset=utf-8]
2019-10-12 23:03:14 +02:00
ETag: [W/"b4d17e826792395e0610ee5ed4942848"]
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-10-12 23:03:14 +02:00
X-Request-Id: [9f341d37-020a-4814-b59f-d3412fd0bb8e]
X-Runtime: ['0.171555']
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