Thomas E Lackey
28b9207bbe
Some checks failed
CodeQL / Analyze (go) (push) Successful in 42s
Pull Request Labeler / triage (push) Successful in 30s
Lint / Run golangci-lint (push) Successful in 1m9s
Tests / cleanup-runs (push) Has been skipped
Tests / test-unit-cover (push) Successful in 44s
Lint / Run flake8 on python integration tests (push) Failing after 1m55s
Tests / test-importer (push) Successful in 36s
Run Gosec / Gosec (push) Successful in 2m3s
Tests / test-rpc (push) Successful in 1m17s
Tests / sdk_tests (push) Failing after 7m14s
Reviewed-on: cerc-io/laconicd#135 Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com> Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>
29 lines
872 B
Bash
Executable File
29 lines
872 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Forwards all args to yarn on the sdk-test-runner container
|
|
|
|
if [ -n "$CERC_SCRIPT_DEBUG" ]; then
|
|
set -x
|
|
fi
|
|
|
|
yarn_args=("--inspect-brk=8888")
|
|
yarn_args+=("${@:-test}")
|
|
|
|
# Get the key from laconicd
|
|
laconicd_key=$(
|
|
yes | docker compose exec laconicd laconicd keys export mykey --unarmored-hex --unsafe
|
|
)
|
|
# Set parameters for the test suite
|
|
cosmos_chain_id=laconic_9000-1
|
|
laconicd_rest_endpoint=http://laconicd:1317
|
|
laconicd_gql_endpoint=http://laconicd:9473/api
|
|
|
|
docker compose exec laconicd sh -c "curl --retry 10 --retry-delay 3 --retry-connrefused http://127.0.0.1:9473/api"
|
|
|
|
# Run tests
|
|
docker compose exec \
|
|
-e COSMOS_CHAIN_ID="$cosmos_chain_id" \
|
|
-e LACONICD_REST_ENDPOINT="$laconicd_rest_endpoint" \
|
|
-e LACONICD_GQL_ENDPOINT="$laconicd_gql_endpoint" \
|
|
-e PRIVATE_KEY="$laconicd_key" \
|
|
sdk-test-runner yarn run "${yarn_args[@]}"
|