Skip to content

Commit

Permalink
fix: Fix QACTL configuration template validation #1723
Browse files Browse the repository at this point in the history
  • Loading branch information
jmv74211 committed Aug 24, 2021
1 parent 445d2f8 commit 965a815
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion deps/wazuh_testing/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
'tools/macos_log/log_generator.m',
'qa_ctl/deployment/dockerfiles/*',
'qa_ctl/deployment/vagrantfile_template.txt',
'qa_ctl/provisioning/wazuh_deployment/templates/preloaded_vars.conf.j2'
'qa_ctl/provisioning/wazuh_deployment/templates/preloaded_vars.conf.j2',
'data/qactl_conf_validator_schema.json'
]
},
entry_points={
Expand Down
3 changes: 2 additions & 1 deletion deps/wazuh_testing/wazuh_testing/scripts/qa_ctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@


def validate_conf(configuration):
schema_file = 'qactl_conf_validator_schema.json'
data_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', 'data')
schema_file = os.path.join(data_path, 'qactl_conf_validator_schema.json')

with open(os.path.join(_data_path, schema_file), 'r') as f:
schema = json.load(f)
Expand Down

0 comments on commit 965a815

Please sign in to comment.