From: Ilya Dryomov Date: Thu, 23 Nov 2023 19:24:24 +0000 (+0100) Subject: qa: make sure "rados cppool" requires --yes-i-really-mean-it for RBD X-Git-Tag: v18.2.4~272^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=85edc3b5168d8ff8a96e1ca11a10df8b14802f29;p=ceph.git qa: make sure "rados cppool" requires --yes-i-really-mean-it for RBD Safeguards in rados CLI tool isn't really the subject of this test, but it fits nicely. Signed-off-by: Ilya Dryomov (cherry picked from commit 2b135a2eb60e0dd5ab22d213d3d2435608c6a9d3) --- diff --git a/qa/workunits/mon/rbd_snaps_ops.sh b/qa/workunits/mon/rbd_snaps_ops.sh index eb88565eab9c..0e5b16b7b80b 100755 --- a/qa/workunits/mon/rbd_snaps_ops.sh +++ b/qa/workunits/mon/rbd_snaps_ops.sh @@ -36,6 +36,7 @@ expect 'rbd --pool=test snap ls image' 0 expect 'rbd --pool=test snap rm image@snapshot' 0 expect 'ceph osd pool mksnap test snapshot' 22 +expect 'rados -p test mksnap snapshot' 1 expect 'ceph osd pool delete test test --yes-i-really-really-mean-it' 0 @@ -52,6 +53,8 @@ expect 'rbd --pool test-foo snap create image@snapshot' 0 ceph osd pool delete test-bar test-bar --yes-i-really-really-mean-it || true expect 'ceph osd pool create test-bar 8' 0 expect 'ceph osd pool application enable test-bar rbd' +# "rados cppool" without --yes-i-really-mean-it should fail +expect 'rados cppool test-foo test-bar' 1 expect 'rados cppool test-foo test-bar --yes-i-really-mean-it' 0 expect 'rbd --pool test-bar snap rm image@snapshot' 95 expect 'ceph osd pool delete test-foo test-foo --yes-i-really-really-mean-it' 0