Hardcode slave name in failover acceptance test

The tests are passing fqdn instead of devops name to get_pacemaker_resource_location
method; for now we can hardcode name of the controller because it 100% binded in
preparation test case

Change-Id: Icd2ca75543830e46b17c40e999e61aa47b33038a
Closes-bug: 1679550
This commit is contained in:
Vladimir Khlyunev 2017-04-04 12:59:28 +04:00
parent c7e4ca4f21
commit 55627d3e5c
1 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ class FailoverGroup1(TestBasic):
'found {} nodes!'.format(len(controllers)))
target_controllers = self.fuel_web.get_pacemaker_resource_location(
controllers[0]['fqdn'], 'vip__management')
'slave-01', 'vip__management')
assert_equal(len(target_controllers), 1,
'Expected 1 controller with "vip__management" resource '
@ -201,7 +201,7 @@ class FailoverGroup1(TestBasic):
for agent in neutron_agents:
target_controllers = self.fuel_web.get_pacemaker_resource_location(
controllers[0]['fqdn'], agent['resource'])
'slave-01', agent['resource'])
assert_true(len(target_controllers) >= 1,
"Didn't find controllers with "
"running {0} on it".format(agent['name']))