Ejemplo n.º 1
0
 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))
Ejemplo n.º 2
0
 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))
Ejemplo n.º 3
0
 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))
Ejemplo n.º 4
0
 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))
Ejemplo n.º 5
0
 def f():
     UnityHostInitiator.create(t_rest(), iqn, host, type)
Ejemplo n.º 6
0
 def f():
     UnityHostInitiator.create(t_rest(), iqn, host, type)