Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,7 @@ runner = "uv-venv-lock-runner"
skip_install = false
commands_pre = []
commands = [
["pre-commit", "run", "-a"],
["bash", "{tox_root}/tools/generate-templates.sh"],
["rm", "-rf", "test/roles"]
["pre-commit", "run", "-a"]
]

[tool.tox.env.pkg]
Expand Down
87 changes: 0 additions & 87 deletions test/azure/functional/test_azure.py

This file was deleted.

55 changes: 0 additions & 55 deletions test/containers/functional/test_containers.py

This file was deleted.

41 changes: 0 additions & 41 deletions test/docker/test_func.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
"""Functional tests."""

import os
import pathlib
import shutil
import subprocess
from pathlib import Path

Expand All @@ -24,45 +22,6 @@ def format_result(result: subprocess.CompletedProcess):
)


@pytest.mark.skip(reason="broken, fix welcomed")
def test_command_init_and_test_scenario(tmp_path: pathlib.Path, DRIVER: str) -> None:
"""Verify that init scenario works."""
shutil.rmtree(tmp_path, ignore_errors=True)
tmp_path.mkdir(exist_ok=True)

scenario_name = "default"

with change_dir_to(tmp_path):
scenario_directory = tmp_path / "molecule" / scenario_name
cmd = [
"molecule",
"init",
"scenario",
"--driver-name",
DRIVER,
]
result = get_app(tmp_path).run_command(cmd)
assert result.returncode == 0

assert scenario_directory.exists()

# run molecule reset as this may clean some leftovers from other
# test runs and also ensure that reset works.
result = get_app(tmp_path).run_command(
["molecule", "reset"]
) # default scenario
assert result.returncode == 0

result = get_app(tmp_path).run_command(
["molecule", "reset", "-s", scenario_name]
)
assert result.returncode == 0

cmd = ["molecule", "--debug", "test", "-s", scenario_name]
result = get_app(tmp_path).run_command(cmd)
assert result.returncode == 0


@pytest.mark.skip(reason="broken, fix welcomed")
def test_command_static_scenario() -> None:
"""Validate that the scenario we included with code still works."""
Expand Down
59 changes: 0 additions & 59 deletions test/ec2/functional/test_ec2.py

This file was deleted.

63 changes: 0 additions & 63 deletions test/gce/functional/test_func.py

This file was deleted.

46 changes: 0 additions & 46 deletions test/podman/test_func.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
"""Functional tests."""

import os
import pathlib
import subprocess
from pathlib import Path

from conftest import change_dir_to
from molecule import logger
from molecule.app import get_app
from molecule_plugins.podman import __file__ as module_file
Expand All @@ -22,50 +20,6 @@ def format_result(result: subprocess.CompletedProcess):
)


def test_podman_command_init_scenario(tmp_path: pathlib.Path):
"""Verify that init scenario works."""
scenario_name = "default"

with change_dir_to(tmp_path):
scenario_directory = tmp_path / "molecule" / scenario_name
cmd = [
"molecule",
"init",
"scenario",
scenario_name,
"--driver-name",
"podman",
]
result = get_app(tmp_path).run_command(cmd)
assert result.returncode == 0

assert scenario_directory.exists()

# run molecule reset as this may clean some leftovers from other
# test runs and also ensure that reset works.
result = get_app(tmp_path).run_command(
[
"molecule",
"reset",
]
) # default scenario
assert result.returncode == 0

result = get_app(tmp_path).run_command(
[
"molecule",
"reset",
"-s",
scenario_name,
]
)
assert result.returncode == 0

cmd = ["molecule", "--debug", "test", "-s", scenario_name]
result = get_app(tmp_path).run_command(cmd)
assert result.returncode == 0


def test_sample() -> None:
"""Runs the sample scenario present at the repository root."""
result = get_app(Path()).run_command(
Expand Down
Loading
Loading