Skip to content

Commit

Permalink
fix(#4880): Fixing tags and validations
Browse files Browse the repository at this point in the history
  • Loading branch information
pro-akim committed Jan 26, 2024
1 parent 768a3cb commit 507e376
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions deployability/modules/testing/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
class ExtraVars(BaseModel):
"""Extra vars for testing module."""
component: Literal['manager', 'agent']
dependencies: list[str]
dependencies: list[str] | None = None
wazuh_version: str
wazuh_revision: str
wazuh_branch: str | None = None
Expand All @@ -15,7 +15,7 @@ class InputPayload(ExtraVars):
"""Input payload for testing module."""
tests: list[str]
inventory: Path
dependencies: list[str]
dependencies: list[str] = []
cleanup: bool = True

@field_validator('tests', mode='before')
Expand All @@ -25,6 +25,7 @@ def validate_tests(cls, value) -> list[str]:
value = value.split(',')
return value

@field_validator('inventory', mode='before')
def validate_inventory(cls, value) -> Path:
"""Validate inventory path."""
if not Path(value).exists():
Expand Down

0 comments on commit 507e376

Please sign in to comment.