17 lines
406 B
Bash
17 lines
406 B
Bash
# shellcheck source=../../utils/with-1-data-1-empty-node-cluster.sh
|
|
source "$UTILS"/with-1-data-1-empty-node-cluster.sh
|
|
|
|
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" ]
|
|
}
|
|
|
|
as_primus
|
|
do_tests
|
|
|
|
as_secondus
|
|
do_tests
|