Example #1
0
 def test_sp_to_node_enum(self):
     sp = UnityStorageProcessor(_id='spa', cli=t_rest())
     assert_that(sp.to_node_enum(), equal_to(NodeEnum.SPA))
     sp = UnityStorageProcessor(_id='spb', cli=t_rest())
     assert_that(sp.to_node_enum(), equal_to(NodeEnum.SPB))
     sp = UnityStorageProcessor(_id='wrong', cli=t_rest())
     assert_that(sp.to_node_enum(), equal_to(NodeEnum.UNKNOWN))
Example #2
0
 def test_sp_to_node_enum(self):
     sp = UnityStorageProcessor(_id='spa', cli=t_rest())
     assert_that(sp.to_node_enum(), equal_to(NodeEnum.SPA))
     sp = UnityStorageProcessor(_id='spb', cli=t_rest())
     assert_that(sp.to_node_enum(), equal_to(NodeEnum.SPB))
     sp = UnityStorageProcessor(_id='wrong', cli=t_rest())
     assert_that(sp.to_node_enum(), equal_to(NodeEnum.UNKNOWN))
Example #3
0
 def test_lun_modify_sp(self):
     lun = UnityLun(_id='sv_4', cli=t_rest())
     sp = UnityStorageProcessor(_id='spb', cli=t_rest())
     lun.modify(sp=sp)
     lun.update()
     assert_that(sp.to_node_enum(), equal_to(NodeEnum.SPB))
Example #4
0
 def test_lun_modify_sp(self):
     lun = UnityLun(_id='sv_4', cli=t_rest())
     sp = UnityStorageProcessor(_id='spb', cli=t_rest())
     lun.modify(sp=sp)
     lun.update()
     assert_that(sp.to_node_enum(), equal_to(NodeEnum.SPB))