]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa: set, get, list and remove custom metadata for subvolume 45994/head
authorNikhilkumar Shelke <nshelke@redhat.com>
Wed, 23 Mar 2022 18:58:53 +0000 (00:28 +0530)
committerNikhilkumar Shelke <nshelke@redhat.com>
Fri, 22 Apr 2022 03:06:28 +0000 (08:36 +0530)
commit26d53df8d05f475b2fc22541e63da68b29ba3363
tree7d516c9098d13f57aaee361323e69ed67873ba46
parent1dab0bd7bfaa210df3af71b295fb5140c1ca16f1
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>
(cherry picked from commit d1f4ecd557e7fe7deeeed05a915edb4508414385)
qa/tasks/cephfs/test_volumes.py