Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(cat-gateway): restore schemathesis tests #1434

Merged
merged 34 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
49005c0
wip
kukkok3 Nov 14, 2024
2d6f9a7
wip
kukkok3 Dec 18, 2024
1b162b5
wip
kukkok3 Dec 19, 2024
2eb01a3
Merge branch 'main' into feat/cat-gateway-test-pacckage
kukkok3 Dec 19, 2024
e25e84c
wip
kukkok3 Dec 20, 2024
cc8f968
wip
kukkok3 Dec 23, 2024
c62c9c3
Merge branch 'main' into feat/cat-gateway-test-pacckage
kukkok3 Dec 23, 2024
4870e10
wip
kukkok3 Dec 24, 2024
e44abaf
fix: remove scylla earthfile
kukkok3 Dec 24, 2024
32204d5
feat: runs schemathesis only on api/started endpoint
kukkok3 Dec 27, 2024
c269877
Merge branch 'main' into feat/cat-gateway-test-pacckage
kukkok3 Jan 2, 2025
8eafea3
clean up
kukkok3 Jan 2, 2025
8fc85c4
fix: blueprint
kukkok3 Jan 2, 2025
6f2152d
fix: blueprint
kukkok3 Jan 2, 2025
ea35972
fix: blueprint
kukkok3 Jan 2, 2025
e5030ff
fix: blueprint
kukkok3 Jan 2, 2025
9e9488f
fix: remove hooks
kukkok3 Jan 2, 2025
fd7f30a
Merge branch 'main' into feat/cat-gateway-test-pacckage
stevenj Jan 3, 2025
d124756
fix: remove some checks
kukkok3 Jan 3, 2025
82ac16b
Merge branch 'main' into feat/cat-gateway-test-pacckage
kukkok3 Jan 3, 2025
f50abf1
Merge branch 'main' into feat/cat-gateway-test-pacckage
kukkok3 Jan 3, 2025
bf6a866
Merge branch 'main' into feat/cat-gateway-test-pacckage
minikin Jan 6, 2025
956182d
Merge branch 'main' into feat/cat-gateway-test-pacckage
kukkok3 Jan 7, 2025
a30a4d2
feat: adds seed param to chemathesis package
kukkok3 Jan 7, 2025
9f2632e
fix: poetry
kukkok3 Jan 7, 2025
d353827
Merge branch 'main' into feat/cat-gateway-test-pacckage
kukkok3 Jan 7, 2025
f79cdec
fix: earthly dockerd bug
kukkok3 Jan 7, 2025
50137c7
fix: remove checks all param
kukkok3 Jan 7, 2025
29252d4
merge main
kukkok3 Jan 8, 2025
f6366f8
fix: remove duplicated function
kukkok3 Jan 8, 2025
20051b3
fix: regex
kukkok3 Jan 8, 2025
fff0fd7
Merge branch 'main' into feat/cat-gateway-test-pacckage
kukkok3 Jan 8, 2025
177aec0
Merge branch 'main' into feat/cat-gateway-test-pacckage
kukkok3 Jan 8, 2025
3d42175
Merge branch 'main' into feat/cat-gateway-test-pacckage
kukkok3 Jan 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 39 additions & 17 deletions catalyst-gateway/tests/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,45 @@ VERSION 0.8
IMPORT github.com/input-output-hk/catalyst-ci/earthly/spectral:v3.2.27 AS spectral-ci
IMPORT .. AS gateway

# INSTALL_SCYLLA - Installs scylla for bookworm-slim/debian
INSTALL_SCYLLA:
FUNCTION

ARG --required VERSION

RUN apt-get update && \
apt-get install -y --no-install-recommends \
wget gnupg ca-certificates && \
mkdir -p /etc/apt/keyrings && \
gpg --homedir /tmp --no-default-keyring --keyring /etc/apt/keyrings/scylladb.gpg \
--keyserver hkp://keyserver.ubuntu.com:80 --recv-keys a43e06657bac99e3 && \
wget -O /etc/apt/sources.list.d/scylla.list http://downloads.scylladb.com/deb/debian/scylla-$VERSION.list && \
apt-get update && \
apt-get install -y --no-install-recommends \
scylla

package-cat-gateway-integration:
FROM python:3.14.0a3-slim-bookworm
ENV LOG_LEVEL=error
ENV DATA_REFRESH_TICK=5
ENV CHECK_CONFIG_TICK=5
ENV MACHINE_ID="UID"
ENV CHAIN_FOLLOWER_SYNC_TASKS="16"
ENV RUST_LOG="error,cat_gateway=debug,cardano_chain_follower=debug,mithril-client=debug"
ENV CHAIN_NETWORK="Preprod"
ENV CAT_ADDRESS=0.0.0.0:3030
ENV INTERNAL_API_KEY=123
ENV EVENT_DB_URL "postgres://catalyst-event-dev:CHANGE_ME@localhost/CatalystEventDev"

DO +INSTALL_SCYLLA --VERSION=6.2

COPY node1-scylla.yaml /etc/scylla/scylla.yaml
COPY ../+build/cat-gateway .
# https://github.com/scylladb/scylladb/issues/3142
ENTRYPOINT ( scylla --options-file /etc/scylla/scylla.yaml --developer-mode 1 --default-log-level error & ) && \
./cat-gateway run
SAVE IMAGE cat-gateway-integration:latest

# cspell: words oapi
# test-lint-openapi - OpenAPI linting from an artifact
# testing whether the OpenAPI generated during build stage follows good practice.
Expand Down Expand Up @@ -42,20 +81,3 @@ test-scylla:
RUN --mount=$EARTHLY_RUST_CARGO_HOME_CACHE --mount=$EARTHLY_RUST_TARGET_CACHE \
scylla --options-file /etc/scylla/scylla.yaml --smp=2 --memory=4G --overprovisioned --developer-mode=1 & \
cargo nextest run --release --run-ignored=only scylla_session scylla_queries

# INSTALL_SCYLLA - Installs scylla for bookworm-slim/debian
INSTALL_SCYLLA:
FUNCTION

ARG --required VERSION

RUN apt-get update && \
apt-get install -y --no-install-recommends \
wget gnupg ca-certificates && \
mkdir -p /etc/apt/keyrings && \
gpg --homedir /tmp --no-default-keyring --keyring /etc/apt/keyrings/scylladb.gpg \
--keyserver hkp://keyserver.ubuntu.com:80 --recv-keys a43e06657bac99e3 && \
wget -O /etc/apt/sources.list.d/scylla.list http://downloads.scylladb.com/deb/debian/scylla-$VERSION.list && \
apt-get update && \
apt-get install -y --no-install-recommends \
scylla
Loading
Loading