-
Notifications
You must be signed in to change notification settings - Fork 4
Release v1.5.2 with metrics #253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 14 commits
3d37f2e
4d271de
096f79c
923e079
c8ae693
bc02650
9c255ec
27f9f4b
d4d23b1
b19316c
7f02500
3a2bbc9
f7267dc
9c89abf
a0707a6
a3e00f8
fc168b8
3979968
688737e
a05e4b8
c9367b6
a211880
66b5654
03672b0
9fcb4e8
c9fc44c
3624ca6
f1d3b2e
82e9e1a
36c7f11
ddcd29e
85cb011
05e0a0a
da3f360
9a805d8
ba2a9b9
0e9b80e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,29 @@ | ||||||||||||||||||||||||||||||||||||
| import logging | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| from api.server import app | ||||||||||||||||||||||||||||||||||||
| from fastapi.testclient import TestClient | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| # Turn on debugging for tests. | ||||||||||||||||||||||||||||||||||||
| logging.basicConfig(level=logging.DEBUG) | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| def test_status(): | ||||||||||||||||||||||||||||||||||||
| client = TestClient(app) | ||||||||||||||||||||||||||||||||||||
| response = client.get("/status") | ||||||||||||||||||||||||||||||||||||
| status = response.json() | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| assert status['status'] == 'ok' | ||||||||||||||||||||||||||||||||||||
| assert status['message'] != '' | ||||||||||||||||||||||||||||||||||||
| assert 'babel_version' in status | ||||||||||||||||||||||||||||||||||||
| assert 'babel_version_url' in status | ||||||||||||||||||||||||||||||||||||
| assert 'biolink_model' in status | ||||||||||||||||||||||||||||||||||||
| assert 'tag' in status['biolink_model'] | ||||||||||||||||||||||||||||||||||||
| assert 'nameres_version' in status | ||||||||||||||||||||||||||||||||||||
| assert status['version'] > 1 | ||||||||||||||||||||||||||||||||||||
| assert status['size'] != '' | ||||||||||||||||||||||||||||||||||||
| assert status['startTime'] | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| # Count the specific number of test documents we load. | ||||||||||||||||||||||||||||||||||||
| assert status['numDocs'] == 89 | ||||||||||||||||||||||||||||||||||||
| assert status['maxDoc'] == 89 | ||||||||||||||||||||||||||||||||||||
| assert status['deletedDocs'] == 0 | ||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
| assert status['version'] > 1 | |
| assert status['size'] != '' | |
| assert status['startTime'] | |
| # Count the specific number of test documents we load. | |
| assert status['numDocs'] == 89 | |
| assert status['maxDoc'] == 89 | |
| assert status['deletedDocs'] == 0 | |
| assert 'solr' in status | |
| assert status['solr']['version'] != '' | |
| assert status['solr']['size'] != '' | |
| assert status['solr']['startTime'] | |
| # Count the specific number of test documents we load. | |
| assert status['solr']['numDocs'] == 89 | |
| assert status['solr']['maxDoc'] == 89 | |
| assert status['solr']['deletedDocs'] == 0 |
Uh oh!
There was an error while loading. Please reload this page.