def test_iscsi_initiator_create(self): host = UnityHost(cli=t_rest(), _id='Host_9') type = HostInitiatorTypeEnum.ISCSI iqn = "iqn.1993-08.org.debian:01:a4f95ed14d65" initiator = UnityHostInitiator.create(t_rest(), iqn, host, type) assert_that(initiator, instance_of(UnityHostInitiator)) assert_that(initiator.initiator_id, equal_to(iqn))
def test_fc_initiator_create(self): host = UnityHost(cli=t_rest(), _id='Host_9') type = HostInitiatorTypeEnum.FC wwn = "50:00:14:40:47:B0:0C:44:50:00:14:42:D0:0C:44:10" initiator = UnityHostInitiator.create(t_rest(), wwn, host, type) assert_that(initiator, instance_of(UnityHostInitiator)) assert_that(initiator.initiator_id, equal_to(wwn))
def test_iscsi_initiator_create(self): host = UnityHost(cli=t_rest(), _id='Host_9') type = HostInitiatorTypeEnum.ISCSI iqn = "iqn.1993-08.org.debian:01:a4f95ed14d65" initiator = UnityHostInitiator.create(t_rest(), iqn, host, type) assert_that(initiator, instance_of(UnityHostInitiator)) assert_that(initiator.initiator_id, equal_to(iqn))
def test_fc_initiator_create(self): host = UnityHost(cli=t_rest(), _id='Host_9') type = HostInitiatorTypeEnum.FC wwn = "50:00:14:40:47:B0:0C:44:50:00:14:42:D0:0C:44:10" initiator = UnityHostInitiator.create(t_rest(), wwn, host, type) assert_that(initiator, instance_of(UnityHostInitiator)) assert_that(initiator.initiator_id, equal_to(wwn))
def f(): UnityHostInitiator.create(t_rest(), iqn, host, type)
def f(): UnityHostInitiator.create(t_rest(), iqn, host, type)