Compare commits
2 Commits
8dcc436aaa
...
5ee80b1b7d
Author | SHA1 | Date |
---|---|---|
Brian Picciano | 5ee80b1b7d | 9 months ago |
Brian Picciano | 96a3ecfe14 | 9 months ago |
@ -0,0 +1,3 @@ |
||||
Ctrl+A X -> exits |
||||
|
||||
qemu-system-aarch64 -M virt -nographic -cdrom tests/alpine-virt-3.17.3-aarch64.iso |
@ -0,0 +1,20 @@ |
||||
# shellcheck source=../../utils/with-1-data-1-empty-node-cluster.sh |
||||
source "$UTILS"/with-1-data-1-empty-node-cluster.sh |
||||
|
||||
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 |
||||
|
||||
# TODO This doesn't work at present, there would need to be some mechanism to |
||||
# block the test until secondus' bootstrap info can propagate to primus. |
||||
#assert_a "$secondus_ip" secondus.hosts.shared.test |
||||
|
||||
as_secondus |
||||
assert_a "$primus_ip" primus.hosts.shared.test |
||||
assert_a "$secondus_ip" secondus.hosts.shared.test |
@ -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