diff --git a/docs/molecule-testing.md b/docs/molecule-testing.md index c05e903d9..d1a46f2e9 100644 --- a/docs/molecule-testing.md +++ b/docs/molecule-testing.md @@ -57,7 +57,7 @@ Role defaults are out of scope there, so any path it reads has to be pinned in t `molecule-shared/` holds what would otherwise be duplicated into every role: - `requirements.txt` — the Python packages, for both CI and `just molecule`. -- `requirements.yml` — the external Ansible roles and collections the scenarios need. +- `requirements.yml` — the external Ansible roles and collections the scenarios need. Each scenario symlinks its own `molecule/default/requirements.yml` at this file: Molecule checks for a requirements file at that default path before it will install anything, so pointing at the shared one through `requirements-file` alone is silently ignored. - `vars.yml` — helper container images used for probing, pinned once. They carry `# renovate:` annotations and a custom manager in `.github/renovate.json` keeps them current. A helper image is used to reach a role's container over its own container network. That indirection is deliberate: the roles publish no host port, matching a real deployment, and publishing one for the test would collide between scenarios running in parallel. diff --git a/roles/custom/matrix-alertmanager-receiver/molecule/default/molecule.yml b/roles/custom/matrix-alertmanager-receiver/molecule/default/molecule.yml index a4ef12d6e..f4cc17671 100644 --- a/roles/custom/matrix-alertmanager-receiver/molecule/default/molecule.yml +++ b/roles/custom/matrix-alertmanager-receiver/molecule/default/molecule.yml @@ -6,7 +6,7 @@ dependency: name: galaxy options: - requirements-file: ../../../../../molecule-shared/requirements.yml + requirements-file: requirements.yml force: true driver: name: docker diff --git a/roles/custom/matrix-alertmanager-receiver/molecule/default/requirements.yml b/roles/custom/matrix-alertmanager-receiver/molecule/default/requirements.yml new file mode 120000 index 000000000..1567a5392 --- /dev/null +++ b/roles/custom/matrix-alertmanager-receiver/molecule/default/requirements.yml @@ -0,0 +1 @@ +../../../../../molecule-shared/requirements.yml \ No newline at end of file