mirror of
https://github.com/qdrant/qdrant.git
synced 2026-08-01 07:30:54 -05:00
* feat: Expose git commit id in the health check endpoint * fix: CI errors * test: Add test for health check api * feat: Add / endpoint to openapi schema * Make git commit hash optional * ci: Enable debugging setup-protoc action * Install later protobuf compiler through GitHub Action * Disable debug mode for setup-protoc job * refactor: Use commit instead of commit_id * fix: Use commit instead of commit_id gRPC docs * test: Update ping API test * refactor: Rename ping api to root api --------- Co-authored-by: timvisee <tim@visee.me>
15 lines
400 B
Python
15 lines
400 B
Python
from .helpers.helpers import request_with_validation
|
|
|
|
def test_root_api():
|
|
response = request_with_validation(
|
|
api='/',
|
|
method="GET",
|
|
)
|
|
assert response.ok
|
|
|
|
body = response.json()
|
|
assert body.keys() == {'title', 'version','commit'}
|
|
assert body['title'] == 'qdrant - vector search engine'
|
|
assert len(body['version']) > 0
|
|
assert len(body['commit']) == 40
|