From 85edc3b5168d8ff8a96e1ca11a10df8b14802f29 Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Thu, 23 Nov 2023 20:24:24 +0100 Subject: [PATCH] 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) --- qa/workunits/mon/rbd_snaps_ops.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qa/workunits/mon/rbd_snaps_ops.sh b/qa/workunits/mon/rbd_snaps_ops.sh index eb88565eab9c2..0e5b16b7b80b4 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 -- 2.39.5