]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa: set, get, list and remove custom metadata for snapshot 46515/head
authorNikhilkumar Shelke <nshelke@redhat.com>
Thu, 28 Apr 2022 18:38:05 +0000 (00:08 +0530)
committerNikhilkumar Shelke <nshelke@redhat.com>
Thu, 16 Jun 2022 11:33:11 +0000 (17:03 +0530)
commit9bb37398548f2e08a6d746230c7d93531da1540f
tree225ffb694f58bbafe13e56110a68a8ef5cccd150
parentdf8e2383f676a3b1e7bea54e9667fad702954ed2
qa: set, get, list and remove custom metadata for snapshot

Following test are added:
1. Set custom metadata for subvolume snapshot.
2. Set custom metadata for subvolume snapshot(Idempotency).
3. Get custom metadata for specified key.
4. Get custom metadata if specified key not exist (Expecting error ENOENT).
5. Get custom metadata if no any key-value is added means section not exist (Expecting error ENOENT).
6. Update value for existing key in custom metadata.
7. List custom metadata of subvolume snapshot.
8. List custom metadata of subvolume snapshot if no any key-value is added (Expect empty json/dictionary)
9. Remove custom metadata for specified key.
10. Remove custom metadata if specified key not exist (Expecting error ENOENT).
11. Remove custom metadata if no any key-value is added means section not exist (Expecting error ENOENT).
12. Remove custom metadata with --force option.
13. Remove custom metadata with --force option if specified key not exist (Expecting command to succeed because of '--force' option)
14. Remove subvolume snapshot and verify whether metadata for snapshot is removed or not

Fixes: https://tracker.ceph.com/issues/55401
Signed-off-by: Nikhilkumar Shelke <nshelke@redhat.com>
(cherry picked from commit 6fd28cc9d67b96ba87f0dffbf41d626229e904e3)
qa/tasks/cephfs/test_volumes.py