Example #1
0
 def f():
     dm = VNXMoverRef(mover_id=1, cli=t_nas())
     dm.delete_dns('bb')
Example #2
0
 def test_get_by_name_not_found(self):
     dm = VNXMoverRef(name='server_5', cli=t_nas())
     assert_that(dm.existed, equal_to(False))
Example #3
0
 def test_delete_dns(self):
     dm = VNXMoverRef(mover_id=1, cli=t_nas())
     resp = dm.delete_dns('tt')
     assert_that(resp.is_ok(), equal_to(True))
Example #4
0
 def test_get_not_existed(self):
     dm = VNXMoverRef(mover_id=5, cli=t_nas())
     assert_that(dm.existed, equal_to(False))
Example #5
0
 def test_get_by_name(self):
     dm = VNXMoverRef(name='server_2', cli=t_nas())
     self.verify_dm_ref_1(dm)
Example #6
0
 def test_get(self):
     dm = VNXMoverRef(mover_id=1, cli=t_nas())
     self.verify_dm_ref_1(dm)
Example #7
0
 def test_ethernet_devices(self):
     dm = VNXMoverRef(mover_id=1, cli=t_nas())
     assert_that(len(dm.ethernet_devices), equal_to(4))
Example #8
0
 def test_physical_devices(self):
     dm = VNXMoverRef(mover_id=1, cli=t_nas())
     assert_that(len(dm.physical_devices), equal_to(9))
Example #9
0
 def f():
     dm = VNXMoverRef(mover_id=1, cli=t_nas())
     dm.delete_dns('bb')
Example #10
0
 def test_delete_dns(self):
     dm = VNXMoverRef(mover_id=1, cli=t_nas())
     resp = dm.delete_dns('tt')
     assert_that(resp.is_ok(), equal_to(True))