File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments