-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove dapptools and update test readme to use stack-orchestrator
- Loading branch information
Showing
9 changed files
with
117 additions
and
72 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
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
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
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
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
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
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
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
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,15 +1,112 @@ | ||
# Test Insructions | ||
|
||
Spin up services: | ||
``` | ||
docker-compose -f docker-compose.test.yml -f docker-compose.yml up -d db dapptools contract eth-server | ||
``` | ||
## Setup | ||
|
||
Running unit tests: | ||
```bash | ||
make test_local | ||
``` | ||
- Clone [stack-orchestrator](https://github.com/vulcanize/stack-orchestrator) and [go-ethereum](https://github.com/vulcanize/go-ethereum) repositories. | ||
|
||
Running integration test: | ||
```bash | ||
make integrationtest_local | ||
``` | ||
- Checkout [v3 release](https://github.com/vulcanize/go-ethereum/releases/tag/v1.10.17-statediff-3.2.0) in go-ethereum repo. | ||
```bash | ||
# In go-ethereum repo. | ||
git checkout v1.10.17-statediff-3.2.0 | ||
``` | ||
|
||
- Checkout working commit in stack-orchestrator repo. | ||
```bash | ||
# In stack-orchestrator repo. | ||
git checkout fcbc74451c5494664fe21f765e89c9c6565c07cb | ||
``` | ||
|
||
## Run | ||
|
||
- Run unit tests: | ||
|
||
```bash | ||
# In ipld-eth-server root directory. | ||
./scripts/run_unit_test.sh | ||
``` | ||
|
||
- Run integration tests: | ||
|
||
- Update (Replace existing content) config file [config.sh](https://github.com/vulcanize/stack-orchestrator/blob/main/config.sh) in stack-orchestrator repo: | ||
```bash | ||
#!/bin/bash | ||
|
||
# Path to go-ethereum repo. | ||
vulcanize_go_ethereum=~/go-ethereum/ | ||
|
||
# Path to ipld-eth-server repo. | ||
vulcanize_ipld_eth_server=~/ipld-eth-server/ | ||
|
||
db_write=true | ||
eth_forward_eth_calls=false | ||
eth_proxy_on_error=false | ||
eth_http_path="go-ethereum:8545" | ||
``` | ||
|
||
- Run stack-orchestrator: | ||
```bash | ||
# In stack-orchestrator root directory. | ||
cd helper-scripts | ||
./wrapper.sh \ | ||
-e docker \ | ||
-d ../docker/latest/docker-compose-db.yml \ | ||
-d ../docker/local/docker-compose-go-ethereum.yml \ | ||
-d ../docker/local/docker-compose-ipld-eth-server.yml \ | ||
-v remove \ | ||
-p ../config.sh | ||
``` | ||
|
||
- Run test: | ||
```bash | ||
# In ipld-eth-server root directory. | ||
./scripts/run_integration_test.sh | ||
``` | ||
|
||
- Update `config.sh` file: | ||
```bash | ||
#!/bin/bash | ||
# Path to go-ethereum repo. | ||
vulcanize_go_ethereum=~/go-ethereum/ | ||
# Path to ipld-eth-server repo. | ||
vulcanize_ipld_eth_server=~/ipld-eth-server/ | ||
db_write=false | ||
eth_forward_eth_calls=true | ||
eth_proxy_on_error=false | ||
eth_http_path="go-ethereum:8545" | ||
``` | ||
|
||
- Stop the stack-orchestrator and start again using the same command | ||
|
||
- Run integration tests for direct proxy fall-through of eth_calls: | ||
```bash | ||
./scripts/run_integration_test_forward_eth_calls.sh | ||
``` | ||
|
||
- Update `config.sh` file: | ||
```bash | ||
#!/bin/bash | ||
# Path to go-ethereum repo. | ||
vulcanize_go_ethereum=~/go-ethereum/ | ||
# Path to ipld-eth-server repo. | ||
vulcanize_ipld_eth_server=~/ipld-eth-server/ | ||
db_write=true | ||
eth_forward_eth_calls=false | ||
eth_proxy_on_error=false | ||
eth_http_path="go-ethereum:8545" | ||
watched_addres_gap_filler_enabled=true | ||
watched_addres_gap_filler_interval=5 | ||
``` | ||
|
||
- Stop the stack-orchestrator and start again using the same command | ||
|
||
- Run integration tests for watched addresses with gap filling service enabled: | ||
```bash | ||
./scripts/run_integration_test_watched_address_gap_filler.sh | ||
``` |