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-06 19:55:05 +00:00
|
|
|
|
|
|
|
function assert_a {
|
|
|
|
want_ip="$1"
|
|
|
|
hostname="$2"
|
|
|
|
r="$(dig @"$current_ip" +noall +answer "$hostname")"
|
|
|
|
echo "$r" | grep -q "$want_ip"
|
|
|
|
}
|
|
|
|
|
|
|
|
as_primus
|
|
|
|
assert_a "$primus_ip" primus.hosts.shared.test
|
2024-07-20 10:36:21 +00:00
|
|
|
assert_a "$secondus_ip" secondus.hosts.shared.test
|
2023-09-06 19:55:05 +00:00
|
|
|
|
|
|
|
as_secondus
|
|
|
|
assert_a "$primus_ip" primus.hosts.shared.test
|
|
|
|
assert_a "$secondus_ip" secondus.hosts.shared.test
|