aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_nodeinfo.yaml')
-rw-r--r--tests/cassettes/test_nodeinfo.yaml171
1 files changed, 106 insertions, 65 deletions
diff --git a/tests/cassettes/test_nodeinfo.yaml b/tests/cassettes/test_nodeinfo.yaml
index b4a418f..fd0a81d 100644
--- a/tests/cassettes/test_nodeinfo.yaml
+++ b/tests/cassettes/test_nodeinfo.yaml
@@ -2,80 +2,121 @@ interactions:
2- request: 2- request:
3 body: null 3 body: null
4 headers: 4 headers:
5 Accept: ['*/*'] 5 Accept:
6 Accept-Encoding: ['gzip, deflate'] 6 - '*/*'
7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 7 Accept-Encoding:
8 Connection: [keep-alive] 8 - gzip, deflate
9 User-Agent: [python-requests/2.18.4] 9 Authorization:
10 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
11 Connection:
12 - keep-alive
13 User-Agent:
14 - tests/v311
10 method: GET 15 method: GET
11 uri: http://localhost:3000/.well-known/nodeinfo 16 uri: http://localhost:3000/.well-known/nodeinfo
12 response: 17 response:
13 body: {string: '{"links":[{"rel":"http://nodeinfo.diaspora.software/ns/schema/2.0","href":"http://localhost/nodeinfo/2.0"}]}'} 18 body:
19 string: '{"links":[{"rel":"http://nodeinfo.diaspora.software/ns/schema/2.0","href":"http://localhost:3000/nodeinfo/2.0"}]}'
14 headers: 20 headers:
15 Cache-Control: ['max-age=259200, public'] 21 Cache-Control:
16 Content-Type: [application/json; charset=utf-8] 22 - max-age=259200, public
17 Date: ['Sat, 22 Feb 2020 19:28:40 GMT'] 23 Content-Security-Policy:
18 ETag: [W/"765ed8d65d8333f722ad1b021068b547"] 24 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
19 Referrer-Policy: [strict-origin-when-cross-origin] 25 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
20 Transfer-Encoding: [chunked] 26 style-src ''self'' http://localhost:3000 ''nonce-N/2LDU6K/8HmVTeHvlevuw=='';
21 Vary: ['Accept, Accept-Encoding, Origin'] 27 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
22 X-Content-Type-Options: [nosniff] 28 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
23 X-Download-Options: [noopen] 29 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
24 X-Frame-Options: [SAMEORIGIN] 30 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
25 X-Permitted-Cross-Domain-Policies: [none] 31 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
26 X-Request-Id: [2857405a-9a6a-49aa-94ab-cb5331a15df2] 32 worker-src ''self'' blob: http://localhost:3000'
27 X-Runtime: ['0.048451'] 33 Content-Type:
28 X-XSS-Protection: [1; mode=block] 34 - application/json; charset=utf-8
29 content-length: ['108'] 35 Date:
30 status: {code: 200, message: OK} 36 - Mon, 07 Nov 2022 19:54:43 GMT
37 ETag:
38 - W/"30113ea20db19da6a25dac6491c2351e"
39 Referrer-Policy:
40 - strict-origin-when-cross-origin
41 Transfer-Encoding:
42 - chunked
43 Vary:
44 - Accept, Origin
45 X-Content-Type-Options:
46 - nosniff
47 X-Download-Options:
48 - noopen
49 X-Frame-Options:
50 - SAMEORIGIN
51 X-Permitted-Cross-Domain-Policies:
52 - none
53 X-Request-Id:
54 - 1793545a-5f31-4bf5-9dbf-2a00f0a0dc88
55 X-Runtime:
56 - '0.007960'
57 X-XSS-Protection:
58 - 1; mode=block
59 status:
60 code: 200
61 message: OK
31- request: 62- request:
32 body: null 63 body: null
33 headers: 64 headers:
34 Accept: ['*/*'] 65 Accept:
35 Accept-Encoding: ['gzip, deflate'] 66 - '*/*'
36 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 67 Accept-Encoding:
37 Connection: [keep-alive] 68 - gzip, deflate
38 User-Agent: [python-requests/2.18.4] 69 Authorization:
39 method: GET 70 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
40 uri: http://localhost/nodeinfo/2.0 71 Connection:
41 response: 72 - keep-alive
42 body: {string: "<html>\r\n<head><title>404 Not Found</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>404 73 User-Agent:
43 Not Found</h1></center>\r\n<hr><center>nginx/1.14.0 (Ubuntu)</center>\r\n</body>\r\n</html>\r\n"} 74 - tests/v311
44 headers:
45 Connection: [keep-alive]
46 Content-Type: [text/html]
47 Date: ['Sat, 22 Feb 2020 19:28:40 GMT']
48 Server: [nginx/1.14.0 (Ubuntu)]
49 Transfer-Encoding: [chunked]
50 content-length: ['178']
51 status: {code: 404, message: Not Found}
52- request:
53 body: null
54 headers:
55 Accept: ['*/*']
56 Accept-Encoding: ['gzip, deflate']
57 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
58 Connection: [keep-alive]
59 User-Agent: [python-requests/2.18.4]
60 method: GET 75 method: GET
61 uri: http://localhost:3000/nodeinfo/2.0 76 uri: http://localhost:3000/nodeinfo/2.0
62 response: 77 response:
63 body: {string: '{"version":"2.0","software":{"name":"mastodon","version":"3.1.1"},"protocols":["activitypub"],"usage":{"users":{"total":3,"activeMonth":3,"activeHalfyear":3},"localPosts":1},"openRegistrations":true}'} 78 body:
79 string: '{"version":"2.0","software":{"name":"mastodon","version":"4.0.0rc1"},"protocols":["activitypub"],"services":{"outbound":[],"inbound":[]},"usage":{"users":{"total":4,"activeMonth":0,"activeHalfyear":0},"localPosts":4},"openRegistrations":true,"metadata":[]}'
64 headers: 80 headers:
65 Cache-Control: ['max-age=1800, public'] 81 Cache-Control:
66 Content-Type: [application/json; charset=utf-8] 82 - max-age=1800, public
67 Date: ['Sat, 22 Feb 2020 19:28:41 GMT'] 83 Content-Security-Policy:
68 ETag: [W/"dce5048b9050141b18d1d3fda5194615"] 84 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
69 Referrer-Policy: [strict-origin-when-cross-origin] 85 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
70 Transfer-Encoding: [chunked] 86 style-src ''self'' http://localhost:3000 ''nonce-Oxq1BiN3YYRSXsVYkPnXkA=='';
71 Vary: ['Accept,Accept-Encoding'] 87 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
72 X-Content-Type-Options: [nosniff] 88 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
73 X-Download-Options: [noopen] 89 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
74 X-Frame-Options: [SAMEORIGIN] 90 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
75 X-Permitted-Cross-Domain-Policies: [none] 91 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
76 X-Request-Id: [a8211f49-3b92-412c-927a-a16d31c55a3d] 92 worker-src ''self'' blob: http://localhost:3000'
77 X-Runtime: ['0.039172'] 93 Content-Type:
78 X-XSS-Protection: [1; mode=block] 94 - application/json; charset=utf-8
79 content-length: ['199'] 95 Date:
80 status: {code: 200, message: OK} 96 - Mon, 07 Nov 2022 19:54:43 GMT
97 ETag:
98 - W/"fd825ea898be7ab584119a5eb1f58288"
99 Referrer-Policy:
100 - strict-origin-when-cross-origin
101 Transfer-Encoding:
102 - chunked
103 Vary:
104 - Accept
105 X-Content-Type-Options:
106 - nosniff
107 X-Download-Options:
108 - noopen
109 X-Frame-Options:
110 - SAMEORIGIN
111 X-Permitted-Cross-Domain-Policies:
112 - none
113 X-Request-Id:
114 - 71499581-5acd-455a-9c6e-236121db8afd
115 X-Runtime:
116 - '0.009788'
117 X-XSS-Protection:
118 - 1; mode=block
119 status:
120 code: 200
121 message: OK
81version: 1 122version: 1
Powered by cgit v1.2.3 (git 2.41.0)