Skip to content

Commit 96fe54c

Browse files
committed
Add additional extend-data tests
These new tests use all the generality of the extend action for the --device-uuid option. Signed-off-by: mulhern <amulhern@redhat.com>
1 parent 6f40370 commit 96fe54c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/integration/pool/test_extend.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ def test_no_uuid(self):
6161
command_line = self._MENU + [self._POOLNAME]
6262
self.check_error(StratisCliNoDeviceSizeChangeError, command_line, _ERROR)
6363

64+
def test_no_uuid_2(self):
65+
"""
66+
Test trying to extend a pool without specifying a UUID but still
67+
specifying the --device-uuid option.
68+
"""
69+
command_line = self._MENU + [self._POOLNAME, "--device-uuid"]
70+
self.check_error(StratisCliNoDeviceSizeChangeError, command_line, _ERROR)
71+
6472
def test_good_uuid(self):
6573
"""
6674
Test trying to extend a device specifying an existing device UUID.
@@ -71,3 +79,13 @@ def test_good_uuid(self):
7179
f"--device-uuid={UUID(props.Uuid())}",
7280
]
7381
self.check_error(StratisCliPartialChangeError, command_line, _ERROR)
82+
83+
def test_multiple_uuids(self):
84+
"""
85+
Test passing multiple UUIDs with the --device-uuid option.
86+
"""
87+
command_line = self._MENU + [
88+
self._POOLNAME,
89+
f"--device-uuid={uuid4()} {uuid4()}",
90+
]
91+
self.check_error(StratisCliResourceNotFoundError, command_line, _ERROR)

0 commit comments

Comments
 (0)