Molecule scenario
A named Molecule test setup, configured in molecule/<name>/molecule.yml, that fixes the driver, platforms, provisioner and verifier for one test run.
In more detail
The default scenario lives in molecule/default. It runs a sequence of phases: create the test instance, converge the role onto it, verify the result and destroy the instance. A converge playbook applies the role and verification tasks check it.
Related terms
- Molecule — A testing framework for Ansible roles that creates a disposable test machine, applies the role, checks the result and destroys the machine.
- Molecule driver — The Molecule setting that decides where test instances run, such as containers, virtual machines or an existing machine.
- converge — To bring a machine to the described state; in Molecule, the phase that applies the role to the test instance.
- verifier — The Molecule setting and phase that checks the converged test instance really shows the results the role promises.
- Molecule provisioner — The Molecule setting naming the tool that applies the role to the test instance, which is Ansible.
Taught in
- Testing With Molecule — Ansible Configuration Management at Scale