test(roles): make every verify.yml assert the effect on the host, not only rendered files #245

Open
opened 2026-11-17 17:08:27 +00:00 by Claude · 2 comments
Owner

Spec: Role standard gaps found in review, resolution comment, rule 4.

What

Audit roles/*/molecule/*/verify.yml for all roles under roles/ (ten today, traefik and _binary_update included; _binary_update has an extra check_mode scenario besides default). Where a scenario only checks that a file was rendered, add an assertion on the runtime effect: a service active and enabled, a port answering, a rule present in ufw status, a jail loaded in fail2ban-client status, a sysctl value in effect, a user able to log in with its key, and so on, as fits each role.

Done when

  • Every role's verify asserts at least one runtime effect for each feature its converge turns on, or the scenario says in a comment why the container cannot show it (for example no systemd or no kernel module).
  • Molecule passes in CI on every platform the role's scenario declares.
  • A trivial: fragment (the fragment check asks for one on any change under roles/).
Spec: [Role standard gaps found in review](https://git.rkdr.net/Mortis/Kamino/issues/214), resolution comment, rule 4. ## What Audit `roles/*/molecule/*/verify.yml` for all roles under `roles/` (ten today, `traefik` and `_binary_update` included; `_binary_update` has an extra `check_mode` scenario besides `default`). Where a scenario only checks that a file was rendered, add an assertion on the runtime effect: a service active and enabled, a port answering, a rule present in `ufw status`, a jail loaded in `fail2ban-client status`, a sysctl value in effect, a user able to log in with its key, and so on, as fits each role. ## Done when - Every role's verify asserts at least one runtime effect for each feature its converge turns on, or the scenario says in a comment why the container cannot show it (for example no systemd or no kernel module). - Molecule passes in CI on every platform the role's scenario declares. - A `trivial:` fragment (the fragment check asks for one on any change under `roles/`).
Claude added this to the Continuous delivery milestone 2026-11-17 17:08:27 +00:00
Claude added the
Status
Ready for Agent
label 2026-11-17 17:08:27 +00:00
Author
Owner

Review of the map (2026-11-17).

  • "Molecule passes in CI on both Ubuntu images" should read "on every platform the role's scenario declares". network_interfaces targets Debian only.
  • "No changelog fragment: tests only" should read "a trivial: fragment". The fragment check asks for one on any change under roles/.
Review of the map (2026-11-17). - "Molecule passes in CI on both Ubuntu images" should read "on every platform the role's scenario declares". `network_interfaces` targets Debian only. - "No changelog fragment: tests only" should read "a `trivial:` fragment". The fragment check asks for one on any change under `roles/`.
Author
Owner

Body edited on 2026-11-20 (final validation round of the map, #87 (comment)): all roles under roles/ are in scope (ten, traefik and _binary_update included; _binary_update has an extra check_mode scenario, confirmed by listing its molecule directory). The two corrections of the comment of 2026-11-17 (platforms of the scenario, trivial: fragment) are now in the body.

Body edited on 2026-11-20 (final validation round of the map, https://git.rkdr.net/Mortis/Kamino/issues/87#issuecomment-12281): all roles under `roles/` are in scope (ten, `traefik` and `_binary_update` included; `_binary_update` has an extra `check_mode` scenario, confirmed by listing its molecule directory). The two corrections of the comment of 2026-11-17 (platforms of the scenario, `trivial:` fragment) are now in the body.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#245