@@ -7,7 +7,7 @@ package-schemathesis:
7
7
ARG max_examples= 1000
8
8
ARG max_response_time= 200
9
9
ARG wait_for_schema= 15
10
- ARG workers= 1
10
+ ARG workers= 2
11
11
ARG schema_version= 30
12
12
ARG openapi_spec
13
13
@@ -31,7 +31,7 @@ package-schemathesis:
31
31
test-fuzzer-api :
32
32
FROM earthly/dind:alpine-3.19
33
33
RUN apk update && apk add iptables-legacy # workaround for https://github.com/earthly/earthly/issues/3784
34
- RUN apk add yq
34
+ RUN apk add yq zstd
35
35
ARG DB_URL= "postgres://catalyst-event-dev:CHANGE_ME@localhost/CatalystEventDev"
36
36
ARG CAT_ADDRESS= "127.0.0.1:3030"
37
37
ARG OPENAPI_SPEC= "http://127.0.0.1:3030/docs/cat-gateway.json"
@@ -46,21 +46,19 @@ test-fuzzer-api:
46
46
--service cat-gateway \
47
47
--allow-privileged
48
48
RUN docker run --net = host --name = st schemathesis:latest || echo fail > fail && \
49
- docker logs cat-gateway > ./cat-gateway.log && \
49
+ docker logs cat-gateway > ./cat-gateway.log && zstd -9 cat-gateway.log && \
50
50
docker cp st:/results/junit-report.xml junit-report.xml && \
51
51
docker cp st:/results/cassette.yaml cassette.yaml
52
52
END
53
53
WAIT
54
54
SAVE ARTIFACT junit-report.xml AS LOCAL schemathesis.junit-report.xml
55
- SAVE ARTIFACT cat-gateway.log AS LOCAL cat-gateway.log
55
+ SAVE ARTIFACT cat-gateway.log.zst AS LOCAL cat-gateway.log.zst
56
56
SAVE ARTIFACT cassette.yaml AS LOCAL cassette.yaml
57
57
END
58
58
IF [ -f fail ]
59
- RUN echo -e "\0 33[0;31mSchemathesis test run failed\n " && \
59
+ RUN echo -e "\0 33[0;31mSchemathesis test run failed. Run the test locally to get Catalyst Gateway logs \n " && \
60
60
echo -e "\0 33[0;31mFailed tests:" && \
61
61
yq -PC '.http_interactions.[] | select(.status == "FAILURE")' cassette.yaml && \
62
- echo -e "\0 33[0;31mCatalyst Gateway logs:" && \
63
- jq --color-output . cat-gateway.log cat-gateway.log && \
64
62
exit 1
65
63
END
66
64
0 commit comments