InstanceHa seperate from HA tests

Change-Id: I373ec078e03107c7ec528886e76e5141eaf618fb
This commit is contained in:
pinikomarov 2020-08-30 02:57:41 +03:00
parent 44e5cf62bb
commit 4767016bdc
5 changed files with 45 additions and 21 deletions

View File

@ -0,0 +1,6 @@
---
test_workflow_steps:
- tox_description: 'run disruptive test cases'
tox_envlist: instanceha
tox_step_name: instanceha

View File

@ -105,27 +105,6 @@ class DisruptTripleoNodesTest(testtools.TestCase):
cloud_disruptions.reset_ovndb_master_container()
overcloud_health_checks()
@pacemaker.skip_if_instanceha_not_delpoyed
def test_instanceha_evacuation_hard_reset(self):
overcloud_health_checks(passive_checks_only=True)
cloud_disruptions.check_iha_evacuation_hard_reset()
@pacemaker.skip_if_instanceha_not_delpoyed
def test_instanceha_evacuation_network_disruption(self):
overcloud_health_checks(passive_checks_only=True)
cloud_disruptions.check_iha_evacuation_network_disruption()
@pacemaker.skip_if_instanceha_not_delpoyed
def test_instanceha_evacuation_hard_reset_shutoff_instance(self):
overcloud_health_checks(passive_checks_only=True)
cloud_disruptions.check_iha_evacuation_hard_reset_shutoff_instance()
# @pacemaker.skip_if_instanceha_not_delpoyed
# def test_check_instanceha_evacuation_evac_image_vm(self):
# overcloud_health_checks(passive_checks_only=True)
# cloud_disruptions.check_iha_evacuation_evac_image_vm()
# [..]
# more tests to follow
# run health checks

View File

View File

@ -0,0 +1,29 @@
from __future__ import absolute_import
import testtools
from tobiko.tests.faults.ha import cloud_disruptions
from tobiko.tripleo import pacemaker
from tobiko.tripleo import undercloud
@undercloud.skip_if_missing_undercloud
class DisruptTripleoInstanceHaTest(testtools.TestCase):
@pacemaker.skip_if_instanceha_not_delpoyed
def test_instanceha_evacuation_hard_reset(self):
cloud_disruptions.check_iha_evacuation_hard_reset()
@pacemaker.skip_if_instanceha_not_delpoyed
def test_instanceha_evacuation_network_disruption(self):
cloud_disruptions.check_iha_evacuation_network_disruption()
@pacemaker.skip_if_instanceha_not_delpoyed
def test_instanceha_evacuation_hard_reset_shutoff_instance(self):
cloud_disruptions.check_iha_evacuation_hard_reset_shutoff_instance()
# @pacemaker.skip_if_instanceha_not_delpoyed
# def test_check_instanceha_evacuation_evac_image_vm(self):
# overcloud_health_checks(passive_checks_only=True)
# cloud_disruptions.check_iha_evacuation_evac_image_vm()

10
tox.ini
View File

@ -212,6 +212,16 @@ setenv =
RUN_TESTS_EXTRA_ARGS = --serial
[testenv:instanceha]
basepython = {[integration]basepython}
envdir = {[integration]envdir}
passenv = {[integration]passenv}
setenv =
{[integration]setenv}
OS_TEST_PATH = {toxinidir}/tobiko/tests/faults/iha
RUN_TESTS_EXTRA_ARGS = --serial
# --- CI workflow test environments -------------------------------------------
[testenv:infrared]