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-20 10:36:21 +00:00
|
|
|
function do_tests {
|
|
|
|
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" ]
|
2024-06-23 12:37:10 +00:00
|
|
|
|
2024-07-20 10:36:21 +00:00
|
|
|
[ "$(echo "$hosts" | jq -r '.[1].Name')" = "secondus" ]
|
2024-07-21 15:03:59 +00:00
|
|
|
[ "$(echo "$hosts" | jq -r '.[1].VPN.IP')" = "$secondus_ip" ]
|
2024-07-20 10:36:21 +00:00
|
|
|
[ "$(echo "$hosts" | jq -r '.[1].Storage.Instances|length')" = "0" ]
|
|
|
|
}
|
2024-06-23 12:37:10 +00:00
|
|
|
|
2024-07-20 10:36:21 +00:00
|
|
|
as_primus
|
|
|
|
do_tests
|
|
|
|
|
|
|
|
as_secondus
|
|
|
|
do_tests
|