tobiko/roles/tobiko-run/vars/test-workflow-faults.yaml
Federico Ressi ad94fe92b1 Handle maxfail pytest option from InfraRed plugin
This allows to specify PyTest options depending on the workflow step
For instance in the faults workflow step below option is used:
  --maxfail 1

The option can be forced for all speps with below InfraRed plugin option:

 --pytest-maxfail <N>

For more details about pytest options please have a look to pytest help page:

  tox -e py3 -- --help

Change-Id: I3146819b5f80fa4768ea38032cc8e69dc7b44f18
2022-01-26 10:30:57 +01:00

34 lines
899 B
YAML

---
test_workflow_steps:
- tox_description: 'create workload resources'
tox_envlist: scenario
tox_step_name: create_resources
tox_environment:
TOBIKO_PREVENT_CREATE: no
- tox_description: 'run sanity test cases before disruptive test cases'
tox_envlist: sanity
tox_step_name: before_faults
tox_environment:
TOBIKO_PREVENT_CREATE: no
- tox_description: 'run disruptive test cases'
tox_envlist: faults
tox_step_name: faults
tox_environment:
TOBIKO_PREVENT_CREATE: no
pytest_maxfail: 1
- tox_description: 'run sanity test cases after disruptive test cases'
tox_envlist: sanity
tox_step_name: after_faults
tox_environment:
TOBIKO_PREVENT_CREATE: no
- tox_description: 'verify workload resources'
tox_envlist: scenario
tox_step_name: verify_resources
tox_environment:
TOBIKO_PREVENT_CREATE: yes