18 lines
747 B
Bash
18 lines
747 B
Bash
# shellcheck source=../../utils/with-1-data-1-empty-node-network.sh
|
|
source "$UTILS"/with-1-data-1-empty-node-network.sh
|
|
|
|
adminBS="$XDG_STATE_HOME"/isle/bootstrap.json
|
|
bs="$secondus_bootstrap" # set in with-1-data-1-empty-node-network.sh
|
|
|
|
[ "$(jq -r <"$bs" '.Bootstrap.NetworkCreationParams.Domain')" = "shared.test" ]
|
|
[ "$(jq -r <"$bs" '.Bootstrap.NetworkCreationParams.Name')" = "testing" ]
|
|
[ "$(jq -r <"$bs" '.Bootstrap.SignedHostAssigned.Body.Name')" = "secondus" ]
|
|
|
|
[ "$(jq -r <"$bs" '.Bootstrap.Hosts.primus.PublicCredentials')" \
|
|
= "$(jq -r <"$adminBS" '.SignedHostAssigned.Body.PublicCredentials')" ]
|
|
|
|
[ "$(jq <"$bs" '.Bootstrap.Hosts.primus.Garage.Instances|length')" = "3" ]
|
|
|
|
[ "$(jq <"$bs" '.Secrets["garage-rpc-secret"]')" != "null" ]
|
|
|