Skip to content

Commit

Permalink
Merge pull request #4478 from wazuh/fix/4299-reliability-test-python3…
Browse files Browse the repository at this point in the history
….7-4.5.3

Adapt reliability test to run with python 3.7
  • Loading branch information
davidjiglesias authored Sep 12, 2023
2 parents 0162d87 + 1002022 commit 480d357
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ All notable changes to this project will be documented in this file.
Wazuh commit: TBD \
Release report: TBD

### Changed

- Updated the cluster master logs reliability test to run with python 3.7 [#4445](https://github.com/wazuh/wazuh-qa/pull/4478) \- (Tests)

### Fixed

- Enhancing the handling of authd and remoted simulators in case of restart failures ([#Wazuh-jenkins#3487](https://github.com/wazuh/wazuh-qa/pull/4205)) \- (Tests)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ artifacts_path = '/docs/agent_groups'

with open(cluster_log_files) as file:
for line in file.readlines():
if result := logs_format.search(line):
result = logs_format.search(line)
if result:
if 'Worker' in result.group(1):
name = re.search('.*Worker (.*?)]', result.group(1)).group(1)
if name not in all_managers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ def test_check_logs_order_master(artifacts_path):

with open(cluster_log_files) as file:
for line in file.readlines():
if result := logs_format.search(line):
result = logs_format.search(line)
if result:
node_name = result.group(1)
if 'Worker' in node_name:
name = re.search('.*Worker (.*?)]', node_name).group(1)
Expand Down

0 comments on commit 480d357

Please sign in to comment.