From 1ca89ca76dbbae355831dc81065f22e6eb7e37ca Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Wed, 1 Dec 2021 16:18:50 +0000 Subject: [PATCH] test: check range blocklist in cephtool/test.sh Signed-off-by: Greg Farnum --- qa/workunits/cephtool/test.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index 73e0836fc744f..b73cd91d7f547 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 -- 2.39.5