diff options
author | Lorenz Diener <[email protected]> | 2020-02-22 20:31:33 +0100 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2020-02-22 20:31:33 +0100 |
commit | 4f90728a4a8c98f3ee7e9aab5a05f93c152a375d (patch) | |
tree | a06d71bfcc7be6e8fe6d17a881cebfbafbe51963 /tests/cassettes/test_app_account_create.yaml | |
parent | 2132615269aa80a01d9af63d90e075197603fa3e (diff) | |
download | mastodon.py-4f90728a4a8c98f3ee7e9aab5a05f93c152a375d.tar.gz |
Fix tests for 3.1.1
Diffstat (limited to 'tests/cassettes/test_app_account_create.yaml')
-rw-r--r-- | tests/cassettes/test_app_account_create.yaml | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/tests/cassettes/test_app_account_create.yaml b/tests/cassettes/test_app_account_create.yaml index aeeb2a8..17920fd 100644 --- a/tests/cassettes/test_app_account_create.yaml +++ b/tests/cassettes/test_app_account_create.yaml | |||
@@ -11,7 +11,7 @@ interactions: | |||
11 | method: POST | 11 | method: POST |
12 | uri: http://localhost:3000/api/v1/apps | 12 | uri: http://localhost:3000/api/v1/apps |
13 | response: | 13 | response: |
14 | 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="}'} | 14 | body: {string: '{"id":"2","name":"mastodon.py generated test app","website":null,"redirect_uri":"urn:ietf:wg:oauth:2.0:oob","client_id":"EPr2E85ytcwDMnx2E2jQ9w34FcA4GHy0AoxmOvES4yQ","client_secret":"9cOEKAblYTsCOMXIX0iO4SyUi6_DlPPaTJW13IDj2FA","vapid_key":"BPSW9N0oBHCeTlN6VgEPwlf36QQzuU6XtxguTJSM9xyW9kxnN2I_lzcHsk3ShJMRa0Na7t2kiE9UyJWrtQOsTJo="}'} |
15 | headers: | 15 | headers: |
16 | Cache-Control: ['no-cache, no-store'] | 16 | Cache-Control: ['no-cache, no-store'] |
17 | Content-Type: [application/json; charset=utf-8] | 17 | Content-Type: [application/json; charset=utf-8] |
@@ -22,10 +22,10 @@ interactions: | |||
22 | X-Download-Options: [noopen] | 22 | X-Download-Options: [noopen] |
23 | X-Frame-Options: [SAMEORIGIN] | 23 | X-Frame-Options: [SAMEORIGIN] |
24 | X-Permitted-Cross-Domain-Policies: [none] | 24 | X-Permitted-Cross-Domain-Policies: [none] |
25 | X-Request-Id: [ccbebc8d-6d9a-4199-9da0-f302ff5cc103] | 25 | X-Request-Id: [eb7e8c7c-dce0-44b7-9cba-93e54c88bd92] |
26 | X-Runtime: ['0.039689'] | 26 | X-Runtime: ['0.042580'] |
27 | X-XSS-Protection: [1; mode=block] | 27 | X-XSS-Protection: [1; mode=block] |
28 | content-length: ['332'] | 28 | content-length: ['331'] |
29 | status: {code: 200, message: OK} | 29 | status: {code: 200, message: OK} |
30 | - request: | 30 | - request: |
31 | body: null | 31 | body: null |
@@ -37,12 +37,12 @@ interactions: | |||
37 | method: GET | 37 | method: GET |
38 | uri: http://localhost:3000/api/v1/instance/ | 38 | uri: http://localhost:3000/api/v1/instance/ |
39 | response: | 39 | response: |
40 | 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}'} | 40 | body: {string: '{"uri":"localhost","title":"Mastodon","short_description":"","description":"","email":"","version":"3.1.1","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":3,"status_count":1,"domain_count":0},"thumbnail":"http://localhost/packs/media/images/preview-9a17d32fc48369e8ccd910a75260e67d.jpg","languages":["en"],"registrations":true,"approval_required":false,"contact_account":null}'} |
41 | headers: | 41 | headers: |
42 | Cache-Control: ['max-age=180, public'] | 42 | Cache-Control: ['max-age=180, public'] |
43 | Content-Type: [application/json; charset=utf-8] | 43 | Content-Type: [application/json; charset=utf-8] |
44 | Date: ['Sat, 12 Oct 2019 21:00:22 GMT'] | 44 | Date: ['Sat, 22 Feb 2020 19:28:14 GMT'] |
45 | ETag: [W/"9db06456db31431568d35ac7638f0ebd"] | 45 | ETag: [W/"7ac51e4e7519042ec38c63400c9f91c7"] |
46 | Referrer-Policy: [strict-origin-when-cross-origin] | 46 | Referrer-Policy: [strict-origin-when-cross-origin] |
47 | Transfer-Encoding: [chunked] | 47 | Transfer-Encoding: [chunked] |
48 | Vary: ['Accept-Encoding, Origin'] | 48 | Vary: ['Accept-Encoding, Origin'] |
@@ -50,13 +50,13 @@ interactions: | |||
50 | X-Download-Options: [noopen] | 50 | X-Download-Options: [noopen] |
51 | X-Frame-Options: [SAMEORIGIN] | 51 | X-Frame-Options: [SAMEORIGIN] |
52 | X-Permitted-Cross-Domain-Policies: [none] | 52 | X-Permitted-Cross-Domain-Policies: [none] |
53 | X-Request-Id: [27af43cf-00d7-4ce9-b0aa-315b1ffa733e] | 53 | X-Request-Id: [4a5c507c-e524-45bc-a59e-fc8d05cfa3be] |
54 | X-Runtime: ['0.033521'] | 54 | X-Runtime: ['0.091599'] |
55 | X-XSS-Protection: [1; mode=block] | 55 | X-XSS-Protection: [1; mode=block] |
56 | content-length: ['398'] | 56 | content-length: ['397'] |
57 | status: {code: 200, message: OK} | 57 | status: {code: 200, message: OK} |
58 | - request: | 58 | - request: |
59 | body: scope=read+write+follow+push&client_id=MzGBtpcvCxWYZnRsjgIls1AMETbJTrmlSy7Itk-TlVM&client_secret=GxZO14xfcT2JsGv00pH_xB2sV0IPp35Hsig9aYdFGOY&grant_type=client_credentials | 59 | body: scope=read+write+follow+push&client_id=EPr2E85ytcwDMnx2E2jQ9w34FcA4GHy0AoxmOvES4yQ&client_secret=9cOEKAblYTsCOMXIX0iO4SyUi6_DlPPaTJW13IDj2FA&grant_type=client_credentials |
60 | headers: | 60 | headers: |
61 | Accept: ['*/*'] | 61 | Accept: ['*/*'] |
62 | Accept-Encoding: ['gzip, deflate'] | 62 | Accept-Encoding: ['gzip, deflate'] |
@@ -67,25 +67,25 @@ interactions: | |||
67 | method: POST | 67 | method: POST |
68 | uri: http://localhost:3000/oauth/token | 68 | uri: http://localhost:3000/oauth/token |
69 | response: | 69 | response: |
70 | body: {string: '{"access_token":"s6deoDz1LsmZ_WOk2s1STazp_PNITCjmHZfDRAZWN5k","token_type":"Bearer","scope":"read | 70 | body: {string: '{"access_token":"e_sN2EaB2gdiiDcCVBIp3BPPL9bxkRyqUGWGEy3XsIg","token_type":"Bearer","scope":"read |
71 | write follow push","created_at":1570914022}'} | 71 | write follow push","created_at":1582399694}'} |
72 | headers: | 72 | headers: |
73 | Cache-Control: ['private, no-store'] | 73 | Cache-Control: ['private, no-store'] |
74 | Content-Type: [application/json; charset=utf-8] | 74 | Content-Type: [application/json; charset=utf-8] |
75 | ETag: [W/"55f7f2ad02ae74574fedcacc65f8932b"] | 75 | ETag: [W/"3d2f4be1f0f3460ed11423e6a9afc7bf"] |
76 | Pragma: [no-cache] | 76 | Pragma: [no-cache] |
77 | Transfer-Encoding: [chunked] | 77 | Transfer-Encoding: [chunked] |
78 | Vary: ['Accept-Encoding, Origin'] | 78 | Vary: ['Accept-Encoding, Origin'] |
79 | X-Request-Id: [afad64bd-a8ac-4a7e-bbf4-72653649a4c4] | 79 | X-Request-Id: [2cf61c36-ad36-4c6e-919f-06980d46ef9e] |
80 | X-Runtime: ['0.033029'] | 80 | X-Runtime: ['0.041155'] |
81 | content-length: ['141'] | 81 | content-length: ['141'] |
82 | status: {code: 200, message: OK} | 82 | status: {code: 200, message: OK} |
83 | - request: | 83 | - request: |
84 | body: locale=en&agreement=1&email=email%40localhost65825&password=swordfish&username=coolguy65825&client_id=MzGBtpcvCxWYZnRsjgIls1AMETbJTrmlSy7Itk-TlVM&client_secret=GxZO14xfcT2JsGv00pH_xB2sV0IPp35Hsig9aYdFGOY | 84 | body: locale=en&agreement=1&email=email%40localhost86797&password=swordfish&username=coolguy86797&client_id=EPr2E85ytcwDMnx2E2jQ9w34FcA4GHy0AoxmOvES4yQ&client_secret=9cOEKAblYTsCOMXIX0iO4SyUi6_DlPPaTJW13IDj2FA |
85 | headers: | 85 | headers: |
86 | Accept: ['*/*'] | 86 | Accept: ['*/*'] |
87 | Accept-Encoding: ['gzip, deflate'] | 87 | Accept-Encoding: ['gzip, deflate'] |
88 | Authorization: [Bearer s6deoDz1LsmZ_WOk2s1STazp_PNITCjmHZfDRAZWN5k] | 88 | Authorization: [Bearer e_sN2EaB2gdiiDcCVBIp3BPPL9bxkRyqUGWGEy3XsIg] |
89 | Connection: [keep-alive] | 89 | Connection: [keep-alive] |
90 | Content-Length: ['203'] | 90 | Content-Length: ['203'] |
91 | Content-Type: [application/x-www-form-urlencoded] | 91 | Content-Type: [application/x-www-form-urlencoded] |
@@ -93,12 +93,12 @@ interactions: | |||
93 | method: POST | 93 | method: POST |
94 | uri: http://localhost:3000/api/v1/accounts | 94 | uri: http://localhost:3000/api/v1/accounts |
95 | response: | 95 | response: |
96 | body: {string: '{"access_token":"RPw9YNg0bk_x6HHgf6VQ_NHHXz3ENaVe25Oo6tTXjw8","token_type":"Bearer","scope":"read | 96 | body: {string: '{"access_token":"5VZ9ssSlTWJPyO8VGETEZNv2EiQVGXTfY-okvKdgNiw","token_type":"Bearer","scope":"read |
97 | write follow push","created_at":1570914022}'} | 97 | write follow push","created_at":1582399694}'} |
98 | headers: | 98 | headers: |
99 | Cache-Control: ['private, no-store'] | 99 | Cache-Control: ['private, no-store'] |
100 | Content-Type: [application/json; charset=utf-8] | 100 | Content-Type: [application/json; charset=utf-8] |
101 | ETag: [W/"b4d17e826792395e0610ee5ed4942848"] | 101 | ETag: [W/"4ec66eff3387a9b02348f3cb4dc73773"] |
102 | Pragma: [no-cache] | 102 | Pragma: [no-cache] |
103 | Referrer-Policy: [strict-origin-when-cross-origin] | 103 | Referrer-Policy: [strict-origin-when-cross-origin] |
104 | Transfer-Encoding: [chunked] | 104 | Transfer-Encoding: [chunked] |
@@ -107,8 +107,8 @@ interactions: | |||
107 | X-Download-Options: [noopen] | 107 | X-Download-Options: [noopen] |
108 | X-Frame-Options: [SAMEORIGIN] | 108 | X-Frame-Options: [SAMEORIGIN] |
109 | X-Permitted-Cross-Domain-Policies: [none] | 109 | X-Permitted-Cross-Domain-Policies: [none] |
110 | X-Request-Id: [9f341d37-020a-4814-b59f-d3412fd0bb8e] | 110 | X-Request-Id: [aa57bc51-ac59-4fe8-b716-fbf2cc68d764] |
111 | X-Runtime: ['0.171555'] | 111 | X-Runtime: ['0.220777'] |
112 | X-XSS-Protection: [1; mode=block] | 112 | X-XSS-Protection: [1; mode=block] |
113 | content-length: ['141'] | 113 | content-length: ['141'] |
114 | status: {code: 200, message: OK} | 114 | status: {code: 200, message: OK} |