Closed avictor0826 closed 2 years ago
@avictor0826 is this fixed by https://github.com/ansible-community/molecule/commit/c04706c66a9f345473be31e40fde2085c8918452 ? :)
@mnaser that is exactly what i was hoping for.. thanks @TheLastProject for the fix.. closing the issue.
Issue Type
Molecule and Ansible details
Molecule installation method (one of):
Ansible installation method (one of):
Detail any linters or test runners used:
Desired Behavior
A snippet of molecule.yml we use
Molecule.yml schema validation should recognize the
credentials
field and amolecule lint
should not error outActual Behaviour
When i run
molecule lint
i get the below failure messageThe issue is because the
molecule.json
here doesnt recognizecredentials
as a field nor does it allow additionalPropertiesthe
registry.credentials
is an allowed, if not expected, field in the cookiecuttercreate.yml
in themolecule-docker
as given hereSince we use a docker registry which doesnt have anonymous access, it is necessary for us to furnish the credentials. Even if this could be done by having a seperate
create.yml
it would mean a lot of work refactoring the roles and also we want to stick with the cookiecutter playbooks for molecule testings to keep ourselves up to date with the newest features.Proposed fix
Add the
credentials
into the molecule schema so that it is recognized in themolecule.json
Or we could set the"additionalProperties": true,
to allow these fieldsPlease let me know if there is any other details required or any help required in fixing this.