InstanceHa seperate from HA tests
Change-Id: I373ec078e03107c7ec528886e76e5141eaf618fb
This commit is contained in:
parent
44e5cf62bb
commit
4767016bdc
6
roles/tobiko-run/vars/test-workflow-faults-iha.yaml
Normal file
6
roles/tobiko-run/vars/test-workflow-faults-iha.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
|
||||
test_workflow_steps:
|
||||
- tox_description: 'run disruptive test cases'
|
||||
tox_envlist: instanceha
|
||||
tox_step_name: instanceha
|
@ -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
|
||||
|
0
tobiko/tests/faults/iha/__init__.py
Normal file
0
tobiko/tests/faults/iha/__init__.py
Normal file
29
tobiko/tests/faults/iha/test_cloud_recovery.py
Normal file
29
tobiko/tests/faults/iha/test_cloud_recovery.py
Normal 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
10
tox.ini
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user