From: Greg Farnum Date: Wed, 1 Dec 2021 16:16:18 +0000 (+0000) Subject: test: fix negative blocklist tests X-Git-Tag: v16.2.11~543^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d10c56e585dbf729be8bb11da1b1cb8efc1a8de8;p=ceph.git test: fix negative blocklist tests These tests are supposed to be validating we don't accept invalid IPs, but they left out the "add" subcommand so they're all failing on that! Signed-off-by: Greg Farnum (cherry picked from commit 824689217248128cec67317d1410624fd94d276c) --- diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index 48a8120ae20d..d27883eabd29 100755 --- a/qa/workunits/cephtool/test.sh +++ b/qa/workunits/cephtool/test.sh @@ -1423,11 +1423,11 @@ function test_mon_osd() ceph osd blocklist ls | grep $bl ceph osd blocklist rm $bl ceph osd blocklist ls | expect_false grep $bl - expect_false "ceph osd blocklist $bl/-1" - expect_false "ceph osd blocklist $bl/foo" + expect_false "ceph osd blocklist add $bl/-1" + expect_false "ceph osd blocklist add $bl/foo" - # test with wrong address - expect_false "ceph osd blocklist 1234.56.78.90/100" + # test with invalid address + expect_false "ceph osd blocklist add 1234.56.78.90/100" # Test `clear` ceph osd blocklist add $bl