-
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
DTT1 - Iteration 3 - Test module - Multiple dependencies in InputPayload #4880
Closed
4 tasks done
Tracked by
#4848
Labels
Comments
class ExtraVars(BaseModel):
"""Extra vars for testing module."""
component: Literal['manager', 'agent']
dependencies: list[dict] | None = None
wazuh_version: str
wazuh_revision: str
wazuh_branch: str | None = None
working_dir: str = '/tmp/tests'
class InputPayload(ExtraVars):
"""Input payload for testing module."""
tests: list[str]
inventory: Path
dependency: list[dict] = None # Dict comes component: inventory_path
cleanup: bool = True |
UpdateExecuting the test with some additional prints (for testing purposes)
Using the following command:
It is possible to see:
Complete result
Executing:
The result is:
Where is possible to see:
|
pro-akim
added a commit
that referenced
this issue
Jan 26, 2024
pro-akim
added a commit
that referenced
this issue
Jan 26, 2024
pro-akim
added a commit
that referenced
this issue
Jan 26, 2024
LGTM |
1 similar comment
LGTM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
This issue aims to add support for multiple dependencies in the Test InputPayload
Tasks
InputPayload
&ExtraVars
modelsTester
class to get the IP of every dependency received and configure theExtraVars
with itcomponent_name: inventory_path
)dependencies
argumentThe text was updated successfully, but these errors were encountered: