diff options
Diffstat (limited to 'tests/cassettes/test_app_account_create.yaml')
-rw-r--r-- | tests/cassettes/test_app_account_create.yaml | 57 |
1 files changed, 28 insertions, 29 deletions
diff --git a/tests/cassettes/test_app_account_create.yaml b/tests/cassettes/test_app_account_create.yaml index 83f7212..e6eff1b 100644 --- a/tests/cassettes/test_app_account_create.yaml +++ b/tests/cassettes/test_app_account_create.yaml | |||
@@ -11,11 +11,10 @@ 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":"17","name":"mastodon.py generated test app","website":null,"redirect_uri":"urn:ietf:wg:oauth:2.0:oob","client_id":"6b8b07698f3f57d73b0fd779fac2fcc64d6e852d3334425a6b50b53bc32db986","client_secret":"df903d79cc8a27d8d4f9aa8213cf65a9681fea679a56643fcb3e5a3f66c4f9c7","vapid_key":"BCryMB_mKFcSpmXE3kJ1Ri3ZFVdBLjRsX54VYhE21BMyftx8k67qWxFs2OCuQCtj0k1ILESkQhGuOKJcQnodx4g="}'} | 14 | body: {string: '{"id":"2","name":"mastodon.py generated test app","website":null,"redirect_uri":"urn:ietf:wg:oauth:2.0:oob","client_id":"xA0mMcOmeZ5Uftxw6MZ2KDLoEBTM0p1vKHeUXhiEOno","client_secret":"wSNQzlWZEQsDKfWEWXZ0ALj-9uv4zQ94u5UhQS-xASg","vapid_key":"BDoiaZnI8zQeheo5OzO3lDE5gn63dlzoaHrLTP7tctyKW-hj8yFIvIfWyCp8e-dT8kpJd9Ru7Sd-TTO2DXYgvwI="}'} |
15 | headers: | 15 | headers: |
16 | Cache-Control: ['max-age=0, private, must-revalidate'] | 16 | Cache-Control: ['no-cache, no-store'] |
17 | Content-Type: [application/json; charset=utf-8] | 17 | Content-Type: [application/json; charset=utf-8] |
18 | ETag: [W/"3a06e1b620ce8b2c3ce4045d1e2c179b"] | ||
19 | Referrer-Policy: [strict-origin-when-cross-origin] | 18 | Referrer-Policy: [strict-origin-when-cross-origin] |
20 | Transfer-Encoding: [chunked] | 19 | Transfer-Encoding: [chunked] |
21 | Vary: ['Accept-Encoding, Origin'] | 20 | Vary: ['Accept-Encoding, Origin'] |
@@ -23,10 +22,10 @@ interactions: | |||
23 | X-Download-Options: [noopen] | 22 | X-Download-Options: [noopen] |
24 | X-Frame-Options: [SAMEORIGIN] | 23 | X-Frame-Options: [SAMEORIGIN] |
25 | X-Permitted-Cross-Domain-Policies: [none] | 24 | X-Permitted-Cross-Domain-Policies: [none] |
26 | X-Request-Id: [258ec6bb-4a82-41c3-b55b-560fdfb5ad13] | 25 | X-Request-Id: [a41339dc-18ff-4a71-b422-5fca1826da83] |
27 | X-Runtime: ['0.025005'] | 26 | X-Runtime: ['0.035222'] |
28 | X-XSS-Protection: [1; mode=block] | 27 | X-XSS-Protection: [1; mode=block] |
29 | content-length: ['374'] | 28 | content-length: ['331'] |
30 | status: {code: 200, message: OK} | 29 | status: {code: 200, message: OK} |
31 | - request: | 30 | - request: |
32 | body: null | 31 | body: null |
@@ -38,12 +37,12 @@ interactions: | |||
38 | method: GET | 37 | method: GET |
39 | uri: http://localhost:3000/api/v1/instance/ | 38 | uri: http://localhost:3000/api/v1/instance/ |
40 | response: | 39 | response: |
41 | body: {string: '{"uri":"localhost","title":"Mastodon","description":"","email":"","version":"2.8.0","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":2,"status_count":15,"domain_count":0},"thumbnail":"http://localhost/packs/media/images/preview-9a17d32fc48369e8ccd910a75260e67d.jpg","languages":["en"],"registrations":true,"contact_account":null}'} | 40 | body: {string: '{"uri":"localhost","title":"Mastodon","description":"","email":"","version":"2.9.1","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":2,"status_count":0,"domain_count":0},"thumbnail":"http://localhost/packs/media/images/preview-9a17d32fc48369e8ccd910a75260e67d.jpg","languages":["en"],"registrations":true,"contact_account":null}'} |
42 | headers: | 41 | headers: |
43 | Cache-Control: ['max-age=300, public'] | 42 | Cache-Control: ['max-age=300, public'] |
44 | Content-Type: [application/json; charset=utf-8] | 43 | Content-Type: [application/json; charset=utf-8] |
45 | Date: ['Sun, 28 Apr 2019 15:56:05 GMT'] | 44 | Date: ['Sat, 22 Jun 2019 13:02:57 GMT'] |
46 | ETag: [W/"4ba18203af6a9d9402c05e8ffc21ac45"] | 45 | ETag: [W/"e93399c77de2e714afcd550a34706e7e"] |
47 | Referrer-Policy: [strict-origin-when-cross-origin] | 46 | Referrer-Policy: [strict-origin-when-cross-origin] |
48 | Transfer-Encoding: [chunked] | 47 | Transfer-Encoding: [chunked] |
49 | Vary: ['Accept-Encoding, Origin'] | 48 | Vary: ['Accept-Encoding, Origin'] |
@@ -51,55 +50,55 @@ interactions: | |||
51 | X-Download-Options: [noopen] | 50 | X-Download-Options: [noopen] |
52 | X-Frame-Options: [SAMEORIGIN] | 51 | X-Frame-Options: [SAMEORIGIN] |
53 | X-Permitted-Cross-Domain-Policies: [none] | 52 | X-Permitted-Cross-Domain-Policies: [none] |
54 | X-Request-Id: [bfb330d1-53c3-4fcc-b79e-30e256a2f845] | 53 | X-Request-Id: [26ef20ce-d90c-498f-ab53-c5d727278a8b] |
55 | X-Runtime: ['0.025590'] | 54 | X-Runtime: ['0.031760'] |
56 | X-XSS-Protection: [1; mode=block] | 55 | X-XSS-Protection: [1; mode=block] |
57 | content-length: ['349'] | 56 | content-length: ['348'] |
58 | status: {code: 200, message: OK} | 57 | status: {code: 200, message: OK} |
59 | - request: | 58 | - request: |
60 | body: scope=read+write+follow+push&client_id=6b8b07698f3f57d73b0fd779fac2fcc64d6e852d3334425a6b50b53bc32db986&client_secret=df903d79cc8a27d8d4f9aa8213cf65a9681fea679a56643fcb3e5a3f66c4f9c7&grant_type=client_credentials | 59 | body: scope=read+write+follow+push&client_id=xA0mMcOmeZ5Uftxw6MZ2KDLoEBTM0p1vKHeUXhiEOno&client_secret=wSNQzlWZEQsDKfWEWXZ0ALj-9uv4zQ94u5UhQS-xASg&grant_type=client_credentials |
61 | headers: | 60 | headers: |
62 | Accept: ['*/*'] | 61 | Accept: ['*/*'] |
63 | Accept-Encoding: ['gzip, deflate'] | 62 | Accept-Encoding: ['gzip, deflate'] |
64 | Connection: [keep-alive] | 63 | Connection: [keep-alive] |
65 | Content-Length: ['212'] | 64 | Content-Length: ['170'] |
66 | Content-Type: [application/x-www-form-urlencoded] | 65 | Content-Type: [application/x-www-form-urlencoded] |
67 | User-Agent: [python-requests/2.18.4] | 66 | User-Agent: [python-requests/2.18.4] |
68 | method: POST | 67 | method: POST |
69 | uri: http://localhost:3000/oauth/token | 68 | uri: http://localhost:3000/oauth/token |
70 | response: | 69 | response: |
71 | body: {string: '{"access_token":"756276912d1d5d74cfbf2e275517a234cee584891ca1f87a3fb2bdbd1fed1ca1","token_type":"Bearer","scope":"read | 70 | body: {string: '{"access_token":"YHnkkuWLHjRZ-HsIzyWsT56OQn6oAXT8tvkIe__4k9g","token_type":"Bearer","scope":"read |
72 | write follow push","created_at":1556466966}'} | 71 | write follow push","created_at":1561208577}'} |
73 | headers: | 72 | headers: |
74 | Cache-Control: ['private, no-store'] | 73 | Cache-Control: ['private, no-store'] |
75 | Content-Type: [application/json; charset=utf-8] | 74 | Content-Type: [application/json; charset=utf-8] |
76 | ETag: [W/"851cc791f71c2ce9bf821e023e26b361"] | 75 | ETag: [W/"8f1d2693f3916319d5b2fb72627a180d"] |
77 | Pragma: [no-cache] | 76 | Pragma: [no-cache] |
78 | Transfer-Encoding: [chunked] | 77 | Transfer-Encoding: [chunked] |
79 | Vary: ['Accept-Encoding, Origin'] | 78 | Vary: ['Accept-Encoding, Origin'] |
80 | X-Request-Id: [0205c26b-9c77-4c32-bb59-a2d69eafde33] | 79 | X-Request-Id: [d77ecf21-4bfc-476d-8361-3904e3db27f6] |
81 | X-Runtime: ['0.039194'] | 80 | X-Runtime: ['0.021695'] |
82 | content-length: ['162'] | 81 | content-length: ['141'] |
83 | status: {code: 200, message: OK} | 82 | status: {code: 200, message: OK} |
84 | - request: | 83 | - request: |
85 | body: locale=en&agreement=1&email=email%40localhost11707&password=swordfish&username=coolguy11707&client_id=6b8b07698f3f57d73b0fd779fac2fcc64d6e852d3334425a6b50b53bc32db986&client_secret=df903d79cc8a27d8d4f9aa8213cf65a9681fea679a56643fcb3e5a3f66c4f9c7 | 84 | body: locale=en&agreement=1&email=email%40localhost42187&password=swordfish&username=coolguy42187&client_id=xA0mMcOmeZ5Uftxw6MZ2KDLoEBTM0p1vKHeUXhiEOno&client_secret=wSNQzlWZEQsDKfWEWXZ0ALj-9uv4zQ94u5UhQS-xASg |
86 | headers: | 85 | headers: |
87 | Accept: ['*/*'] | 86 | Accept: ['*/*'] |
88 | Accept-Encoding: ['gzip, deflate'] | 87 | Accept-Encoding: ['gzip, deflate'] |
89 | Authorization: [Bearer 756276912d1d5d74cfbf2e275517a234cee584891ca1f87a3fb2bdbd1fed1ca1] | 88 | Authorization: [Bearer YHnkkuWLHjRZ-HsIzyWsT56OQn6oAXT8tvkIe__4k9g] |
90 | Connection: [keep-alive] | 89 | Connection: [keep-alive] |
91 | Content-Length: ['245'] | 90 | Content-Length: ['203'] |
92 | Content-Type: [application/x-www-form-urlencoded] | 91 | Content-Type: [application/x-www-form-urlencoded] |
93 | User-Agent: [python-requests/2.18.4] | 92 | User-Agent: [python-requests/2.18.4] |
94 | method: POST | 93 | method: POST |
95 | uri: http://localhost:3000/api/v1/accounts | 94 | uri: http://localhost:3000/api/v1/accounts |
96 | response: | 95 | response: |
97 | body: {string: '{"access_token":"b20f513163b154065d17f5aff37b779f51d13c152fe6e7d1be366d64d2e74e39","token_type":"Bearer","scope":"read | 96 | body: {string: '{"access_token":"TXtHQr05S6ckK771XAa73qdvnMfjJU7dqr3aVlsqRD4","token_type":"Bearer","scope":"read |
98 | write follow push","created_at":1556466966}'} | 97 | write follow push","created_at":1561208577}'} |
99 | headers: | 98 | headers: |
100 | Cache-Control: ['private, no-store'] | 99 | Cache-Control: ['private, no-store'] |
101 | Content-Type: [application/json; charset=utf-8] | 100 | Content-Type: [application/json; charset=utf-8] |
102 | ETag: [W/"7ba50c22bb330ba5a0936c19bea78093"] | 101 | ETag: [W/"d45ffa5abcf400da6438b73b80ec142c"] |
103 | Pragma: [no-cache] | 102 | Pragma: [no-cache] |
104 | Referrer-Policy: [strict-origin-when-cross-origin] | 103 | Referrer-Policy: [strict-origin-when-cross-origin] |
105 | Transfer-Encoding: [chunked] | 104 | Transfer-Encoding: [chunked] |
@@ -108,9 +107,9 @@ interactions: | |||
108 | X-Download-Options: [noopen] | 107 | X-Download-Options: [noopen] |
109 | X-Frame-Options: [SAMEORIGIN] | 108 | X-Frame-Options: [SAMEORIGIN] |
110 | X-Permitted-Cross-Domain-Policies: [none] | 109 | X-Permitted-Cross-Domain-Policies: [none] |
111 | X-Request-Id: [51ac5a4c-e850-46be-89c6-681e46f891dd] | 110 | X-Request-Id: [1b5653f1-c622-4415-b972-7dd0a5e31202] |
112 | X-Runtime: ['0.208778'] | 111 | X-Runtime: ['0.205759'] |
113 | X-XSS-Protection: [1; mode=block] | 112 | X-XSS-Protection: [1; mode=block] |
114 | content-length: ['162'] | 113 | content-length: ['141'] |
115 | status: {code: 200, message: OK} | 114 | status: {code: 200, message: OK} |
116 | version: 1 | 115 | version: 1 |