@@ -247,7 +247,7 @@ def test_add_namespace(self, caplog, gateway):
247
247
assert f"RBD pool junk doesn't exist" in caplog .text
248
248
caplog .clear ()
249
249
cli (["namespace" , "add" , "--subsystem" , subsystem , "--rbd-pool" , pool , "--rbd-image" , image2 , "--uuid" , uuid , "--size" , "16MiB" , "--rbd-create-image" , "--load-balancing-group" , "1" , "--force" ])
250
- assert f"Adding namespace 1 to { subsystem } , load balancing group 1 : Successful" in caplog .text
250
+ assert f"Adding namespace 1 to { subsystem } : Successful" in caplog .text
251
251
assert "Allocated cluster name='cluster_context_1_0'" in caplog .text
252
252
caplog .clear ()
253
253
cli (["namespace" , "add" , "--subsystem" , subsystem , "--rbd-pool" , pool , "--rbd-image" , image2 , "--size" , "36M" , "--rbd-create-image" , "--load-balancing-group" , "1" , "--force" ])
@@ -291,7 +291,7 @@ def test_add_namespace(self, caplog, gateway):
291
291
assert rc == 2
292
292
caplog .clear ()
293
293
cli (["namespace" , "add" , "--subsystem" , subsystem , "--rbd-pool" , pool , "--rbd-image" , image , "--block-size" , "1024" , "--load-balancing-group" , "1" ])
294
- assert f"Adding namespace 2 to { subsystem } , load balancing group 1 : Successful" in caplog .text
294
+ assert f"Adding namespace 2 to { subsystem } : Successful" in caplog .text
295
295
caplog .clear ()
296
296
cli (["--format" , "json" , "namespace" , "list" , "--subsystem" , subsystem , "--nsid" , "1" ])
297
297
assert '"load_balancing_group": 1' in caplog .text
@@ -317,21 +317,21 @@ def test_add_namespace(self, caplog, gateway):
317
317
assert f'"load_balancing_group": { anagrpid2 } ' in caplog .text
318
318
caplog .clear ()
319
319
cli (["namespace" , "add" , "--subsystem" , subsystem , "--rbd-pool" , pool , "--rbd-image" , image3 , "--size" , "4GiB" , "--rbd-create-image" , "--load-balancing-group" , "1" ])
320
- assert f"Adding namespace 3 to { subsystem } , load balancing group 1 : Successful" in caplog .text
320
+ assert f"Adding namespace 3 to { subsystem } : Successful" in caplog .text
321
321
caplog .clear ()
322
322
cli (["--format" , "json" , "namespace" , "list" , "--subsystem" , subsystem , "--nsid" , "3" ])
323
323
assert '"rbd_image_size": "4294967296"' in caplog .text
324
324
325
325
def test_add_namespace_ipv6 (self , caplog , gateway ):
326
326
caplog .clear ()
327
327
cli (["--server-address" , server_addr_ipv6 , "namespace" , "add" , "--subsystem" , subsystem , "--rbd-pool" , pool , "--rbd-image" , image , "--load-balancing-group" , "1" ,"--force" ])
328
- assert f"Adding namespace 4 to { subsystem } , load balancing group 1 : Successful" in caplog .text
328
+ assert f"Adding namespace 4 to { subsystem } : Successful" in caplog .text
329
329
assert f'will continue as the "force" argument was used' in caplog .text
330
330
caplog .clear ()
331
331
cli (["--format" , "json" , "namespace" , "list" , "--subsystem" , subsystem , "--nsid" , "3" ])
332
332
assert '"load_balancing_group": 1' in caplog .text
333
333
cli (["--server-address" , server_addr_ipv6 , "namespace" , "add" , "--subsystem" , subsystem , "--nsid" , "8" , "--rbd-pool" , pool , "--rbd-image" , image , "--load-balancing-group" , "1" , "--force" ])
334
- assert f"Adding namespace 8 to { subsystem } , load balancing group 1 : Successful" in caplog .text
334
+ assert f"Adding namespace 8 to { subsystem } : Successful" in caplog .text
335
335
caplog .clear ()
336
336
cli (["--format" , "json" , "namespace" , "list" , "--subsystem" , subsystem , "--nsid" , "8" ])
337
337
assert '"load_balancing_group": 1' in caplog .text
@@ -340,7 +340,7 @@ def test_add_namespace_same_image(self, caplog, gateway):
340
340
caplog .clear ()
341
341
img_name = f"{ image } _test"
342
342
cli (["namespace" , "add" , "--subsystem" , subsystem , "--rbd-pool" , pool , "--rbd-image" , img_name , "--size" , "16MiB" , "--load-balancing-group" , "1" , "--rbd-create-image" , "--load-balancing-group" , "1" ])
343
- assert f"Adding namespace 5 to { subsystem } , load balancing group 1 : Successful" in caplog .text
343
+ assert f"Adding namespace 5 to { subsystem } : Successful" in caplog .text
344
344
caplog .clear ()
345
345
cli (["namespace" , "add" , "--subsystem" , subsystem , "--rbd-pool" , pool , "--rbd-image" , img_name , "--size" , "16MiB" , "--load-balancing-group" , "1" , "--rbd-create-image" , "--load-balancing-group" , "1" ])
346
346
assert f"RBD image { pool } /{ img_name } is already used by a namespace" in caplog .text
@@ -351,7 +351,7 @@ def test_add_namespace_same_image(self, caplog, gateway):
351
351
assert f"you can find the offending namespace by using" in caplog .text
352
352
caplog .clear ()
353
353
cli (["namespace" , "add" , "--subsystem" , subsystem , "--rbd-pool" , pool , "--rbd-image" , img_name , "--load-balancing-group" , "1" , "--force" ])
354
- assert f"Adding namespace 6 to { subsystem } , load balancing group 1 : Successful" in caplog .text
354
+ assert f"Adding namespace 6 to { subsystem } : Successful" in caplog .text
355
355
assert f"RBD image { pool } /{ img_name } is already used by a namespace" in caplog .text
356
356
assert f'will continue as the "force" argument was used' in caplog .text
357
357
@@ -435,7 +435,7 @@ def test_resize_namespace(self, caplog, gateway):
435
435
assert f"Failure resizing namespace using NSID { nsid } on { subsystem } : Can't find namespace" in caplog .text
436
436
caplog .clear ()
437
437
cli (["namespace" , "add" , "--subsystem" , subsystem , "--nsid" , nsid , "--rbd-pool" , pool , "--rbd-image" , image , "--uuid" , uuid , "--force" , "--load-balancing-group" , "1" ])
438
- assert f"Adding namespace 1 to { subsystem } , load balancing group 1 : Successful" in caplog .text
438
+ assert f"Adding namespace 1 to { subsystem } : Successful" in caplog .text
439
439
caplog .clear ()
440
440
cli (["namespace" , "resize" , "--subsystem" , subsystem , "--nsid" , "3" , "--size" , "6GiB" ])
441
441
assert f"Resizing namespace 3 in { subsystem } to 6144 MiB: Successful" in caplog .text
@@ -823,7 +823,7 @@ def test_create_subsystem_ana(self, caplog, gateway):
823
823
def test_add_namespace_ana (self , caplog , gateway ):
824
824
caplog .clear ()
825
825
cli (["namespace" , "add" , "--subsystem" , subsystem , "--rbd-pool" , pool , "--rbd-image" , image , "--load-balancing-group" , anagrpid ])
826
- assert f"Adding namespace { nsid } to { subsystem } , load balancing group { anagrpid } : Successful" in caplog .text
826
+ assert f"Adding namespace { nsid } to { subsystem } : Successful" in caplog .text
827
827
assert "Allocated cluster name='cluster_context_2_0'" in caplog .text
828
828
caplog .clear ()
829
829
cli (["--format" , "json" , "namespace" , "list" , "--subsystem" , subsystem , "--nsid" , nsid ])
0 commit comments