isle/tests/cases/admin/02-create-bootstrap.sh

15 lines
588 B
Bash
Raw Normal View History

# shellcheck source=../../utils/with-1-data-1-empty-node-cluster.sh
source "$UTILS"/with-1-data-1-empty-node-cluster.sh
2023-09-04 18:56:48 +00:00
adminBS="$XDG_DATA_HOME"/isle/bootstrap.json
bs="$secondus_bootstrap" # set in with-1-data-1-empty-node-cluster.sh
2023-09-04 18:56:48 +00:00
[ "$(jq -r <"$bs" '.AdminCreationParams')" = "$(jq -r <admin.json '.CreationParams')" ]
[ "$(jq -r <"$bs" '.SignedHostAssigned.Body.Name')" = "secondus" ]
2023-09-04 18:56:48 +00:00
[ "$(jq -r <"$bs" '.Hosts.primus.PublicCredentials')" \
= "$(jq -r <"$adminBS" '.SignedHostAssigned.Body.PublicCredentials')" ]
2023-09-04 18:56:48 +00:00
[ "$(jq <"$bs" '.Hosts.primus.Garage.Instances|length')" = "3" ]
2023-09-04 18:56:48 +00:00