README ¶ Local Testing Multinode E2E Tests Requirements Install docker Install docker-compose Steps Start Docker daemon cd to repo's root folder and run the following command (sudo may be required) go test -failfast -v -timeout 30m github.com/celer-network/sgn/test/e2e/multinode Test Logs geth log path: docker-volumes/geth-env/geth.log sgn nodeN log path: docker-volumes/nodeN/sgn/sgnd.log Multinode Manual Tests SingleNode Manual Tests Setup cp ./test/config/local_config.json ./config.json start docker geth container docker-compose up geth WITH_CLEVELDB=yes make install-all sgntest deploy sgntest osp sgnd start Test Guard curl -X POST http://127.0.0.1:1317/requestGuard -d '{ "seqNum": "10" }' curl -X POST http://127.0.0.1:1317/intendSettle -d '{ "seqNum": "9" }' Test Upgrade sgncli tx govern submit-proposal software-upgrade test --title "upgrade test" --description "upgrade test" --deposit 10 --upgrade-height 100 --from jack --keyring-backend file sgncli tx govern vote 1 yes --from jack --keyring-backend file Add upgrade handler to app.go, after the chain halts app.upgradeKeeper.SetUpgradeHandler("tesy", func(ctx sdk.Context, plan upgrade.Plan) { // upgrade changes here log.Infof("upgrade to tesy") }) Restart the chain with sgnd start Expand ▾ Collapse ▴ Directories ¶ Show internal Expand all Path Synopsis e2e common manual multinode Setup mainchain and sgn sidechain etc for e2e tests Setup mainchain and sgn sidechain etc for e2e tests singlenode Click to show internal directories. Click to hide internal directories.