Skip to content

Commit

Permalink
tests: Rewrite to drop k3d, use same setup as chainlink-cosmos
Browse files Browse the repository at this point in the history
No more slow tests, broken networking and other issues!
  • Loading branch information
archseer committed Feb 9, 2024
1 parent 49f4177 commit 660cfc5
Show file tree
Hide file tree
Showing 21 changed files with 613 additions and 260 deletions.
35 changes: 33 additions & 2 deletions integration-tests/README.md
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).
Loading

0 comments on commit 660cfc5

Please sign in to comment.