From: Greg Farnum Date: Wed, 1 Dec 2021 16:18:50 +0000 (+0000) Subject: test: check range blocklist in cephtool/test.sh X-Git-Tag: v18.0.0~1026^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1ca89ca76dbbae355831dc81065f22e6eb7e37ca;p=ceph.git test: check range blocklist in cephtool/test.sh Signed-off-by: Greg Farnum --- diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index 73e0836fc744..b73cd91d7f54 100755 --- a/qa/workunits/cephtool/test.sh +++ b/qa/workunits/cephtool/test.sh @@ -1432,6 +1432,15 @@ function test_mon_osd() # test with invalid address expect_false "ceph osd blocklist add 1234.56.78.90/100" + # test range blocklisting + bl=192.168.0.1/24 + ceph osd blocklist range add $bl + ceph osd blocklist ls | grep $bl + ceph osd blocklist range rm $bl + ceph osd blocklist ls | expect_false grep $bl + bad_bl=192.168.0.1/33 + expect_false ceph osd blocklist range add $bad_bl + # Test `clear` ceph osd blocklist add $bl ceph osd blocklist ls | grep $bl