]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa: set, get, list and remove custom metadata for subvolume 45603/head
authorNikhilkumar Shelke <nshelke@redhat.com>
Wed, 23 Mar 2022 18:58:53 +0000 (00:28 +0530)
committerNikhilkumar Shelke <nshelke@redhat.com>
Thu, 7 Apr 2022 07:00:42 +0000 (12:30 +0530)
commitd1f4ecd557e7fe7deeeed05a915edb4508414385
tree80e4e0a7abfda744f22224ee30044e156566f7ef
parent88adfe90509f04961008a078ac1ac4fb3667cd80
qa: set, get, list and remove custom metadata for subvolume

Following test are added:
1. Set custom metadata for subvolume.
2. Set custom metadata for subvolume(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.
8. List custom metadata of subvolume 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. Set and Get custom metadata for legacy subvolume.
15. List and Remove custom metadata from legacy subvolume.

Fixes: https://tracker.ceph.com/issues/54472
Signed-off-by: Nikhilkumar Shelke <nshelke@redhat.com>
qa/tasks/cephfs/test_volumes.py