diff options
author | codl <[email protected]> | 2017-11-27 20:43:27 +0100 |
---|---|---|
committer | codl <[email protected]> | 2017-11-27 20:43:27 +0100 |
commit | eed6f8f0a4498bf6393c4f79a5dc662c48e98d73 (patch) | |
tree | 1c65337c7b6330fb7ac602f009492dae7f93d819 /tests/cassettes/test_log_in_password_incorrect.yaml | |
parent | 508d1d2ddd157e02574db1138acda9f3f997f023 (diff) | |
download | mastodon.py-eed6f8f0a4498bf6393c4f79a5dc662c48e98d73.tar.gz |
add tests for log_in
Diffstat (limited to 'tests/cassettes/test_log_in_password_incorrect.yaml')
-rw-r--r-- | tests/cassettes/test_log_in_password_incorrect.yaml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/cassettes/test_log_in_password_incorrect.yaml b/tests/cassettes/test_log_in_password_incorrect.yaml new file mode 100644 index 0000000..a66fe07 --- /dev/null +++ b/tests/cassettes/test_log_in_password_incorrect.yaml | |||
@@ -0,0 +1,31 @@ | |||
1 | interactions: | ||
2 | - request: | ||
3 | body: redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&password=hunter2&username=admin%40localhost%3A3000&grant_type=password&client_id=__MASTODON_PY_TEST_ID&client_secret=__MASTODON_PY_TEST_SECRET&scope=read+write+follow | ||
4 | headers: | ||
5 | Accept: ['*/*'] | ||
6 | Accept-Encoding: ['gzip, deflate'] | ||
7 | Connection: [keep-alive] | ||
8 | Content-Length: ['215'] | ||
9 | Content-Type: [application/x-www-form-urlencoded] | ||
10 | User-Agent: [python-requests/2.18.4] | ||
11 | method: POST | ||
12 | uri: http://localhost:3000/oauth/token | ||
13 | response: | ||
14 | body: {string: '{"error":"invalid_grant","error_description":"The provided authorization | ||
15 | grant is invalid, expired, revoked, does not match the redirection URI used | ||
16 | in the authorization request, or was issued to another client."}'} | ||
17 | headers: | ||
18 | Cache-Control: [no-store] | ||
19 | Content-Type: [application/json; charset=utf-8] | ||
20 | Pragma: [no-cache] | ||
21 | Transfer-Encoding: [chunked] | ||
22 | Vary: ['Accept-Encoding, Origin'] | ||
23 | WWW-Authenticate: ['Bearer realm="Doorkeeper", error="invalid_grant", error_description="The | ||
24 | provided authorization grant is invalid, expired, revoked, does not match | ||
25 | the redirection URI used in the authorization request, or was issued to | ||
26 | another client."'] | ||
27 | X-Request-Id: [ece30cd8-c6c1-4bc7-af1a-19bbd997745e] | ||
28 | X-Runtime: ['0.077864'] | ||
29 | content-length: ['213'] | ||
30 | status: {code: 401, message: Unauthorized} | ||
31 | version: 1 | ||