Skip to content

Commit

Permalink
Merge pull request #2641 from ssbarnea/fix/extensive
Browse files Browse the repository at this point in the history
Mark some functional tests as extensive

Reviewed-by: https://github.com/apps/ansible-zuul
  • Loading branch information
ansible-zuul[bot] authored Apr 8, 2020
2 parents dfea7ef + 4819294 commit c65488c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 8 deletions.
11 changes: 11 additions & 0 deletions molecule/test/functional/test_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def driver_name(request):
return request.param


@pytest.mark.extensive
@pytest.mark.parametrize(
"scenario_to_test, driver_name, scenario_name",
[
Expand All @@ -58,6 +59,7 @@ def test_command_check(scenario_to_test, with_scenario, scenario_name):
pytest.helpers.run_command(cmd)


@pytest.mark.extensive
@pytest.mark.parametrize(
"scenario_to_test, driver_name, scenario_name",
[
Expand All @@ -73,6 +75,7 @@ def test_command_cleanup(scenario_to_test, with_scenario, scenario_name):
pytest.helpers.run_command(cmd)


@pytest.mark.extensive
@pytest.mark.parametrize(
"scenario_to_test, driver_name, scenario_name",
[
Expand All @@ -88,6 +91,7 @@ def test_command_converge(scenario_to_test, with_scenario, scenario_name):
pytest.helpers.run_command(cmd)


@pytest.mark.extensive
@pytest.mark.parametrize(
"scenario_to_test, driver_name, scenario_name",
[
Expand Down Expand Up @@ -167,6 +171,7 @@ def test_command_dependency_shell(
assert os.path.isdir(dependency_role)


@pytest.mark.extensive
@pytest.mark.parametrize(
"scenario_to_test, driver_name, scenario_name",
[
Expand All @@ -182,6 +187,7 @@ def test_command_destroy(scenario_to_test, with_scenario, scenario_name):
pytest.helpers.run_command(cmd)


@pytest.mark.extensive
@pytest.mark.parametrize(
"scenario_to_test, driver_name, scenario_name",
[
Expand Down Expand Up @@ -209,6 +215,7 @@ def test_command_init_scenario(temp_dir, driver_name, skip_test):
pytest.helpers.init_scenario(temp_dir, driver_name)


@pytest.mark.extensive
@pytest.mark.parametrize(
"scenario_to_test, driver_name, scenario_name",
[
Expand Down Expand Up @@ -325,6 +332,7 @@ def test_command_login(scenario_to_test, with_scenario, login_args, scenario_nam
pytest.helpers.login(login_args, scenario_name)


@pytest.mark.extensive
@pytest.mark.parametrize(
"scenario_to_test, driver_name, scenario_name",
[
Expand All @@ -344,6 +352,7 @@ def test_command_prepare(scenario_to_test, with_scenario, scenario_name):
pytest.helpers.run_command(cmd)


@pytest.mark.extensive
@pytest.mark.parametrize(
"scenario_to_test, driver_name, scenario_name",
[
Expand All @@ -359,6 +368,7 @@ def test_command_side_effect(scenario_to_test, with_scenario, scenario_name):
pytest.helpers.run_command(cmd)


@pytest.mark.extensive
@pytest.mark.parametrize(
"scenario_to_test, driver_name, scenario_name",
[
Expand Down Expand Up @@ -388,6 +398,7 @@ def test_command_test(scenario_to_test, with_scenario, scenario_name, driver_nam
pytest.helpers.test(driver_name, scenario_name)


@pytest.mark.extensive
@pytest.mark.parametrize(
"scenario_to_test, driver_name, scenario_name",
[
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ filterwarnings =
ignore::DeprecationWarning:cookiecutter
# remove once https://github.com/pytest-dev/pytest-cov/issues/327 is released
ignore::pytest.PytestWarning:pytest_cov
markers =
extensive: marks tests that we want to skip by default, as they are indirectly covered by other tests

[flake8]
# do not add excludes for files in repo
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ setenv =
# -n auto used only on unit as is not supported by functional yet
# html report is used by Zuul CI to display reports
unit: PYTEST_ADDOPTS=molecule/test/unit/ {env:_EXTRAS} {env:PYTEST_ADDOPTS:-n auto}
functional: PYTEST_ADDOPTS=molecule/test/functional/ {env:_EXTRAS} {env:PYTEST_ADDOPTS:}
functional: PYTEST_ADDOPTS=molecule/test/functional/ {env:_EXTRAS} {env:PYTEST_ADDOPTS:-k "not extensive"}
deps =
ansible28: ansible>=2.8,<2.9
ansible29: git+https://github.com/ansible/[email protected]
Expand Down
14 changes: 7 additions & 7 deletions zuul.d/layout.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
vars:
tox_envlist: py36-ansible28-functional
tox_environment:
PYTEST_REQPASS: 70
PYTEST_REQPASS: 37

- job:
name: molecule-tox-py36-ansible29-unit
Expand All @@ -82,7 +82,7 @@
vars:
tox_envlist: py36-ansible29-functional
tox_environment:
PYTEST_REQPASS: 70
PYTEST_REQPASS: 37

- job:
name: molecule-tox-py37-ansible28-unit
Expand All @@ -99,7 +99,7 @@
vars:
tox_envlist: py37-ansible28-functional
tox_environment:
PYTEST_REQPASS: 70
PYTEST_REQPASS: 37

- job:
name: molecule-tox-py37-ansible29-unit
Expand All @@ -116,7 +116,7 @@
vars:
tox_envlist: py37-ansible29-functional
tox_environment:
PYTEST_REQPASS: 70
PYTEST_REQPASS: 37

- job:
name: molecule-tox-devel-unit
Expand All @@ -137,7 +137,7 @@
vars:
tox_envlist: ansibledevel-functional
tox_environment:
PYTEST_REQPASS: 70
PYTEST_REQPASS: 37

- job:
name: molecule-tox-py37-ansible28-unit
Expand All @@ -150,11 +150,11 @@
- job:
name: molecule-tox-py37-ansible28-functional
parent: molecule-tox-py37
timeout: 7000
timeout: 9000
vars:
tox_envlist: py37-ansible28-functional
tox_environment:
PYTEST_REQPASS: 70
PYTEST_REQPASS: 37

- project:
templates:
Expand Down

0 comments on commit c65488c

Please sign in to comment.