2023-09-05 21:14:40 +00:00
|
|
|
# shellcheck source=../../utils/with-1-data-1-empty-node-cluster.sh
|
|
|
|
source "$UTILS"/with-1-data-1-empty-node-cluster.sh
|
2023-09-04 19:38:28 +00:00
|
|
|
|
2023-09-06 19:06:03 +00:00
|
|
|
function do_tests {
|
|
|
|
status="$(isle garage cli status | tail -n+3)"
|
2023-09-04 19:38:28 +00:00
|
|
|
|
2023-09-06 19:06:03 +00:00
|
|
|
[ "$(echo "$status" | wc -l)" = "3" ]
|
|
|
|
echo "$status" | grep -q '10.6.9.1:3900'
|
|
|
|
echo "$status" | grep -q '10.6.9.1:3910'
|
|
|
|
echo "$status" | grep -q '10.6.9.1:3920'
|
2023-09-04 19:38:28 +00:00
|
|
|
|
2023-09-06 19:06:03 +00:00
|
|
|
buckets="$(isle garage cli bucket list | tail -n+2)"
|
|
|
|
[ "$(echo "$buckets" | wc -l)" = 1 ]
|
|
|
|
echo "$buckets" | grep -q 'global-shared'
|
|
|
|
}
|
|
|
|
|
|
|
|
as_primus
|
|
|
|
do_tests
|
|
|
|
|
|
|
|
as_secondus
|
|
|
|
do_tests
|