From: Greg Farnum Date: Wed, 1 Dec 2021 16:16:18 +0000 (+0000) Subject: test: fix negative blocklist tests X-Git-Tag: v17.2.1~15^2~10 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=0c4ca23fb4eca7df8233789f0b04914291bd2f06;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 1b4af176693b6..73e0836fc744f 100755 --- a/qa/workunits/cephtool/test.sh +++ b/qa/workunits/cephtool/test.sh @@ -1426,11 +1426,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