Skip to content

Commit 7287d74

Browse files
authored
Merge pull request #218 from wazuh/test/23403-its-report-changes
Added new patterns related to report_changes
2 parents ef917ec + 880029c commit 7287d74

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Diff for: src/wazuh_testing/modules/fim/configuration.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
SYSCHECK_DEBUG = 'syscheck.debug'
77
SYMLINK_SCAN_INTERVAL = 'syscheck.symlink_scan_interval'
88
FILE_MAX_SIZE = 'syscheck.file_max_size'
9+
RT_DELAY = 'syscheck.rt_delay'
910

1011
# File names
1112
LAST_ENTRY_FILE = 'last-entry.gz'

Diff for: src/wazuh_testing/modules/fim/patterns.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
SENDING_FIM_EVENT = r'.*Sending FIM event: .*"type":"event".*'
2121
EVENT_TYPE_ADDED = r'.*Sending FIM event: .*"type":"added".*'
2222
EVENT_TYPE_MODIFIED = r'.*Sending FIM event: .*"type":"modified".*'
23+
EVENT_TYPE_REPORT_CHANGES = r".*Sending FIM event: .*\"content_changes\":\"([^\"]*)\".*"
24+
EVENT_UNABLE_DIFF = r".*Sending FIM event: .*\"content_changes\":\"(Unable to calculate diff due to [^\"]* limit has been reached.)\".*"
2325
EVENT_TYPE_DELETED = r'.*Sending FIM event: .*"type":"deleted".*'
2426
FIM_EVENT_JSON = r'.*Sending FIM event: (.+)$'
2527
FIM_EVENT_RESTRICT = r".*Ignoring entry '(.*?)' due to restriction '.*?'"
@@ -40,8 +42,8 @@
4042
WIN_CONVERT_FOLDER = r".*fim_adjust_path.*Convert '(.*) to '(.*)' to process the FIM events."
4143

4244
DIFF_MAXIMUM_FILE_SIZE = r".*Maximum file size limit to generate diff information configured to \'(\d+) KB\'.*"
43-
DISK_QUOTA_LIMIT_CONFIGURED_VALUE = r'.*Maximum disk quota size limit configured to \'(\d+) KB\'.*'
44-
FILE_EXCEEDS_DISK_QUOTA = r'.*The (.*) of the file size \'(.*)\' exceeds the disk_quota.*'
45+
DIFF_DISK_QUOTA_LIMIT = r'.*Maximum disk quota size limit configured to \'(\d+) KB\'.*'
46+
DISK_QUOTA_LIMIT_REACHED = r'.*The (.*) of the file size \'(.*)\' exceeds the disk_quota.*'
4547
FILE_SIZE_LIMIT_REACHED = r'.*File \'(.*)\' is too big for configured maximum size to perform diff operation\.'
4648
DIFF_FOLDER_DELETED = r'.*Folder \'(.*)\' has been deleted.*'
4749

@@ -50,4 +52,5 @@
5052
ERROR_MSG_DISK_QUOTA_LIMIT = 'Did not receive "Maximum disk quota size limit configured to \'... KB\'." event'
5153
ERROR_MSG_FIM_EVENT_NOT_DETECTED = 'Did not receive expected "Sending FIM event: ..." event.'
5254
ERROR_MSG_FILE_LIMIT_REACHED = 'Did not receive "File ... is too big ... to perform diff operation" event.'
55+
ERROR_MSG_REPORT_CHANGES_EVENT_NOT_DETECTED = 'Did not receive event with \'content_changes\' field.'
5356
ERROR_MSG_FOLDER_DELETED = 'Did not receive expected "Folder ... has been deleted." event.'

0 commit comments

Comments
 (0)