aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/cassettes/test_stream_healthy.yaml52
1 files changed, 52 insertions, 0 deletions
diff --git a/tests/cassettes/test_stream_healthy.yaml b/tests/cassettes/test_stream_healthy.yaml
new file mode 100644
index 0000000..fd87272
--- /dev/null
+++ b/tests/cassettes/test_stream_healthy.yaml
@@ -0,0 +1,52 @@
1interactions:
2- request:
3 body: null
4 headers:
5 Accept: ['*/*']
6 Accept-Encoding: ['gzip, deflate']
7 Connection: [keep-alive]
8 User-Agent: [python-requests/2.18.4]
9 method: GET
10 uri: http://localhost:3000/api/v1/instance/
11 response:
12 body: {string: '{"uri":"localhost","title":"Mastodon","description":"","email":"","version":"2.9.1","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":2,"status_count":8,"domain_count":0},"thumbnail":"http://localhost/packs/media/images/preview-9a17d32fc48369e8ccd910a75260e67d.jpg","languages":["en"],"registrations":true,"contact_account":null}'}
13 headers:
14 Cache-Control: ['max-age=300, public']
15 Content-Type: [application/json; charset=utf-8]
16 Date: ['Sat, 22 Jun 2019 14:40:35 GMT']
17 ETag: [W/"9cf634ec19499004934b5325f20d71b4"]
18 Referrer-Policy: [strict-origin-when-cross-origin]
19 Transfer-Encoding: [chunked]
20 Vary: ['Accept-Encoding, Origin']
21 X-Content-Type-Options: [nosniff]
22 X-Download-Options: [noopen]
23 X-Frame-Options: [SAMEORIGIN]
24 X-Permitted-Cross-Domain-Policies: [none]
25 X-Request-Id: [e205dad6-1b7d-4469-82e6-b1928be37b2f]
26 X-Runtime: ['0.026031']
27 X-XSS-Protection: [1; mode=block]
28 content-length: ['348']
29 status: {code: 200, message: OK}
30- request:
31 body: null
32 headers:
33 Accept: ['*/*']
34 Accept-Encoding: ['gzip, deflate']
35 Connection: [keep-alive]
36 User-Agent: [python-requests/2.18.4]
37 method: GET
38 uri: http://localhost:4000/api/v1/streaming/health
39 response:
40 body: {string: OK}
41 headers:
42 Access-Control-Allow-Headers: ['Authorization, Accept, Cache-Control']
43 Access-Control-Allow-Methods: ['GET, OPTIONS']
44 Access-Control-Allow-Origin: ['*']
45 Connection: [keep-alive]
46 Content-Type: [text/plain]
47 Date: ['Sat, 22 Jun 2019 14:40:35 GMT']
48 Transfer-Encoding: [chunked]
49 X-Powered-By: [Express]
50 X-Request-Id: [93545687-8c80-4295-a7c7-5289fac6e5b3]
51 status: {code: 200, message: OK}
52version: 1
Powered by cgit v1.2.3 (git 2.41.0)