parent
8dcc436aaa
commit
96a3ecfe14
@ -1,13 +1,21 @@ |
||||
# shellcheck source=../../utils/with-1-data-1-empty-node-cluster.sh |
||||
source "$UTILS"/with-1-data-1-empty-node-cluster.sh |
||||
|
||||
status="$(isle garage cli status | tail -n+3)" |
||||
function do_tests { |
||||
status="$(isle garage cli status | tail -n+3)" |
||||
|
||||
[ "$(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' |
||||
[ "$(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' |
||||
|
||||
buckets="$(isle garage cli bucket list | tail -n+2)" |
||||
[ "$(echo "$buckets" | wc -l)" = 1 ] |
||||
echo "$buckets" | grep -q 'global-shared' |
||||
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 |
||||
|
@ -1,8 +1,16 @@ |
||||
# shellcheck source=../../utils/with-1-data-1-empty-node-cluster.sh |
||||
source "$UTILS"/with-1-data-1-empty-node-cluster.sh |
||||
|
||||
files="$(isle garage mc -- tree --json garage)" |
||||
[ "$(echo "$files" | jq -s '.|length')" -ge "1" ] |
||||
function do_tests { |
||||
files="$(isle garage mc -- tree --json garage)" |
||||
[ "$(echo "$files" | jq -s '.|length')" -ge "1" ] |
||||
|
||||
file="$(echo "$files" | jq -sr '.[0].key')" |
||||
[ "$(isle garage mc -- cat "garage/$file" | wc -c)" -gt "0" ] |
||||
file="$(echo "$files" | jq -sr '.[0].key')" |
||||
[ "$(isle garage mc -- cat "garage/$file" | wc -c)" -gt "0" ] |
||||
} |
||||
|
||||
as_primus |
||||
do_tests |
||||
|
||||
as_secondus |
||||
do_tests |
||||
|
Loading…
Reference in new issue