From 7a4a46829b6aff8958165e6a80fb7eb69d0c098d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20H=C3=B6sel?= Date: Wed, 25 Oct 2023 15:11:37 +0200 Subject: [PATCH] chore: cleanup testing files (#349) minor cleanup --- .config/molecule/config.yml | 2 +- .gitignore | 7 ++----- TODO | 10 ---------- galaxy.yml | 1 - pyproject.toml | 1 - tests/plugins/__init__.py | 0 tests/roles/__init__.py | 0 tests/sanity/__init__.py | 0 8 files changed, 3 insertions(+), 18 deletions(-) delete mode 100644 TODO create mode 100644 tests/plugins/__init__.py create mode 100644 tests/roles/__init__.py create mode 100644 tests/sanity/__init__.py diff --git a/.config/molecule/config.yml b/.config/molecule/config.yml index 6349fa54..c71c2e9f 100644 --- a/.config/molecule/config.yml +++ b/.config/molecule/config.yml @@ -12,7 +12,7 @@ provisioner: inventory: group_vars: all: - # Versions to use, can be passed in from Nox + # Versions to use, can be passed in from pytest step_cli_version: ${STEP_CLI_VERSION:-latest} step_ca_version: ${STEP_CA_VERSION:-latest} diff --git a/.gitignore b/.gitignore index 4737a371..587b531d 100644 --- a/.gitignore +++ b/.gitignore @@ -46,10 +46,7 @@ pip-delete-this-directory.txt # Unit test / coverage reports htmlcov/ .tox/ -.nox/ -.coverage -.coverage.* -.cache +.nox/Nox nosetests.xml coverage.xml *.cover @@ -93,7 +90,7 @@ ipython_config.py .python-version # pipenv -# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.Nox # However, in case of collaboration, if having platform-specific dependencies or dependencies # having no cross-platform support, pipenv may install dependencies that don't work, or not # install all needed dependencies. diff --git a/TODO b/TODO deleted file mode 100644 index c24015b5..00000000 --- a/TODO +++ /dev/null @@ -1,10 +0,0 @@ -pytest-ansible, get familiar with test syntax -1. fixture to set up a dev container with step installed (can be dockerfiled) -2. fixture to set up a ca (per-test maybe?) -3. test uses ansible inventory with container -4. cleanup? - -CI, get nox scenarios (or pytest? circleci integration? coverage?) - -ansible-test local-ca, ensure python version matches -actually check node python in general diff --git a/galaxy.yml b/galaxy.yml index 5d0de528..42f086b7 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -11,7 +11,6 @@ build_ignore: - .yamllint - '*.tar.gz' - .venv -- .tox - .pytest_cache - scripts - .pre-commit-config.yaml diff --git a/pyproject.toml b/pyproject.toml index 5d0f9273..144abf1d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,4 +24,3 @@ max-line-length = 120 [tool.pytest.ini_options] testpaths = ["tests"] -filterwarnings = ['ignore:AnsibleCollectionFinder has already been configured'] diff --git a/tests/plugins/__init__.py b/tests/plugins/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/tests/roles/__init__.py b/tests/roles/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/tests/sanity/__init__.py b/tests/sanity/__init__.py new file mode 100644 index 00000000..e69de29b