diff options
Diffstat (limited to 'tests/basic')
-rw-r--r-- | tests/basic/uss.t | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/basic/uss.t b/tests/basic/uss.t index f86c19d981e..aabe00cd880 100644 --- a/tests/basic/uss.t +++ b/tests/basic/uss.t @@ -13,6 +13,7 @@ function check_readonly() } cleanup; +TESTS_EXPECTED_IN_LOOP=10 TEST init_n_bricks 3; TEST setup_lvm 3; @@ -50,6 +51,13 @@ for i in {11..20} ; do echo "foo" > $M0/dir2/foo$i ; done TEST $CLI snapshot create snap4 $V0; +## Test that features.uss takes only options enable/disable and throw error for +## any other argument. +for i in {1..10}; do + RANDOM_STRING=`cat /dev/urandom | tr -dc 'a-zA-Z' | fold -w 8 | head -n 1` + TEST_IN_LOOP ! $CLI volume set $V0 features.uss $RANDOM_STRING +done + TEST $CLI volume set $V0 features.uss enable; EXPECT_WITHIN $UMOUNT_TIMEOUT "Y" force_umount $M0 |