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

15 lines
560 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.yml
bs="$secondus_bootstrap" # set in with-1-data-1-empty-node-cluster.sh
2023-09-04 18:56:48 +00:00
[ "$(yq <"$bs" '.admin_creation_params')" = "$(yq <admin.yml '.creation_params')" ]
[ "$(yq <"$bs" '.hostname')" = "secondus" ]
[ "$(yq <"$bs" '.hosts.primus.nebula.signed_public_credentials')" \
= "$(yq <"$adminBS" '.nebula.signed_public_credentials')" ]
[ "$(yq <"$bs" '.hosts.primus.garage.instances|length')" = "3" ]