Files
qdrant/tests/openapi_integration_test.sh
Kumar Shivendu 50fc2288d0 refactor: OpenAPI tests (#3606)
* test: Restructure OpenAPI tests

* fix: Remove cache dirs

* fix: Remove cache dirs from helpers

* fix: Path of openapi.json

* fix: Update path of openapi tests everywhere
2024-02-14 22:19:26 +05:45

19 lines
462 B
Bash
Executable File

#!/usr/bin/env bash
set -ex
# Ensure current path is project root
cd "$(dirname "$0")/../"
cp docs/redoc/master/openapi.json tests/openapi/openapi.json
docker buildx build --load -q ./tests/openapi/ --tag=qdrant_openapi_test
DOCKER_ARGS=$([ -t 0 ] && echo "-it" || echo "")
docker run $DOCKER_ARGS \
--rm \
--network=host \
-e OPENAPI_FILE='openapi.json' \
-v "${PWD}"/tests/openapi:/code \
qdrant_openapi_test sh -c /code/run_docker.sh