ansible / molecule

Molecule aids in the development and testing of Ansible content: collections, playbooks and roles
https://ansible.readthedocs.io/projects/molecule/
MIT License
3.88k stars 662 forks source link

Directory attribute disallowed for verifier #3686

Closed jsf9k closed 2 years ago

jsf9k commented 2 years ago

Issue Type

Molecule and Ansible details

$ ansible --version && molecule --version
ansible [core 2.12.9]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/jeremy_frasier/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/jeremy_frasier/.pyenv/versions/3.10.7/envs/ansible-role-clamav/lib/python3.10/site-packages/ansible
  ansible collection location = /home/jeremy_frasier/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/jeremy_frasier/.pyenv/versions/ansible-role-clamav/bin/ansible
  python version = 3.10.7 (main, Sep  8 2022, 13:34:47) [GCC 12.2.0]
  jinja version = 3.1.2
  libyaml = True
molecule 4.0.2 using python 3.10 
    ansible:2.12.9
    delegated:4.0.2 from molecule
    docker:2.1.0 from molecule_docker requiring collections: community.docker>=3.0.2 ansible.posix>=1.4.0

Molecule installation method (one of):

Ansible installation method (one of):

Detail any linters or test runners used:

Just molecule + testinfra.

Desired Behavior

The molecule schema check should allow for a directory key immediately under verifier in the molecule.yml file.

Actual Behaviour

The molecule schema check incorrectly reports an error when there is a directory key immediately under verifier in the molecule.yml file.

Please see here for an example of the erroneous behavior.

davedittrich commented 2 years ago

I think you can close this now. :)