From caecd65eb09e6184546e78c9cee863b430371142 Mon Sep 17 00:00:00 2001 From: Deblintrake09 Date: Mon, 30 Jan 2023 16:04:12 -0300 Subject: [PATCH] style(#1915): fix test_restrict_valid conf spacing --- .../test_restrict/data/wazuh_conf.yaml | 343 +++++++++--------- 1 file changed, 171 insertions(+), 172 deletions(-) diff --git a/tests/integration/test_fim/test_files/test_restrict/data/wazuh_conf.yaml b/tests/integration/test_fim/test_files/test_restrict/data/wazuh_conf.yaml index cf56eb84e5..5d318bbf3a 100644 --- a/tests/integration/test_fim/test_files/test_restrict/data/wazuh_conf.yaml +++ b/tests/integration/test_fim/test_files/test_restrict/data/wazuh_conf.yaml @@ -1,201 +1,200 @@ ---- # conf 1 - tags: - - valid_empty + - valid_empty apply_to_modules: - - test_restrict_valid + - test_restrict_valid sections: - - section: syscheck - elements: - - disabled: - value: 'no' - - frequency: - value: 2 - - directories: - value: TEST_DIRECTORIES - attributes: - - check_all: 'yes' - - FIM_MODE - - restrict: "" - - section: sca - elements: - - enabled: - value: 'no' - - section: rootcheck - elements: - - disabled: - value: 'yes' - - section: wodle - attributes: - - name: 'syscollector' - elements: - - disabled: - value: 'yes' + - section: syscheck + elements: + - disabled: + value: 'no' + - frequency: + value: 2 + - directories: + value: TEST_DIRECTORIES + attributes: + - check_all: 'yes' + - FIM_MODE + - restrict: "" + - section: sca + elements: + - enabled: + value: 'no' + - section: rootcheck + elements: + - disabled: + value: 'yes' + - section: wodle + attributes: + - name: syscollector + elements: + - disabled: + value: 'yes' # conf 2 - tags: - - valid_regex - - valid_regex1 + - valid_regex + - valid_regex1 apply_to_modules: - - test_restrict_valid + - test_restrict_valid sections: - - section: syscheck - elements: - - disabled: - value: 'no' - - frequency: - value: 2 - - directories: - value: TEST_DIRECTORIES - attributes: - - check_all: 'yes' - - FIM_MODE - - restrict: ".restricted$" - - section: sca - elements: - - enabled: - value: 'no' - - section: rootcheck - elements: - - disabled: - value: 'yes' - - section: wodle - attributes: - - name: 'syscollector' - elements: - - disabled: - value: 'yes' + - section: syscheck + elements: + - disabled: + value: 'no' + - frequency: + value: 2 + - directories: + value: TEST_DIRECTORIES + attributes: + - check_all: 'yes' + - FIM_MODE + - restrict: ".restricted$" + - section: sca + elements: + - enabled: + value: 'no' + - section: rootcheck + elements: + - disabled: + value: 'yes' + - section: wodle + attributes: + - name: syscollector + elements: + - disabled: + value: 'yes' # conf 3 - tags: - - valid_regex - - valid_regex2 + - valid_regex + - valid_regex2 apply_to_modules: - - test_restrict_valid + - test_restrict_valid sections: - - section: syscheck - elements: - - disabled: - value: 'no' - - frequency: - value: 2 - - directories: - value: TEST_DIRECTORIES - attributes: - - check_all: 'yes' - - FIM_MODE - - restrict: "^restricted" - - section: sca - elements: - - enabled: - value: 'no' - - section: rootcheck - elements: - - disabled: - value: 'yes' - - section: wodle - attributes: - - name: 'syscollector' - elements: - - disabled: - value: 'yes' + - section: syscheck + elements: + - disabled: + value: 'no' + - frequency: + value: 2 + - directories: + value: TEST_DIRECTORIES + attributes: + - check_all: 'yes' + - FIM_MODE + - restrict: "^restricted" + - section: sca + elements: + - enabled: + value: 'no' + - section: rootcheck + elements: + - disabled: + value: 'yes' + - section: wodle + attributes: + - name: syscollector + elements: + - disabled: + value: 'yes' # conf 4 - tags: - - valid_regex - - valid_regex3 + - valid_regex + - valid_regex3 apply_to_modules: - - test_restrict_valid + - test_restrict_valid sections: - - section: syscheck - elements: - - disabled: - value: 'no' - - frequency: - value: 2 - - directories: - value: TEST_DIRECTORIES - attributes: - - check_all: 'yes' - - FIM_MODE - - restrict: "filerestricted|other_restricted$" - - section: sca - elements: - - enabled: - value: 'no' - - section: rootcheck - elements: - - disabled: - value: 'yes' - - section: wodle - attributes: - - name: 'syscollector' - elements: - - disabled: - value: 'yes' + - section: syscheck + elements: + - disabled: + value: 'no' + - frequency: + value: 2 + - directories: + value: TEST_DIRECTORIES + attributes: + - check_all: 'yes' + - FIM_MODE + - restrict: "filerestricted|other_restricted$" + - section: sca + elements: + - enabled: + value: 'no' + - section: rootcheck + elements: + - disabled: + value: 'yes' + - section: wodle + attributes: + - name: syscollector + elements: + - disabled: + value: 'yes' # conf 5 - tags: - - valid_regex_incomplete_unix + - valid_regex_incomplete_unix apply_to_modules: - - test_restrict_valid + - test_restrict_valid sections: - - section: syscheck - elements: - - disabled: - value: 'no' - - frequency: - value: 2 - - directories: - value: TEST_DIRECTORIES - attributes: - - check_all: 'yes' - - FIM_MODE - - restrict: "^/testdir1/f|^/testdir1/subdir/f|^/testdir2/f|^/testdir2/subdir/f" - - section: sca - elements: - - enabled: - value: 'no' - - section: rootcheck - elements: - - disabled: - value: 'yes' - - section: wodle - attributes: - - name: 'syscollector' - elements: - - disabled: - value: 'yes' + - section: syscheck + elements: + - disabled: + value: 'no' + - frequency: + value: 2 + - directories: + value: TEST_DIRECTORIES + attributes: + - check_all: 'yes' + - FIM_MODE + - restrict: "^/testdir1/f|^/testdir1/subdir/f" + - section: sca + elements: + - enabled: + value: 'no' + - section: rootcheck + elements: + - disabled: + value: 'yes' + - section: wodle + attributes: + - name: syscollector + elements: + - disabled: + value: 'yes' # conf 6 - tags: - - valid_regex_incomplete_win + - valid_regex_incomplete_win apply_to_modules: - - test_restrict_valid + - test_restrict_valid sections: - - section: syscheck - elements: - - disabled: - value: 'no' - - frequency: - value: 2 - - directories: - value: TEST_DIRECTORIES - attributes: - - check_all: 'yes' - - FIM_MODE - - restrict: "^c:\\testdir1\\f|^c:\\testdir1\\subdir\\f|^c:\\testdir2\\f|^c:\\testdir2\\subdir\\f" - - section: sca - elements: - - enabled: - value: 'no' - - section: rootcheck - elements: - - disabled: - value: 'yes' - - section: wodle - attributes: - - name: 'syscollector' - elements: - - disabled: - value: 'yes' + - section: syscheck + elements: + - disabled: + value: 'no' + - frequency: + value: 2 + - directories: + value: TEST_DIRECTORIES + attributes: + - check_all: 'yes' + - FIM_MODE + - restrict: "^c:\\testdir1\\f|^c:\\testdir1\\subdir\\f" + - section: sca + elements: + - enabled: + value: 'no' + - section: rootcheck + elements: + - disabled: + value: 'yes' + - section: wodle + attributes: + - name: syscollector + elements: + - disabled: + value: 'yes'