]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa: set, get, list and remove custom metadata for snapshot 46508/head
authorNikhilkumar Shelke <nshelke@redhat.com>
Thu, 28 Apr 2022 18:38:05 +0000 (00:08 +0530)
committerNikhilkumar Shelke <nshelke@redhat.com>
Thu, 2 Jun 2022 17:44:46 +0000 (23:14 +0530)
commit23774cf8e73121c1287028ead1dd85258fddb53c
treec296a444fb0b7c3cf08a1d94ac59af102dd7cd7b
parent7e150a0ab3c8e4ca2268edd99dd5ef7d641c6d3e
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