diff options
Diffstat (limited to 'tests/cassettes/test_admin_accounts.yaml')
-rw-r--r-- | tests/cassettes/test_admin_accounts.yaml | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/tests/cassettes/test_admin_accounts.yaml b/tests/cassettes/test_admin_accounts.yaml index 9cf0e25..2d03b37 100644 --- a/tests/cassettes/test_admin_accounts.yaml +++ b/tests/cassettes/test_admin_accounts.yaml | |||
@@ -10,11 +10,13 @@ interactions: | |||
10 | method: GET | 10 | method: GET |
11 | uri: http://localhost:3000/api/v1/admin/accounts?active=True | 11 | uri: http://localhost:3000/api/v1/admin/accounts?active=True |
12 | response: | 12 | response: |
13 | body: {string: '[{"id":"1234567890123456","username":"mastodonpy_test","domain":null,"created_at":"2019-06-22T22:15:59.914Z","email":"mastodonpy_test@localhost:3000","ip":null,"role":"user","confirmed":true,"suspended":false,"silenced":false,"disabled":false,"approved":true,"locale":"ja","invite_request":null,"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"created_at":"2019-06-22T22:15:59.914Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"emojis":[],"fields":[]}},{"id":"2","username":"coolguy42187","domain":null,"created_at":"2019-06-22T13:02:57.324Z","email":"email@localhost42187","ip":null,"role":"user","confirmed":false,"suspended":false,"silenced":false,"disabled":false,"approved":true,"locale":"en","invite_request":null,"created_by_application_id":"2","account":{"id":"2","username":"coolguy42187","acct":"coolguy42187","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T13:02:57.324Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@coolguy42187","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"emojis":[],"fields":[]}},{"id":"1","username":"admin","domain":null,"created_at":"2019-06-22T12:42:50.096Z","email":"admin@localhost","ip":"127.0.0.1","role":"admin","confirmed":true,"suspended":false,"silenced":false,"disabled":false,"approved":true,"locale":null,"invite_request":null,"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":7,"emojis":[],"fields":[]}}]'} | 13 | body: {string: '[{"id":"1234567890123457","username":"mastodonpy_test_2","domain":null,"created_at":"2019-06-22T23:11:52.445Z","email":"mastodonpy_test_2@localhost:3000","ip":null,"role":"user","confirmed":true,"suspended":false,"silenced":false,"disabled":false,"approved":true,"locale":"ja","invite_request":null,"account":{"id":"1234567890123457","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":true,"bot":false,"created_at":"2019-06-22T23:11:52.445Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test_2","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"emojis":[],"fields":[]}},{"id":"1234567890123456","username":"mastodonpy_test","domain":null,"created_at":"2019-06-22T23:11:52.441Z","email":"mastodonpy_test@localhost:3000","ip":"127.0.0.1","role":"user","confirmed":true,"suspended":false,"silenced":false,"disabled":false,"approved":true,"locale":"ja","invite_request":null,"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John |
14 | Lennon","locked":true,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","note":"\u003cp\u003eI | ||
15 | walk funny\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561237923","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561237923","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561237923","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561237923","followers_count":0,"following_count":0,"statuses_count":0,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]}},{"id":"8","username":"coolguy32163","domain":null,"created_at":"2019-06-22T21:10:08.218Z","email":"email@localhost32163","ip":null,"role":"user","confirmed":false,"suspended":false,"silenced":false,"disabled":false,"approved":true,"locale":"en","invite_request":null,"created_by_application_id":"8","account":{"id":"8","username":"coolguy32163","acct":"coolguy32163","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T21:10:08.218Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@coolguy32163","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"emojis":[],"fields":[]}},{"id":"7","username":"coolguy41396","domain":null,"created_at":"2019-06-22T21:07:13.739Z","email":"email@localhost41396","ip":null,"role":"user","confirmed":false,"suspended":false,"silenced":false,"disabled":false,"approved":true,"locale":"en","invite_request":null,"created_by_application_id":"7","account":{"id":"7","username":"coolguy41396","acct":"coolguy41396","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T21:07:13.739Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@coolguy41396","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"emojis":[],"fields":[]}},{"id":"6","username":"coolguy94503","domain":null,"created_at":"2019-06-22T20:59:27.284Z","email":"email@localhost94503","ip":null,"role":"user","confirmed":false,"suspended":false,"silenced":false,"disabled":false,"approved":true,"locale":"en","invite_request":null,"created_by_application_id":"6","account":{"id":"6","username":"coolguy94503","acct":"coolguy94503","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T20:59:27.284Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@coolguy94503","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"emojis":[],"fields":[]}},{"id":"5","username":"coolguy69728","domain":null,"created_at":"2019-06-22T20:56:07.746Z","email":"email@localhost69728","ip":null,"role":"user","confirmed":false,"suspended":false,"silenced":false,"disabled":false,"approved":true,"locale":"en","invite_request":null,"created_by_application_id":"5","account":{"id":"5","username":"coolguy69728","acct":"coolguy69728","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T20:56:07.746Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@coolguy69728","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"emojis":[],"fields":[]}},{"id":"4","username":"coolguy08762","domain":null,"created_at":"2019-06-22T20:54:32.461Z","email":"email@localhost08762","ip":null,"role":"user","confirmed":false,"suspended":false,"silenced":false,"disabled":false,"approved":true,"locale":"en","invite_request":null,"created_by_application_id":"4","account":{"id":"4","username":"coolguy08762","acct":"coolguy08762","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T20:54:32.461Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@coolguy08762","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"emojis":[],"fields":[]}},{"id":"3","username":"coolguy85592","domain":null,"created_at":"2019-06-22T20:50:41.976Z","email":"email@localhost85592","ip":null,"role":"user","confirmed":false,"suspended":false,"silenced":false,"disabled":false,"approved":true,"locale":"en","invite_request":null,"created_by_application_id":"3","account":{"id":"3","username":"coolguy85592","acct":"coolguy85592","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T20:50:41.976Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@coolguy85592","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"emojis":[],"fields":[]}},{"id":"2","username":"coolguy42187","domain":null,"created_at":"2019-06-22T13:02:57.324Z","email":"email@localhost42187","ip":null,"role":"user","confirmed":false,"suspended":false,"silenced":false,"disabled":false,"approved":true,"locale":"en","invite_request":null,"created_by_application_id":"2","account":{"id":"2","username":"coolguy42187","acct":"coolguy42187","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T13:02:57.324Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@coolguy42187","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"emojis":[],"fields":[]}},{"id":"1","username":"admin","domain":null,"created_at":"2019-06-22T12:42:50.096Z","email":"admin@localhost","ip":"127.0.0.1","role":"admin","confirmed":true,"suspended":false,"silenced":false,"disabled":false,"approved":true,"locale":null,"invite_request":null,"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":2,"following_count":1,"statuses_count":16,"emojis":[],"fields":[]}}]'} | ||
14 | headers: | 16 | headers: |
15 | Cache-Control: ['no-cache, no-store'] | 17 | Cache-Control: ['no-cache, no-store'] |
16 | Content-Type: [application/json; charset=utf-8] | 18 | Content-Type: [application/json; charset=utf-8] |
17 | Link: ['<http://localhost:3000/api/v1/admin/accounts?active=True&min_id=1234567890123456>; | 19 | Link: ['<http://localhost:3000/api/v1/admin/accounts?active=True&min_id=1234567890123457>; |
18 | rel="prev"'] | 20 | rel="prev"'] |
19 | Referrer-Policy: [strict-origin-when-cross-origin] | 21 | Referrer-Policy: [strict-origin-when-cross-origin] |
20 | Transfer-Encoding: [chunked] | 22 | Transfer-Encoding: [chunked] |
@@ -23,10 +25,10 @@ interactions: | |||
23 | X-Download-Options: [noopen] | 25 | X-Download-Options: [noopen] |
24 | X-Frame-Options: [SAMEORIGIN] | 26 | X-Frame-Options: [SAMEORIGIN] |
25 | X-Permitted-Cross-Domain-Policies: [none] | 27 | X-Permitted-Cross-Domain-Policies: [none] |
26 | X-Request-Id: [058a0579-6d84-4c48-a16b-5bdae0b74ac6] | 28 | X-Request-Id: [6d951af5-1f55-40d8-9de5-32f1463f67ef] |
27 | X-Runtime: ['0.074321'] | 29 | X-Runtime: ['0.089463'] |
28 | X-XSS-Protection: [1; mode=block] | 30 | X-XSS-Protection: [1; mode=block] |
29 | content-length: ['2526'] | 31 | content-length: ['8909'] |
30 | status: {code: 200, message: OK} | 32 | status: {code: 200, message: OK} |
31 | - request: | 33 | - request: |
32 | body: null | 34 | body: null |
@@ -39,7 +41,7 @@ interactions: | |||
39 | method: GET | 41 | method: GET |
40 | uri: http://localhost:3000/api/v1/accounts/verify_credentials | 42 | uri: http://localhost:3000/api/v1/accounts/verify_credentials |
41 | response: | 43 | response: |
42 | body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":7,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[]},"emojis":[],"fields":[]}'} | 44 | body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":2,"following_count":1,"statuses_count":16,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[]},"emojis":[],"fields":[]}'} |
43 | headers: | 45 | headers: |
44 | Cache-Control: ['no-cache, no-store'] | 46 | Cache-Control: ['no-cache, no-store'] |
45 | Content-Type: [application/json; charset=utf-8] | 47 | Content-Type: [application/json; charset=utf-8] |
@@ -50,10 +52,10 @@ interactions: | |||
50 | X-Download-Options: [noopen] | 52 | X-Download-Options: [noopen] |
51 | X-Frame-Options: [SAMEORIGIN] | 53 | X-Frame-Options: [SAMEORIGIN] |
52 | X-Permitted-Cross-Domain-Policies: [none] | 54 | X-Permitted-Cross-Domain-Policies: [none] |
53 | X-Request-Id: [4f0a2ed4-b4ee-4d79-a0a2-24253670a629] | 55 | X-Request-Id: [8df3bc47-c15f-4ca5-8e37-02deb72c15c2] |
54 | X-Runtime: ['0.023701'] | 56 | X-Runtime: ['0.020513'] |
55 | X-XSS-Protection: [1; mode=block] | 57 | X-XSS-Protection: [1; mode=block] |
56 | content-length: ['609'] | 58 | content-length: ['610'] |
57 | status: {code: 200, message: OK} | 59 | status: {code: 200, message: OK} |
58 | - request: | 60 | - request: |
59 | body: null | 61 | body: null |
@@ -66,7 +68,7 @@ interactions: | |||
66 | method: GET | 68 | method: GET |
67 | uri: http://localhost:3000/api/v1/admin/accounts/1 | 69 | uri: http://localhost:3000/api/v1/admin/accounts/1 |
68 | response: | 70 | response: |
69 | body: {string: '{"id":"1","username":"admin","domain":null,"created_at":"2019-06-22T12:42:50.096Z","email":"admin@localhost","ip":"127.0.0.1","role":"admin","confirmed":true,"suspended":false,"silenced":false,"disabled":false,"approved":true,"locale":null,"invite_request":null,"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":7,"emojis":[],"fields":[]}}'} | 71 | body: {string: '{"id":"1","username":"admin","domain":null,"created_at":"2019-06-22T12:42:50.096Z","email":"admin@localhost","ip":"127.0.0.1","role":"admin","confirmed":true,"suspended":false,"silenced":false,"disabled":false,"approved":true,"locale":null,"invite_request":null,"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":2,"following_count":1,"statuses_count":16,"emojis":[],"fields":[]}}'} |
70 | headers: | 72 | headers: |
71 | Cache-Control: ['no-cache, no-store'] | 73 | Cache-Control: ['no-cache, no-store'] |
72 | Content-Type: [application/json; charset=utf-8] | 74 | Content-Type: [application/json; charset=utf-8] |
@@ -77,9 +79,9 @@ interactions: | |||
77 | X-Download-Options: [noopen] | 79 | X-Download-Options: [noopen] |
78 | X-Frame-Options: [SAMEORIGIN] | 80 | X-Frame-Options: [SAMEORIGIN] |
79 | X-Permitted-Cross-Domain-Policies: [none] | 81 | X-Permitted-Cross-Domain-Policies: [none] |
80 | X-Request-Id: [76cc4636-f5f7-4149-941a-071443f4e0c0] | 82 | X-Request-Id: [3b368570-9fc8-44e6-b3bd-79867d4ebfe3] |
81 | X-Runtime: ['0.023539'] | 83 | X-Runtime: ['0.021539'] |
82 | X-XSS-Protection: [1; mode=block] | 84 | X-XSS-Protection: [1; mode=block] |
83 | content-length: ['796'] | 85 | content-length: ['797'] |
84 | status: {code: 200, message: OK} | 86 | status: {code: 200, message: OK} |
85 | version: 1 | 87 | version: 1 |