Skip to content

Commit 8ada80f

Browse files
committed
add readme about test script
1 parent 6c05f97 commit 8ada80f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,3 +175,23 @@ docker run -d -p 8081:8080 -p 19650:9650 -p 19651:9651 -e NETWORK_ID=costwo -e M
175175
```
176176

177177
Modify cli config in `server/rosetta-cli-conf/config.json -> construction.offline_url` to point to the offline node.
178+
179+
## Local full integration test
180+
181+
You can use `test-localflare.sh` script. You need bash, node 20, npm, yarn, curl, jq and docker preinstalled.
182+
183+
This script does the following:
184+
- spins up a 5 node localflare cluster
185+
- creates a few blocks
186+
- spins up a rosetta docker image, build from local source (as opposed to pulling from github)
187+
- installs rosetta-cli from github
188+
- performss a construction test
189+
- tears down the localflare network
190+
191+
Run with:
192+
```
193+
export=ROSETTA_IMAGE=rosetta-local
194+
export=START_ROSETTA_SERVER_AFTER_BOOTSTRAP=true
195+
export=MODE=online
196+
./test-localflare.sh
197+
```

0 commit comments

Comments
 (0)