-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
894e66c
commit 872f900
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
tests/system/test_cluster/test_agent_groups/data/guess_group_messages_master.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
wazuh-master: | ||
- regex: ".*Agent 'AGENT_ID' with file 'merged.mg' MD5 .*" | ||
path: "/var/ossec/logs/ossec.log" | ||
timeout: 30 | ||
- regex: ".*Group assigned: 'GROUP_ID'" | ||
path: "/var/ossec/logs/ossec.log" | ||
timeout: 10 | ||
- regex: ".*Agent 'AGENT_ID' group is 'GROUP_ID'" | ||
path: "/var/ossec/logs/ossec.log" | ||
timeout: 10 |
18 changes: 18 additions & 0 deletions
18
tests/system/test_cluster/test_agent_groups/data/guess_group_messages_worker.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
wazuh-worker1: | ||
- regex: ".*Sending message to master node: '{\"daemon_name\":\"remoted\",\"message\":{\"command\":\"assigngroup\",\"parameters\":{\"agent\":\"AGENT_ID\",\"md5\":.*" | ||
path: "/var/ossec/logs/ossec.log" | ||
timeout: 30 | ||
- regex: ".*Message received from master node: '{\"error\":0,\"message\":\"ok\",\"data\":{\"group\":\"GROUP_ID\"}}'" | ||
path: "/var/ossec/logs/ossec.log" | ||
timeout: 10 | ||
- regex: ".*Agent 'AGENT_ID' group is 'GROUP_ID'" | ||
path: "/var/ossec/logs/ossec.log" | ||
timeout: 10 | ||
wazuh-master: | ||
- regex: ".*Agent 'AGENT_ID' with file 'merged.mg' MD5 .*" | ||
path: "/var/ossec/logs/ossec.log" | ||
timeout: 30 | ||
- regex: ".*Group assigned: 'GROUP_ID'" | ||
path: "/var/ossec/logs/ossec.log" | ||
timeout: 10 |