FEAT: Local test harness using Molecule and Kind for Ansible role development and CI #63
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
There is currently no automated testing framework for Ansible roles in this repo. A local test harness should be created using Molecule and Kind (Kubernetes-in-Docker) so that roles can be validated during development and in CI/CD pipelines, with the environment torn down after each run.
Goals
Proposed setup
Molecule
molecule/directory to roles that need testingmolecule-plugins[docker]driver for Linux host rolesmolecule-plugins[delegated]driver targeting a Kind cluster fork8s-*rolescreate → converge → verify → destroyKind
createphase for Kubernetes rolesdestroyphase regardless of test outcomeVerification
ansible.builtin.asserttasks or dedicated Molecule verifier steps to check role outcomesPipeline integration
.forgejo/workflows/) that:molecule testfor each role with a molecule scenarioAcceptance criteria
k8s-*role have a working Molecule scenariomolecule testruns end-to-end locally without manual cleanup