Added PublicDnsName verification in unit tests
Changed duplicate validation of attribute PrivateDnsName to verify PublicDnsName instead in unit tests. Change-Id: If9282f61a421ee6b79234c75d60b6b2b3dbc1ee1
This commit is contained in:
parent
540249824f
commit
2f640158f9
@ -150,7 +150,7 @@ class InstancesTest(HeatTestCase):
|
||||
expected_ip = return_server.networks['public'][0]
|
||||
self.assertEqual(expected_ip, instance.FnGetAtt('PublicIp'))
|
||||
self.assertEqual(expected_ip, instance.FnGetAtt('PrivateIp'))
|
||||
self.assertEqual(expected_ip, instance.FnGetAtt('PrivateDnsName'))
|
||||
self.assertEqual(expected_ip, instance.FnGetAtt('PublicDnsName'))
|
||||
self.assertEqual(expected_ip, instance.FnGetAtt('PrivateDnsName'))
|
||||
|
||||
self.m.VerifyAll()
|
||||
@ -165,7 +165,7 @@ class InstancesTest(HeatTestCase):
|
||||
expected_ip = return_server.networks['public'][0]
|
||||
self.assertEqual(expected_ip, instance.FnGetAtt('PublicIp'))
|
||||
self.assertEqual(expected_ip, instance.FnGetAtt('PrivateIp'))
|
||||
self.assertEqual(expected_ip, instance.FnGetAtt('PrivateDnsName'))
|
||||
self.assertEqual(expected_ip, instance.FnGetAtt('PublicDnsName'))
|
||||
self.assertEqual(expected_ip, instance.FnGetAtt('PrivateDnsName'))
|
||||
|
||||
self.m.VerifyAll()
|
||||
|
@ -173,7 +173,7 @@ class instancesTest(HeatTestCase):
|
||||
self.assertEqual(expected_ip, instance.FnGetAtt('PublicIp'))
|
||||
self.assertEqual(expected_ip, instance.FnGetAtt('PrivateIp'))
|
||||
self.assertEqual(expected_ip, instance.FnGetAtt('PrivateDnsName'))
|
||||
self.assertEqual(expected_ip, instance.FnGetAtt('PrivateDnsName'))
|
||||
self.assertEqual(expected_ip, instance.FnGetAtt('PublicDnsName'))
|
||||
|
||||
d1 = {'server': self.fc.client.get_servers_detail()[1]['servers'][0]}
|
||||
d1['server']['status'] = vm_status
|
||||
@ -328,6 +328,6 @@ class instancesTest(HeatTestCase):
|
||||
self.assertEqual(expected_ip, instance.FnGetAtt('PublicIp'))
|
||||
self.assertEqual(expected_ip, instance.FnGetAtt('PrivateIp'))
|
||||
self.assertEqual(expected_ip, instance.FnGetAtt('PrivateDnsName'))
|
||||
self.assertEqual(expected_ip, instance.FnGetAtt('PrivateDnsName'))
|
||||
self.assertEqual(expected_ip, instance.FnGetAtt('PublicDnsName'))
|
||||
|
||||
self.m.VerifyAll()
|
||||
|
Loading…
Reference in New Issue
Block a user