Skip to content

Commit

Permalink
style(#1915): fix test_restrict_valid conf spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
Deblintrake09 committed Jan 30, 2023
1 parent d6f560f commit caecd65
Showing 1 changed file with 171 additions and 172 deletions.
343 changes: 171 additions & 172 deletions tests/integration/test_fim/test_files/test_restrict/data/wazuh_conf.yaml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit caecd65

Please sign in to comment.