Browse Source

Fix check_controller_pod_status_for_time_period()

The method has the status parameter but then it's not being used
to compare with the obtained status, as 'Running' is always used.

This change replaces the hardcoded status with the status parameter.

Change-Id: I7c716dd11f4ed14a31fd5d5aa4706db136cbbeed
changes/61/823561/1
Jon Uriarte 5 months ago
parent
commit
f79bb312b9
  1. 2
      kuryr_tempest_plugin/tests/scenario/base.py

2
kuryr_tempest_plugin/tests/scenario/base.py

@ -1257,7 +1257,7 @@ class BaseKuryrScenarioTest(manager.NetworkScenarioTest):
while retry_attempts != 0:
time.sleep(time_between_attempts)
for controller_pod in self.get_controller_pod_names():
self.assertEqual("Running", self.get_pod_status(
self.assertEqual(status, self.get_pod_status(
controller_pod,
CONF.kuryr_kubernetes.kube_system_namespace),
'Kuryr controller is not in the %s state' % status

Loading…
Cancel
Save