2024-07-06 13:36:48 +00:00
|
|
|
# shellcheck source=../../utils/with-1-data-1-empty-node-network.sh
|
|
|
|
source "$UTILS"/with-1-data-1-empty-node-network.sh
|
2023-09-04 18:56:48 +00:00
|
|
|
|
2024-06-17 12:13:53 +00:00
|
|
|
adminBS="$XDG_STATE_HOME"/isle/bootstrap.json
|
2024-07-06 13:36:48 +00:00
|
|
|
bs="$secondus_bootstrap" # set in with-1-data-1-empty-node-network.sh
|
2023-09-04 18:56:48 +00:00
|
|
|
|
2024-06-10 16:56:36 +00:00
|
|
|
[ "$(jq -r <"$bs" '.AdminCreationParams')" = "$(jq -r <admin.json '.CreationParams')" ]
|
2024-06-10 20:31:29 +00:00
|
|
|
[ "$(jq -r <"$bs" '.SignedHostAssigned.Body.Name')" = "secondus" ]
|
2023-09-04 18:56:48 +00:00
|
|
|
|
2024-06-10 20:31:29 +00:00
|
|
|
[ "$(jq -r <"$bs" '.Hosts.primus.PublicCredentials')" \
|
|
|
|
= "$(jq -r <"$adminBS" '.SignedHostAssigned.Body.PublicCredentials')" ]
|
2023-09-04 18:56:48 +00:00
|
|
|
|
2024-06-10 16:56:36 +00:00
|
|
|
[ "$(jq <"$bs" '.Hosts.primus.Garage.Instances|length')" = "3" ]
|
2023-09-04 18:56:48 +00:00
|
|
|
|