Skip to content

Commit

Permalink
fix issue for schemathesis running
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Leshiy committed Apr 29, 2024
1 parent 9397ed9 commit 274587c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
23 changes: 15 additions & 8 deletions catalyst-gateway/tests/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,21 @@ package-schemathesis:
RUN mkdir /results

VOLUME /results
ENTRYPOINT st run --checks all $openapi_spec --workers=$workers --wait-for-schema=$wait_for_schema \
--max-response-time=$max_response_time --hypothesis-max-examples=$max_examples \
--data-generation-method=all --skip-deprecated-operations \
--force-schema-version=$schema_version --show-trace --force-color \
--junit-xml /results/junit-report.xml --cassette-path=/results/cassette.yaml \
# TODO: https://github.com/input-output-hk/catalyst-voices/issues/330
--exclude-checks content_type_conformance \
--exclude-checks response_schema_conformance
ENTRYPOINT st run --checks all $openapi_spec \
--workers=$workers \
--wait-for-schema=$wait_for_schema \
--max-response-time=$max_response_time \
--hypothesis-max-examples=$max_examples \
--data-generation-method=all \
--skip-deprecated-operations \
--force-schema-version=$schema_version \
--show-trace \
--force-color \
--junit-xml=/results/junit-report.xml \
--cassette-path=/results/cassette.yaml \
# TODO: https://github.com/input-output-hk/catalyst-voices/issues/330
--exclude-checks content_type_conformance \
--exclude-checks response_schema_conformance

SAVE IMAGE schemathesis:$tag

Expand Down
1 change: 0 additions & 1 deletion catalyst-gateway/tests/api_tests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ services:
- DATA_REFRESH_TICK=5
- CHECK_CONFIG_TICK=5
- MACHINE_ID="UID"
hostname: gateway
ports:
- 3030:3030
depends_on:
Expand Down
4 changes: 2 additions & 2 deletions catalyst-gateway/tests/schemathesis-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ services:
- DATA_REFRESH_TICK=5
- CHECK_CONFIG_TICK=5
- MACHINE_ID="UID"
container_name: cat-gateway
network_mode: "host"
ports:
- 3030:3030
depends_on:
event-db:
condition: service_healthy

0 comments on commit 274587c

Please sign in to comment.