Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix integrity sync test and config to avoid flaky behavior #4406

Merged
merged 2 commits into from
Aug 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Release report: TBD
- Fix a regex error in the FIM integration tests ([#3061](https://github.com/wazuh/wazuh-qa/issues/3061)) \- (Framework + Tests)
- Fix an error in the cluster performance tests related to CSV parser ([#2999](https://github.com/wazuh/wazuh-qa/pull/2999)) \- (Framework + Tests)
- Fix bug in the framework on migration tool ([#4027](https://github.com/wazuh/wazuh-qa/pull/4027)) \- (Framework)
- Fix test cluster / integrity sync system test and configuration to avoid flaky behavior ([#4406](https://github.com/wazuh/wazuh-qa/pull/4406)) \- (Tests)

## [4.5.1] - TBD

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
timeout_receiving_file: 1
max_zip_size: 52428800 # 50 MB
max_zip_size: 104857600 # 100 MB
min_zip_size: 15728640 # 15 MB
compress_level: 0
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
test_hosts = ['wazuh-master', 'wazuh-worker1', 'wazuh-worker2']
worker_hosts = test_hosts[1:]
test_data_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'data')
configuration = yaml.safe_load(open(os.path.join(test_data_path, 'cluster_json.yml')))
configuration = yaml.safe_load(open(os.path.join(test_data_path, 'cluster_json.yaml')))
messages_path = os.path.join(test_data_path, 'messages.yml')
tmp_path = os.path.join(test_data_path, 'tmp')
inventory_path = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))),
Expand Down Expand Up @@ -262,7 +262,7 @@ def test_zip_size_limit(clean_files, update_cluster_json):
"""
too_big_size = configuration['max_zip_size'] + 1024
big_size = configuration['min_zip_size'] - 1024
big_filenames = {file_prefix + str(i) for i in range(5)}
big_filenames = {file_prefix + str(i) for i in range(10)}

# Create a tmp folder and all files inside in the master node.
host_manager.run_command(test_hosts[0], f"mkdir {tmp_size_test_path}")
Expand Down