-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding workflow as library function #4925
Adding workflow as library function #4925
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -77,7 +77,7 @@ def _run_tests(cls, test_list: list[str], ansible: Ansible, extra_vars: ExtraVar | |||
""" | |||
for test in test_list: | |||
rendering_var = {**extra_vars, 'test': test} | |||
template = str(ansible.playbooks_path / cls._test_template) | |||
template = str(ansible.testing_playbook_path / cls._test_template) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that the playbooks are inside the test module I think the playbooks path should be defined in the module itself. The same applies for the provision
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done af65f61
@@ -19,7 +19,7 @@ tasks: | |||
with: | |||
path: python3 | |||
args: | |||
- test.py | |||
- /home/akim/Desktop/wazuh-qa/deployability/modules/testing/main.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove personal paths from the example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 0c156f8
Description
Adding setup file and changing directories in order to create Workflow as a library option
Testing performed
Paths of playbooks were added inside of each module and relative paths were fixed.