-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor testing: extend plugin tests, get rid of scripts (#305)
* WIP * module test work * roles *should* run? * use devel orb for now * docker-compose => docker compose * fix "not a tty errors" * try limiting to cgroupv1 * final fixes * what the fuck * use 3 executors for module tests * lower further * aa * cleanup molecule config and galaxy.yml * update documentation
- Loading branch information
Showing
42 changed files
with
499 additions
and
754 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
dependency: | ||
name: galaxy | ||
|
||
driver: | ||
name: podman | ||
|
||
provisioner: | ||
name: ansible | ||
env: {} | ||
# Cannot enable pipelining for podman at this time: | ||
# https://github.com/ansible-community/molecule-podman/issues/2 | ||
#ANSIBLE_PIPELINING: false | ||
inventory: | ||
group_vars: | ||
all: | ||
# Versions to use, passed in from Tox | ||
step_cli_version: ${STEP_CLI_VERSION} | ||
step_ca_version: ${STEP_CA_VERSION} | ||
|
||
scenario: | ||
test_sequence: | ||
- destroy | ||
- dependency | ||
- syntax | ||
- create | ||
- prepare | ||
- converge | ||
- idempotence | ||
- check # also run check mode in regular tests | ||
- side_effect | ||
- verify | ||
- destroy | ||
|
||
verifier: | ||
name: ansible |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
# Module deps, useful for editor intellisense, etc. | ||
ansible-core==2.15.1 | ||
# Requirements for developing this collectio | ||
# Includes utilities, CLI helpers and so on | ||
|
||
# Linting & Formatting | ||
ansible-lint==6.17.2 | ||
pylint==2.17.4 | ||
autopep8==2.0.2 | ||
pre-commit==3.3.3 | ||
|
||
# Testing | ||
# Test scenario runner | ||
tox==3.28.0 | ||
|
||
# Utility packages needed for scripts | ||
# Utility packages used in scripts | ||
pyyaml==6.0.0 | ||
packaging==23.1 | ||
|
||
# Also include a version of ansible-core for IDE hints and such. | ||
# Note that this version is independent of the one used in tests, see tox.ini | ||
# and /tests | ||
ansible-core==2.15.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../../../../requirements-molecule.txt | ||
../../../../tests/roles/requirements.txt |
Oops, something went wrong.