Exemple #1
0
 def f():
     UnityHostIpPort.create(t_rest(), 'Host_1', '1.1.1.1')
Exemple #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))
Exemple #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))
Exemple #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))
Exemple #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))
Exemple #6
0
 def f():
     UnityHostIpPort.create(t_rest(), 'Host_1', '1.1.1.1')
Exemple #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))