Esempio n. 1
0
 def f():
     UnityHostIpPort.create(t_rest(), 'Host_1', '1.1.1.1')
Esempio n. 2
0
 def test_delete_success(self):
     ip_port = UnityHostIpPort(cli=t_rest(), _id='HostNetworkAddress_10')
     resp = ip_port.delete()
     assert_that(resp.is_ok(), equal_to(True))
Esempio n. 3
0
 def test_create_success(self):
     ip_port = UnityHostIpPort.create(t_rest(), 'Host_9', '1.1.1.1')
     assert_that(ip_port.address, equal_to('1.1.1.1'))
     assert_that(ip_port.type, equal_to(HostPortTypeEnum.IPv4))
     assert_that(ip_port.existed, equal_to(True))
Esempio n. 4
0
 def test_properties(self):
     ip_port = UnityHostIpPort(cli=t_rest(), _id='HostNetworkAddress_1')
     assert_that(ip_port.host, instance_of(UnityHost))
     assert_that(ip_port.address, equal_to('10.244.209.90'))
     assert_that(ip_port.type, equal_to(HostPortTypeEnum.IPv4))
Esempio n. 5
0
 def test_delete_success(self):
     ip_port = UnityHostIpPort(cli=t_rest(), _id='HostNetworkAddress_10')
     resp = ip_port.delete()
     assert_that(resp.is_ok(), equal_to(True))
Esempio n. 6
0
 def f():
     UnityHostIpPort.create(t_rest(), 'Host_1', '1.1.1.1')
Esempio n. 7
0
 def test_create_success(self):
     ip_port = UnityHostIpPort.create(t_rest(), 'Host_9', '1.1.1.1')
     assert_that(ip_port.address, equal_to('1.1.1.1'))
     assert_that(ip_port.type, equal_to(HostPortTypeEnum.IPv4))
     assert_that(ip_port.existed, equal_to(True))