]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
neorados_pool_test: Erase a pool name from local map during delete_pool 61449/head
authorMohit Agrawal <moagrawa@redhat.com>
Mon, 20 Jan 2025 06:03:31 +0000 (11:33 +0530)
committerMohit Agrawal <moagrawa@redhat.com>
Tue, 21 Jan 2025 10:00:26 +0000 (15:30 +0530)
commit2a18459eff71b75b6a5733f2e609b34bda2e3672
treeb6dbe1dcd3c6d4be7b6b68d317a6b15fa34cc817
parent3162e265ce138646560d995974c67e2a3e2008c1
neorados_pool_test: Erase a pool name from local map during delete_pool

The test case itself call CoTearDown function by the end of every test case
and the function call delete_pool on the basis of pool name exists in
local set <created_pools> and if the pool does not exist during CoTearDown
it throws an exception so the test case expects the pool should be exists
before leaving the test case.

Solution: During delete_pool erase a pool name from a local map
          and CoTearDown iterate over local copy instead of the
          orignal copy.

Fixes: https://tracker.ceph.com/issues/69405
Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
src/test/neorados/pool.cc