-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Rewrite to drop k3d, use same setup as chainlink-cosmos
No more slow tests, broken networking and other issues!
- Loading branch information
Showing
21 changed files
with
613 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,38 @@ | ||
# Local k8s run | ||
|
||
See [there](../docs/integration-tests/README.md) | ||
Make sure to have `psql` installed locally. We use it to create a new database for each node. | ||
|
||
# Integration Tests | ||
Create a new network for containers (only needs to be done once). A custom network allows containers to DNS resolve each other using container names. | ||
|
||
``` | ||
docker network create chainlink | ||
``` | ||
|
||
Build a custom core image with starknet relayer bumped to some commit. | ||
|
||
``` | ||
cd ../core | ||
go get github.com/smartcontractkit/chainlink-starknet/relayer@<MY COMMIT HERE> | ||
docker build . -t smartcontract/chainlink:starknet -f ./core/chainlink.Dockerfile | ||
``` | ||
|
||
Compile contracts and gauntlet: | ||
|
||
``` | ||
yarn build | ||
cd contracts | ||
scarb --profile release build | ||
``` | ||
|
||
Run the tests! | ||
|
||
``` | ||
cd integration-tests | ||
go test -count 1 -v -timeout 30m --run OCRBasic ./smoke | ||
``` | ||
|
||
Cleanup is broken right now, so use `something.down.sh` scripts to teardown everything afterwards. | ||
|
||
# Old docs | ||
|
||
For more information, see the [Chainlink Starknet Documentation | Integration Tests](../docs/integration-tests). |
Oops, something went wrong.