Skip to content
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

Add extra parameters variable #530

Merged
merged 1 commit into from
Feb 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/system/fim/common_tasks/create_files.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- block:
- name: Run script generate_files.py on agents | Linux
script: "generate_files.py -c {{ files_config_linux_destination_path }} -o {{ files_generated_output_path }}"
script: "generate_files.py -c {{ files_config_linux_destination_path }} -o {{ files_generated_output_path }} {{ create_script_extra_params }}"
args:
executable: "python3"
chdir: "{{ agents_linux_output_path }}"
Expand All @@ -19,7 +19,7 @@

- block:
- name: Run script generate_files.py on agents | Windows
script: "generate_files.py -c {{ files_config_windows_destination_path }} -o {{ files_generated_output_path }}"
script: "generate_files.py -c {{ files_config_windows_destination_path }} -o {{ files_generated_output_path }} {{ create_script_extra_params }}"
args:
executable: "python"
chdir: "{{ agents_windows_output_path }}"
Expand Down
4 changes: 2 additions & 2 deletions tests/system/fim/common_tasks/delete_files.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- block:
- name: "Delete FIM test files at Wazuh Agents | Linux"
script: "delete_files.py -i {{ files_generated_output_path }} -o {{ files_deleted_output_path }}"
script: "delete_files.py -i {{ files_generated_output_path }} -o {{ files_deleted_output_path }} {{ delete_script_extra_params }}"
args:
executable: "python3"
chdir: "{{ agents_linux_output_path }}"
Expand All @@ -19,7 +19,7 @@

- block:
- name: "Delete FIM test files at Wazuh Agents | Windows"
script: "delete_files.py -i {{ files_generated_output_path }} -o {{ files_deleted_output_path }}"
script: "delete_files.py -i {{ files_generated_output_path }} -o {{ files_deleted_output_path }} {{ delete_script_extra_params }}"
args:
executable: "python"
chdir: "{{ agents_windows_output_path }}"
Expand Down
4 changes: 2 additions & 2 deletions tests/system/fim/common_tasks/modify_files.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- block:
- name: "Modify FIM test files at Wazuh Managers | Linux"
script: "modify_files.py -i {{ files_generated_output_path }} -o {{ files_modified_output_path }}"
script: "modify_files.py -i {{ files_generated_output_path }} -o {{ files_modified_output_path }} {{ modify_script_extra_params }}"
args:
executable: "python3"
chdir: "{{ agents_linux_output_path }}"
Expand All @@ -19,7 +19,7 @@

- block:
- name: "Modify FIM test files at Wazuh Managers | Windows"
script: "modify_files.py -i {{ files_generated_output_path }} -o {{ files_modified_output_path }}"
script: "modify_files.py -i {{ files_generated_output_path }} -o {{ files_modified_output_path }} {{ modify_script_extra_params }}"
args:
executable: "python"
chdir: "{{ agents_windows_output_path }}"
Expand Down
6 changes: 5 additions & 1 deletion tests/system/fim/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,8 @@ alerts_json_path: "/var/ossec/logs/alerts/alerts.json"
agents_results_manager_path: "/opt/agents_files_output"
agents_results_elastic_path: "/opt/agents_files_output" # Path on Manager of the imported results from Agents
missing_alerts_json_path: "missing_alerts_json.txt"
missing_alerts_elasticsearch_path: "missing_alerts_elasticsearch.txt"
missing_alerts_elasticsearch_path: "missing_alerts_elasticsearch.txt"

create_script_extra_params: ""
modify_script_extra_params: ""
delete_script_extra_params: ""