fix(roles): refresh apt in the docker and traefik scenarios and apply review round 2
The molecule images ship without apt lists, and --check does not refresh them, so the fresh-host check of docker and traefik could not find curl and wget. Their prepare now refreshes the cache, as pihole's and system_baseline's already do by installing fixtures. The sequence test gets its own class after the platform tests, the check-mode rule is split into guards and README, and the user_management comment sits on the task it explains. Assisted-by: Claude Code
This commit is contained in:
1 parent
3afff00b9b
commit
9ce0fbd433
5 files changed
+42
-30
No files matched your search
+10
-10
@@ -95,16 +95,16 @@ names a check that does not exist yet and its backlog issue.
|
||||
- **Negative tests.** Every validation has one in `verify.yml` (or a file it includes):
|
||||
block/rescue/assert matching the expected error message, run last or failing before any
|
||||
change. *Why:* a bare "it failed" passes for the wrong error. *Held:* review.
|
||||
- **Check mode.** Every scenario runs `check` before and after converge. The only guards are
|
||||
`check_mode: false` on read-only probes and `when: not ansible_check_mode`, alone or as
|
||||
`not ansible_check_mode or <condition>` where the condition shows the task can run, such as a
|
||||
registered result that is not changed; `--check` is the supported preview, and the README says
|
||||
a play-level `check_mode: true` is not supported. A role whose `--check` needs its package
|
||||
installed says so in README Notes and keeps the step; a role that cannot support check mode at
|
||||
all says why there and drops the step, with an exception in the test below. *Why:* check-mode
|
||||
breakage is a frequent fix, and one guard pattern is reviewable. *Held:* Molecule for the run
|
||||
passing, `tests/scripts/test_run_molecule_scenarios.py` for the steps being there; review for
|
||||
the guards.
|
||||
- **Check mode.** Every scenario runs `check` before and after converge. Guards:
|
||||
`check_mode: false` on read-only probes, and `when: not ansible_check_mode`, alone or as
|
||||
`not ansible_check_mode or <condition>` where the condition shows the task can run (such as a
|
||||
registered result that is not changed). README: `--check` is the supported preview and a
|
||||
play-level `check_mode: true` is not supported; a role whose `--check` needs its package
|
||||
installed says so in Notes and keeps the step; a role that cannot support check mode at all
|
||||
says why in Notes and drops the step, which also needs an exception in the test named below.
|
||||
*Why:* check-mode breakage is a frequent fix, and one guard pattern is reviewable. *Held:*
|
||||
Molecule for the run passing, `tests/scripts/test_run_molecule_scenarios.py` for the steps
|
||||
being there; review for the guards.
|
||||
|
||||
## Roles calling roles
|
||||
|
||||
|
||||
Reference in new issue
Block a user