Pass dhcp_client in renew_lease()

Tempest patch (I55f7cfb004169369ca63d1a691811eaed3155414)
removing the dependency of config value of dhcp_client in remote_client
renew_lease() method.

User of this method needs to pass the dhcp_client explicitly as arg.

Change-Id: Ia0390a915a612d5613e4dec7867f2c841e06a386
Depends-On: I55f7cfb004169369ca63d1a691811eaed3155414
This commit is contained in:
ghanshyam 2017-03-06 08:05:02 +00:00 committed by Kobi Samoray
parent 0a62f86ffa
commit b708ab48a6
1 changed files with 4 additions and 2 deletions

View File

@ -173,7 +173,8 @@ class TestDnsSearchDomainBasicOps(dmgr.TopoDeployScenarioManager):
self.assertEqual(subnet[DNS_SEARCH_DOMAIN],
self.dns_search_domain)
# renew dhcp lease to force dns_search_domain update too
sshc.renew_lease(floatingip['fixed_ip_address'])
sshc.renew_lease(floatingip['fixed_ip_address'],
dhcp_client=CONF.scenario.dhcp_client)
sshc.exec_command(ping_cmd)
def _test_host_can_be_resolved(self):
@ -194,7 +195,8 @@ class TestDnsSearchDomainBasicOps(dmgr.TopoDeployScenarioManager):
subnet = subnet.get('subnet', subnet)
self.assertEqual(subnet[DNS_SEARCH_DOMAIN], '')
# renew dhcp lease to force dns_search_domain update too
sshc.renew_lease(floatingip['fixed_ip_address'])
sshc.renew_lease(floatingip['fixed_ip_address'],
dhcp_client=CONF.scenario.dhcp_client)
self.assertRaises(exceptions.SSHExecCommandFailed,
sshc.exec_command,
ping_cmd)