make build && make install
The main test config logic resides in the integration-tests/testconfig/
directory. Everything is configured using TOML. The minimum OCR2 required values can be located at integration-tests/testconfig/default.toml
, these values default to running the tests locally in docker using devnet.
There are a few possibile combinations to run tests that we support.
Devnet Devnet requires previously deployed programs that are owned by the person running the tests. The program ID's are required for testnet, but ignored in localnet.
Common.network
needs to be set todevnet
which will instruct the tests to run against devnetocr2_program_id
,access_controller_program_id
,store_program_id
,link_token_address
,vault_address
need to be set so the tests know what programs to use so we avoid deploying each time.rpc_url
andws_url
need to be set
Localnet
Setting localnet will instruct the tests to run in localnet, the program ID's are not taken from the TOML in this scenario, but rather defined in the integration-tests/config/config.go
.
K8s
Running in Kubernetes will require aws auth.
Common.inside_k8
needs to be set to true if you want to run the tests in k8
By default all values are pulled either from default.toml
or if we create an overrides.toml
where we want to set new values or override existing values. Both default.toml
and overrides.toml
will end up being merged where values that are set in both files will be taken based on the value in overrides.toml
.
cd integration-tests/smoke && go test -timeout 24h -count=1 -run TestSolanaOCRV2Smoke -test.timeout 30m;