Running separate tests for each role within a role directory #2951
Unanswered
kaliyugantagonist
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The repo contains several(existing) roles e.g:
In each role, the main.yml has some code and 'include's the files like get, set, delete, etc. e.g: the main.yml for permissions is something like:
Since the roles exist already, I used the following command:
molecule init scenario -r permissions
The converge.yml includes (I believe it simply will invoke the main.yml of this role)
While the molecule test command fails, my main concern is that is it possible to have individual tests for get, set, delete, etc. and also the one for main.yml?
Note: I started to try molecule yesterday, also, I am new to Ansible :)
Beta Was this translation helpful? Give feedback.
All reactions