summaryrefslogtreecommitdiffstats
path: root/tests/file_source.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/file_source.py')
-rw-r--r--tests/file_source.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/file_source.py b/tests/file_source.py
index 391ca48..9ffd4e3 100644
--- a/tests/file_source.py
+++ b/tests/file_source.py
@@ -105,3 +105,13 @@ class TestQcow2FileSource(Qcow2ImageAccessor):
"""
self.call_bootstrap()
self.check_qcow2_images(self.get_image_path())
+
+ def test_qcow2_ownership_mapping(self):
+ """
+ Ensures that UID/GID mapping works correctly for qcow2 conversion.
+ """
+ self.uid_map = [[1000, 2000, 10], [0, 1000, 10], [500, 500, 10]]
+ self.gid_map = [[1000, 2000, 10], [0, 1000, 10], [500, 500, 10]]
+ self.call_bootstrap()
+ self.apply_mapping()
+ self.check_qcow2_images(self.get_image_path(1))