cd contracts && scarb --profile release build
yarn install
yarn build
The integration tests are using TOML as the configuration input. The logic and parsing is located under Test config
By default, the tests will be running with the default config set in default.toml. This configuration is set to run on devnet with local docker.
Fields in the default toml can be overridden by creating an overrides.toml
file. Any values specified here take precedence and will be overwritten if they overlap with default.toml
.
In order to run the tests on Testnet, additional variables need to be specified in the TOML, these would also be pointed out if network = "testnet"
is set. The additional variables are:
l2_rpc_url
- L2 RPC urlaccount
- Account address on L2private_key
- Private key for L2 account
Set inside_k8 = true
under [Common]
.
cd integration-tests && go test --timeout=2h -v -count=1 -json ./smoke
Navigate to the workflow. The workflow takes in 3 parameters:
- Base64 string of the .toml configuration
- Core image tag which defaults to develop
- Test runner tag, only tag needs to be supplied
Create an overrides.toml
file in integration-tests/testconfig
and run cat overrides.toml | base64
. inside_k8
needs to be set to true in the .toml in order to run the tests in kubernetes.
If you want to kick off the test from local:
export TEST_SUITE: soak
export DETACH_RUNNER: true
export ENV_JOB_IMAGE: <internal_repo>/chainlink-solana-tests:<tag>
- Base64 the .toml config
- Run
export BASE64_CONFIG_OVERRIDE="<config>"
cd integration-tests/soak && go test -timeout 24h -count=1 -run TestOCRBasicSoak/embedded -test.timeout 30m;