-
Notifications
You must be signed in to change notification settings - Fork 188
Expand file tree
/
Copy pathcalibnet_no_discovery_check.sh
More file actions
executable file
·38 lines (29 loc) · 1.14 KB
/
calibnet_no_discovery_check.sh
File metadata and controls
executable file
·38 lines (29 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env bash
set -euxo pipefail
# This script tests forest behaviours when discovery(mdns and kademlia) is disabled
source "$(dirname "$0")/harness.sh"
function shutdown {
kill -KILL $FOREST_NODE_PID
}
trap shutdown EXIT
$FOREST_PATH --chain calibnet --encrypt-keystore false --mdns false --kademlia false --auto-download-snapshot --exit-after-init
$FOREST_PATH --chain calibnet --encrypt-keystore false --mdns false --kademlia false --auto-download-snapshot --log-dir "$LOG_DIRECTORY" &
FOREST_NODE_PID=$!
forest_wait_api
# Verify that one of the seed nodes has been connected to
until $FOREST_CLI_PATH net peers | grep "calib"; do
sleep 1s;
done
# Verify F3 is getting certificates from the network
# Disable until F3 is re-activated on calibnet
# until [[ $($FOREST_CLI_PATH f3 certs get --output json | jq '.GPBFTInstance') -gt 100 ]]; do
# sleep 1s;
# done
# echo "Test subcommands: f3 status"
# $FOREST_CLI_PATH f3 status
# echo "Test subcommands: f3 manifest"
# $FOREST_CLI_PATH f3 manifest
# echo "Test subcommands: f3 certs get"
# $FOREST_CLI_PATH f3 certs list
# echo "Test subcommands: f3 certs list"
# $FOREST_CLI_PATH f3 certs get