# shellcheck source=../../utils/with-1-data-1-empty-node-network.sh source "$UTILS"/with-1-data-1-empty-node-network.sh 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" ] [ "$(echo "$hosts" | jq -r '.[1].Name')" = "secondus" ] [ "$(echo "$hosts" | jq -r '.[1].VPN.IP')" = "$secondus_ip" ] [ "$(echo "$hosts" | jq -r '.[1].Storage.Instances|length')" = "0" ] } as_primus do_tests as_secondus do_tests