Files
qdrant/openapi/tests/openapi_integration/test_root_api.py
Kumar Shivendu 0fe19cfb60 feat: Expose git commit id in the health check endpoint (#3346)
* 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>
2024-03-05 16:46:04 +01:00

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