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
|
2024-06-23 12:37:10 +00:00
|
|
|
|
2024-07-09 13:14:29 +00:00
|
|
|
# TODO when primus creates secondus' bootstrap it should write the new host to
|
|
|
|
# its own bootstrap, as well as to garage.
|
|
|
|
as_secondus
|
2024-06-23 12:37:10 +00:00
|
|
|
hosts="$(isle hosts list)"
|
|
|
|
|
|
|
|
[ "$(echo "$hosts" | jq -r '.[0].Name')" = "primus" ]
|
|
|
|
[ "$(echo "$hosts" | jq -r '.[0].VPN.IP')" = "10.6.9.1" ]
|
|
|
|
[ "$(echo "$hosts" | jq -r '.[0].Storage.Instances|length')" = "3" ]
|
|
|
|
|
|
|
|
[ "$(echo "$hosts" | jq -r '.[1].Name')" = "secondus" ]
|
|
|
|
[ "$(echo "$hosts" | jq -r '.[1].VPN.IP')" = "10.6.9.2" ]
|
|
|
|
[ "$(echo "$hosts" | jq -r '.[1].Storage.Instances|length')" = "0" ]
|