From 5895ff4e67482285d6a643de95f8cc739d4f59b5 Mon Sep 17 00:00:00 2001
From: Slawek Kaplonski <skaplons@redhat.com>
Date: Sun, 15 Mar 2020 00:53:36 +0100
Subject: [PATCH] Skip tests from RebootNodesTest on non TripleO based cloud

Those tests are designed to be run on TripleO based cloud as
requires undercloud node and overcloud nodes.
So lets skip them in e.g. devstack based deployments to make
job in overall to be green.

It also renames this test class to be "RebootTripleoNodesTest"
to better express what are those tests doing.

Change-Id: I0a4e710a14648248c53ba357a6a461bf8da2853f
---
 tobiko/tests/faults/ha/test_cloud_recovery.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tobiko/tests/faults/ha/test_cloud_recovery.py b/tobiko/tests/faults/ha/test_cloud_recovery.py
index ab136c794..76d3fe7e8 100644
--- a/tobiko/tests/faults/ha/test_cloud_recovery.py
+++ b/tobiko/tests/faults/ha/test_cloud_recovery.py
@@ -11,6 +11,7 @@ from tobiko.tripleo import processes
 from tobiko.tripleo import containers
 from tobiko.tripleo import nova
 from tobiko.tripleo import neutron
+from tobiko.tripleo import undercloud
 from tobiko.openstack import stacks
 import tobiko
 
@@ -56,7 +57,8 @@ def check_overcloud_processes_health():
             ).basic_overcloud_processes_running
 
 
-class RebootNodesTest(testtools.TestCase):
+@undercloud.skip_if_missing_undercloud
+class RebootTripleoNodesTest(testtools.TestCase):
 
     """ HA Tests: run health check -> disruptive action -> health check
     disruptive_action: a function that runs some