Browse Source

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
changes/67/453067/2
Vladimir Khlyunev 5 years ago
parent
commit
55627d3e5c
  1. 4
      fuelweb_test/tests/tests_strength/test_failover_group_1.py

4
fuelweb_test/tests/tests_strength/test_failover_group_1.py

@ -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']))

Loading…
Cancel
Save