laconicd-deprecated/tests/sdk_tests/run-tests.sh
Thomas E Lackey a3e1eec0c8
Some checks failed
Build / cleanup-runs (pull_request) Successful in 5s
Build / build (pull_request) Successful in 25s
Deploy Contract / cleanup-runs (pull_request) Failing after 8s
CodeQL / Analyze (go) (pull_request) Successful in 49s
Pull Request Labeler / triage (pull_request) Failing after 22s
Dependency Review / dependency-review (pull_request) Successful in 1m15s
Deploy Contract / deploy (pull_request) Failing after 50s
Lint / Run flake8 on python integration tests (pull_request) Failing after 22s
Protobuf / lint (pull_request) Successful in 23s
Lint / Run golangci-lint (pull_request) Successful in 40s
Tests / cleanup-runs (pull_request) Failing after 11s
Semgrep / Scan (pull_request) Failing after 27s
Run Gosec / Gosec (pull_request) Successful in 21s
Protobuf / break-check (pull_request) Successful in 31s
Tests / test-importer (pull_request) Successful in 35s
Tests / test-rpc (pull_request) Successful in 34s
Tests / test-unit-cover (pull_request) Successful in 59s
Tests / sdk_tests (pull_request) Failing after 1m29s
Fix case
2023-11-20 14:46:07 -06:00

18 lines
920 B
Bash
Executable File

#!/usr/bin/env bash
if [ -n "$CERC_SCRIPT_DEBUG" ]; then
set -x
fi
# Get the key from laconicd
laconicd_key=$( docker compose exec laconicd echo y | 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
# Run tests
docker network inspect sdk_tests_default
docker compose logs laconicd
docker compose exec laconicd sh -c "curl --retry 10 --retry-delay 3 --retry-connrefused http://127.0.0.1:9473/api"
docker compose exec laconicd sh -c "curl --retry 10 --retry-delay 3 --retry-connrefused http://localhost:9473/api"
docker compose exec sdk-test-runner sh -c "COSMOS_CHAIN_ID=${cosmos_chain_id} LACONICD_REST_ENDPOINT=${laconicd_rest_endpoint} LACONICD_GQL_ENDPOINT=${laconicd_gql_endpoint} PRIVATE_KEY=${laconicd_key} yarn test"