14 lines
524 B
Bash
14 lines
524 B
Bash
# shellcheck source=../../utils/with-1-data-1-empty-node-network.sh
|
|
source "$UTILS"/with-1-data-1-empty-node-network.sh
|
|
|
|
as_primus
|
|
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" ]
|