Merge "Run podified tobiko background test on tripleo topologies"

This commit is contained in:
Zuul 2025-02-06 16:01:47 +00:00 committed by Gerrit Code Review
commit a9e3b653c5

View File

@ -25,6 +25,7 @@ from tobiko import config
from tobiko.openstack import neutron from tobiko.openstack import neutron
from tobiko.openstack import nova from tobiko.openstack import nova
from tobiko.openstack import topology from tobiko.openstack import topology
from tobiko.podified import _openshift
from tobiko import rhosp from tobiko import rhosp
from tobiko.shell import files from tobiko.shell import files
from tobiko.shell import sh from tobiko.shell import sh
@ -190,8 +191,10 @@ class TripleoTopology(rhosp.RhospTopology):
def check_or_start_background_vm_ping(self, server_ip): def check_or_start_background_vm_ping(self, server_ip):
if CONF.tobiko.tripleo.run_background_ping_in_pod: if CONF.tobiko.tripleo.run_background_ping_in_pod:
tobiko.skip_test("Running background ping in the POD " # this fails if `oc` (openshift client) is not available
"is not implemented yet") # so, if `run_background_ping_in_pod` is true, make sure `oc` is
# available
_openshift.check_or_start_tobiko_ping_command(server_ip)
else: else:
tripleo_nova.check_or_start_background_vm_ping(server_ip) tripleo_nova.check_or_start_background_vm_ping(server_ip)