Skip to content

Commit 7036888

Browse files
committed
Add integration test
1 parent d4f87a1 commit 7036888

40 files changed

+261
-26
lines changed

integration-test/docker/README.md renamed to integration-test/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ BFT node in the network. The node will produce all blocks and the environment/le
2121

2222
* Install [Docker](https://www.docker.com/)
2323

24-
### Steps
24+
### Launch containers
2525

2626
Bootstrap config files for a single BFT node:
2727

@@ -37,3 +37,9 @@ Clean up docker containers and volumes when done with testing:
3737

3838
`docker-compose down`
3939

40+
41+
### Test
42+
43+
Current, all integration tests could be kicked off by running:
44+
45+
`./run_tests.sh`

integration-test/__init__.py

Whitespace-only changes.

integration-test/docker/bootstrap.sh renamed to integration-test/bootstrap.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ echo "Bootstrapping network: $NETWORK"
2222

2323
if [ "$NETWORK" = "local-alonzo" ]; then
2424
echo "Updating byron startTime to present in local mode, alonzo era"
25-
jq -M ".startTime = ""$(date +%s)" configs/"$NETWORK"/"$NETWORK"-byron-genesis.json > \
26-
tmp_configs/"$NETWORK"/"$NETWORK"-byron-genesis.json
25+
jq -M ".startTime = ""$(date +%s)" configs/"$NETWORK"/byron-genesis.json > \
26+
tmp_configs/"$NETWORK"/byron-genesis.json
2727
fi
2828

2929
echo "NETWORK=$NETWORK" >.env
30-
NETWORK_MAGIC=$(jq .networkMagic tmp_configs/"$NETWORK"/"$NETWORK"-shelley-genesis.json)
30+
NETWORK_MAGIC=$(jq .networkMagic tmp_configs/"$NETWORK"/shelley-genesis.json)
3131
echo "Found network magic: $NETWORK_MAGIC"
3232
echo "NETWORK_MAGIC=$NETWORK_MAGIC" >>.env
3333
echo "Done"

integration-test/docker/configs/local/local-config.json renamed to integration-test/configs/local-alonzo/config.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"ByronGenesisFile": "local-byron-genesis.json",
3-
"ShelleyGenesisFile": "local-shelley-genesis.json",
4-
"AlonzoGenesisFile": "local-alonzo-genesis.json",
2+
"ByronGenesisFile": "byron-genesis.json",
3+
"ShelleyGenesisFile": "shelley-genesis.json",
4+
"AlonzoGenesisFile": "alonzo-genesis.json",
55
"SocketPath": "db/node.socket",
66
"MaxConcurrencyBulkSync": 1,
77
"MaxConcurrencyDeadline": 2,

integration-test/docker/configs/local/local-shelley-genesis.json renamed to integration-test/configs/local-alonzo/shelley-genesis.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"securityParam": 1000000000,
44
"slotsPerKESPeriod": 129600,
55
"updateQuorum": 2,
6-
"activeSlotsCoeff": 0.1,
6+
"activeSlotsCoeff": 0.5,
77
"protocolParams": {
88
"minUTxOValue": 1000000,
99
"eMax": 18,

0 commit comments

Comments
 (0)