Skip to content

Commit

Permalink
refactor(#1915): update FIM tests according to new Rsync changes
Browse files Browse the repository at this point in the history
* fix: Changes log messages and organize variables

* fix: import variables

* add: delete conf deprecated

* fix: Order of messages

* add: spaces recommended

* rm: conf deprecated

* rm: logs deprecated

* rf: fix messages and callbacks

* rf: remove hardcoded marks

* fix: log message to Windows

* rf: add test to validate registry key limit

* rf: test_registry_limit_full for registry values

* add: new test_registry_key_limit_values

* rm: unused lines

* rf: test_registry_limit_values - update docu

* rf: test_registry_limit_capacity_alerts - fix docu

* rf: test_registr_limit_values - fix documentation

* rf: test_registry_value_limit_full - fix docu

* rf: test_registry_key_limit_full - fix docu

* rf: fix format of key_limit_full

* rf: fix syscheck_event_windows.json

* rm: Skip fixed

* rm: variables name to DB.

* add: variable error and archives.log to Windows.

* Change owner to root

* Fx:Update msg to detect that fim scan was finish

* add: Migration of methods.

* fix: Change messages- Remove skips- Change field name of events.

* skíp: Tier 2 has to refactor required.

* fix: Change log messages - Remove a callback.

* fix: Add file created to check events.

* fix: Check fim_registry event component not exists.

* add: Check that Audit is started when working with whodata.

* fix: Check files created - Add callback of sync initial scan - Remove spaces.

* fix: Check asserts - Remove duplicates variables

* fix test_sync_max_eps for scheduled mode

* add: new test_sync_max_eps for realtime/whodata

* rf: extract common functions and messages

* rf: update wazuh_conf and remove invalid test

* rf: fix test_max_eps.py

* rf: fix wait_for_fim_start_function

* rf: fix test_max_eps for realtime file events

* rf: fix callback

* Fx: Apply Pycodestyle

* rf: fix callback an fim_local_internal_options

* rf: fix codestyle to adhere to pep8

* rf: added whodata cases for test_max_eps

* rf: fix whodata callback for windows

* rf: skipped test because of jenkins behaviour

* Apply suggestions from code review

Co-authored-by: Cami Romero <37776796+CamiRomero@users.noreply.github.com>

* rf: fix variables name in functions

* rf: fix find_value_in_list function

* rf: fix pycodestyle

* rf: remove hardcoded timeouts

* rf: remove skip to test on Jenkins

* refac: disable unneeded fim modules

* fix: fix indentation

* test: skip test_registry_responses_win3

* fix: modify config yml file

* rf: extracted error messages

* fix: added local_internal_options, extracted error messages and fixed key creation

* style: fix to adhere to pep8

* fix: Fix timeout

* rm: remove unnecesary section in test cases

* style: Fix spacing and line lenght

* fix: Modify CB_REGISTRY_DBSYNC_NO_DATA

* fix: Path  check in find_value_in_event_list

* fix: Callbacks to detect fim_registry_key/value

* fix: update imports to module.fim.utils

* rm: Delete unused file fim_synchronization.py

* add: registry_integrity_event callbacks

* fix: event detection in test_sync_enabled_win32

* fix: Callback get registry_key or registry_value

* style: removed whitespaces

* style: Modify comments and Documentation

Co-authored-by: Dámaris  <seyla.gomez@wazuh.com>

* style: rename variable

* rm: Delete unused functions

* rm: Delete duplicated fixture

* fix: Add deleted _create_regular functions

* fix import errors

* fix: Callback CB_INODE_ENTRIES_PATH_COUNT

* fix(#3036): fix file_limit configs

* docu(#3036): update tests min version

* fix(#3036): fix test_registry_limit configs

* docu(#3036): fix min_version

* fix(#3036): CB registry_key_limit_full

* fix(#3036): fix test_file_limit_no_limit callback

* fix(#3036): add local_internal_options to tests

* fix(#3036): test_registry_key_full cb and key

* feat(#3053): add callbacks to fim.event_monitor

* feat(#3053): add fixtures to fim conftest

* feat(#3053): add test_sync_overlap test skeleton

* refactor(#3053): move CBs to fim.event_monitor

* fix(#3053): add new case to test_sync_overlap

* fix(#3053): fix truncate_monitored_files fixture

* feat(#3053): add create_files_in_folder fixture

* docu(#3053): fix test_sync_interval docu and style

* style(#3053): fix blank lines in conftest.py

* docu(#3053): update changelog.md

* style(#3053): fix spacing and indentations

* style(#3053): update spacing and indentation

* fix(#3053): fix config format to work on macOS

* fix(#3053): fix config format to work on macOS

* fix(#3053): update spacing in configuration

* fix(#3053): remove unnecesary list conversion

* refactor(#3036): move CB and import to modules.fim

* docs(#3036): add fixture documentation in tests

* fix(#3036): update config with correct values

* style(#3036): fix spacing in yaml conf files

* fix(#3036): fix config yaml spacing

* style(#3036): fix style and indentations

* fix(#3036): fix wazuh_conf.yaml spacing

* docs(#3036): update changelog.md

* fix(#3053): fix and add cases test_sync_overlap

* refactor(#3053): extract variables and callbacks

* docs(#3053): update changelog.md

* style(#3053): fix spacing

* fix(#3053): add monitored_dir parameter to test

* fix(#3053): fix invalid max_interval value test

* fix(#3036): increase test_max_eps created files

* docu(#3053): update event_monitor documentation

* docu(#3053): fix fim.event_monitor docu

* refactor(#3036): cleaned up callbacks

* style(#3036): removed trailing whitespace

* feat(#3053): add new callbacks

* feat(#3053): new test_sync_time module

* fix(#3053): remove unused callbacks

* docu(#3053): update test_sync_time docu

* style(#3053): fix test_sync_time spacing

* style(#3053): fix test_sync_time spacing

* docu(#3036): update chengelog.md

* docs(#3053): update tests documentation

* style(#3053): remove whitespaces

* docs(#3053): added comments and docu

* style(#3053): fixed indentation issue

* refactor(#1915): refactor fim framework

* fix(#1915): fix imports

* style(#1915): fix spacing and indentations

* fix(#1915): add missing fixture

* style(#1915): fix spacing in yaml files

* fix(#1915): fix callbacks and fixture import

* refactor(#1915): move callbacks to event_monitor

* refactor(#1915): update callback imports

* style(#1915): fix indentation and spacing

* feat(#1915):  update callbacks and functions

* refactor(#1915): update imports from fim framework

* fix(#1915): fix regular_file_cud function

* fix(#1915): fix delete_file usage instances

* fix(#1915): fix test_max_eps

* style(#1915): fix indentation and whitespaces

* fix(#1915): skip test_max_eps module

* fix(#1915): replace removed fixture

* fix(#1915): fix test_synchronize_integrity conf

* fix(#1915): fix test_restrict_valid scheduled mode

* style(#1915): fix test_restrict_valid conf spacing

* style(#1915): remove confs redundant quotes

* fix(#1915): fix test_restrict_valid cases

* fix(#1915): fix windows test cases

* chore: bump version to 4.6

* fix(#1915): revert merge  'master' into dev branch"

This reverts commit bbedbc9, reversing
changes made to 469828c.

* fix(#1915): remove duplicated fixture

* fix(#1915): add delay for difffolder deletion

* style(#1915): fix whitespaces and file names

* fix(#1915): remove redundant vars and functions

* style(#1915): improve documentation

* fix(#1915): extract duplicated function

* docs(#1915): improve documentation

* fix(#1915): remove unneeded file

* chore(#1915): remove unused imports

---------

Co-authored-by: Deblintrake09 <amicalizzi2005@gmail.com>
Co-authored-by: camila <camiromero100@gmail.com>
Co-authored-by: Cami Romero <37776796+CamiRomero@users.noreply.github.com>
Co-authored-by: jmv74211 <jmv74211@gmail.com>
  • Loading branch information
5 people authored and mauromalara committed Mar 2, 2023
1 parent 5d988ea commit 61e29d6
Show file tree
Hide file tree
Showing 87 changed files with 3,562 additions and 1,555 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Release report: TBD

### Added

- Add tests with new options to avoid FIM synchronization overlapping. ([#3318](https://github.com/wazuh/wazuh-qa/pull/3318)) \- (Framework + tests)
- Add Logcollector millisecond granularity support test case ([#3910](https://github.com/wazuh/wazuh-qa/pull/3910)) \- (Tests)
- Add Windows System folders FIM monitoring tests ([#3720](https://github.com/wazuh/wazuh-qa/pull/3720)) \- (Tests)
- Add 'test_whodata_policy_changes' tests ([#3627](https://github.com/wazuh/wazuh-qa/pull/3627)) \- (Framework + Tests)
Expand All @@ -19,6 +20,8 @@ Release report: TBD

### Changed

- Update FIM test to new FIM DBSync process ([#2728](https://github.com/wazuh/wazuh-qa/pull/2728)) \- (Framework + Tests)
- Update file_limit and registry_limit tests ([#3280](https://github.com/wazuh/wazuh-qa/pull/3280)) \- (Tests)
- Change expected timestamp for proftpd analysisd test predecoder test case ([#3900](https://github.com/wazuh/wazuh-qa/pull/3900)) \- (Tests)
- Skip test_large_changes test module ([#3783](https://github.com/wazuh/wazuh-qa/pull/3783)) \- (Tests)
- Update report_changes tests ([#3405](https://github.com/wazuh/wazuh-qa/pull/3405)) \- (Tests)
Expand Down
1 change: 0 additions & 1 deletion deps/wazuh_testing/wazuh_testing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
WAZUH_CONF_PATH = os.path.join(WAZUH_PATH, 'etc', 'ossec.conf')
WAZUH_LOGS_PATH = os.path.join(WAZUH_PATH, 'logs')
CLIENT_KEYS_PATH = os.path.join(WAZUH_PATH, 'etc' if platform.system() == 'Linux' else '', 'client.keys')
DB_PATH = os.path.join(WAZUH_PATH, 'queue', 'db')
QUEUE_DB_PATH = os.path.join(WAZUH_PATH, 'queue', 'db')
QUEUE_SOCKETS_PATH = os.path.join(WAZUH_PATH, 'queue', 'sockets')
WAZUH_DB_SOCKET_PATH = os.path.join(QUEUE_DB_PATH, 'wdb')
Expand Down
Loading

0 comments on commit 61e29d6

Please sign in to comment.