diff --git a/pyproject.toml b/pyproject.toml index 6c8799f41d8..baa16599ac8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -102,7 +102,7 @@ section-order = [ werks = ["werks"] cmc_proto = ["cmc_proto"] testlib = ["tests.testlib"] -integrationtests = ["tests.integration"] +integrationtests = ["tests.agent_plugin_integration", "tests.integration"] compositiontests = ["tests.composition"] unittests = ["tests.unit", "tests.plugins_integration", "tests.update"] uitests = ["tests.gui_crawl", "tests.gui_e2e"] diff --git a/tests/Makefile b/tests/Makefile index 059d138670f..33028c86e7b 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -65,7 +65,7 @@ AGENT_PLUGIN_UNIT_TEST_FILES_PY2 := $(subst agent-plugin-unit,agent-plugin-unit/ $(foreach VERS,$(AGENT_PLUGIN_PYTHON_VERSIONS),test-agent-plugin-unit-py$(VERS)-docker) \ test-bandit test-code-quality test-code-quality-docker test-docker test-docker-docker \ - test-docker-sit test-docker-sit-docker \ + test-integration-agent-plugin test-integration-agent-plugin-docker \ test-format-python test-format-python-docker \ test-format-shell test-format-shell-docker \ format-toml test-format-toml test-format-toml-docker \ @@ -104,8 +104,8 @@ help: @echo "test-cycles-docker - Run cycles check in docker" @echo "test-docker - Run docker tests" @echo "test-docker-docker - Run docker tests in docker" - @echo "test-docker-sit - Run docker system integration tests" - @echo "test-docker-sit-docker - Run docker system integration tests in docker" + @echo "test-integration-agent-plugin - Run agent plugin integration tests" + @echo "test-integration-agent-plugin-docker - Run agent plugin integration tests in docker" @echo "test-format-bazel - Run the Bazel formatting" @echo "test-format-bazel-docker - Run the Bazel formatting in docker" @echo "test-format-python - Run formatting tests" @@ -238,12 +238,12 @@ test-docker: $(SHELLCHECK) -x $(SHELLCHECK_OUTPUT_ARGS) ../docker_image/docker-entrypoint.sh $(PYTEST) -x -T docker --log-cli-level=INFO docker -test-docker-sit-docker: +test-integration-agent-plugin-docker: DOCKER_RUN_ADDOPTS="-v $$HOME/.docker/config.json:$$HOME/.docker/config.json -v $$HOME/.cmk-credentials:$$HOME/.cmk-credentials --network=host -e BRANCH -e HOME -e WORKSPACE -e VERSION -e EDITION" \ - ../scripts/run-in-docker.sh make --quiet test-docker-sit + ../scripts/run-in-docker.sh make --quiet test-integration-agent-plugin -test-docker-sit: - $(PYTEST) -x -T docker_sit --log-cli-level=INFO docker_sit +test-integration-agent-plugin: + $(PYTEST) -x -T agent_plugin_integration --log-cli-level=INFO agent_plugin_integration test-format-python: test-format-python-sort test-format-python-format diff --git a/tests/docker_sit/conftest.py b/tests/agent_plugin_integration/conftest.py similarity index 94% rename from tests/docker_sit/conftest.py rename to tests/agent_plugin_integration/conftest.py index 5cd3a50bafa..d37560af29d 100644 --- a/tests/docker_sit/conftest.py +++ b/tests/agent_plugin_integration/conftest.py @@ -30,4 +30,4 @@ def _checkmk(client: docker.DockerClient) -> Iterator[CheckmkApp]: @pytest.fixture(name="tmp_path_session", scope="session") def _tmp_path_session(tmp_path_factory: pytest.TempPathFactory) -> Path: - return tmp_path_factory.mktemp("docker_sit") + return tmp_path_factory.mktemp("agent_plugin_integration") diff --git a/tests/docker_sit/test_docker_oracle.py b/tests/agent_plugin_integration/test_docker_oracle.py similarity index 100% rename from tests/docker_sit/test_docker_oracle.py rename to tests/agent_plugin_integration/test_docker_oracle.py diff --git a/tests/conftest.py b/tests/conftest.py index 5a15618e86b..28a08d42d4d 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -117,8 +117,8 @@ def pytest_internalerror(excinfo: pytest.ExceptionInfo) -> None: "unit", "pylint", "docker", - "docker_sit", "agent-integration", + "agent_plugin_integration", "agent-plugin-unit", "integration", "integration_redfish",