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

Merged file correctly generated #4129

Merged
merged 26 commits into from
Sep 14, 2023

Conversation

pro-akim
Copy link
Member

@pro-akim pro-akim commented Apr 26, 2023

Related issue
#3278

Description

Wazuh manager should be able to create merged.mg file in order to share files with group of agents.
In order to do it, when new files are present in any directory in /var/ossec/share/ , those files must be monitored and to be taken in consideration by merged.mg

This test suite tests the correct functioning of the mentioned use case.

Added
-test_correct_merged_file_generation[Check_merged_updated_manager_starts]
-test_correct_merged_file_generation[Check_merged_updated_10_sec]
-test_correct_merged_file_generation[Add_non_zero_file_default_folder_check_merged_created_starts]
-test_correct_merged_file_generation[Add_zero_file_default_folder_check_merged_created_when_manager_starts]
-test_correct_merged_file_generation[Add_non_zero_size_file_default_folder_check_merged_updated_10_sec]
-test_correct_merged_file_generation[Add_non_zero_size_file_TestGroup1_folder_check_merged_updated_manager_starts]
-test_correct_merged_file_generation[Add_non_zero_size_file_TestGroup1_folder_check_merged_updated_10_sec]
-test_correct_merged_file_generation[Add_non_zero_size_file_default_folder_check_merged_updated_10_sec]
-test_correct_merged_file_generation[Add_zero_size_file_TestGroup1_folder_check_merged_updated_manager_starts]
-test_correct_merged_file_generation[Add_zero_size_file_TestGroup1_folder_check_merged_updated_10_sec]
-test_correct_merged_file_generation[Add_serveral_zero_size_file_default_folder_check_merged_updated_manager_starts]
-test_correct_merged_file_generation[Add_serveral_zero_size_file_TestGroup1_folder_check_merged_updated_manager_starts]


Testing performed

Tester Test path Jenkins Local OS Commit Notes
@pro-akim (Developer) ⚫⚫⚫ 🟢🟢🟢 Nothing to highlight
@user (Reviewer) ⚫⚫⚫ ⚫⚫⚫ Nothing to highlight

@pro-akim pro-akim self-assigned this Apr 26, 2023
@pro-akim pro-akim linked an issue Apr 26, 2023 that may be closed by this pull request
1 task
@pro-akim pro-akim requested a review from juliamagan May 3, 2023 08:59
@pro-akim pro-akim force-pushed the 3278-correct_merged_file_generation branch from 5bf367d to f6600e6 Compare May 4, 2023 18:25
@pro-akim pro-akim marked this pull request as draft June 13, 2023 15:32
@pro-akim pro-akim marked this pull request as ready for review June 13, 2023 15:32
@pro-akim pro-akim marked this pull request as draft June 14, 2023 08:15
@pro-akim pro-akim marked this pull request as ready for review June 14, 2023 08:15
@pro-akim pro-akim marked this pull request as draft June 14, 2023 08:26
@pro-akim pro-akim marked this pull request as ready for review June 14, 2023 08:26
@pro-akim pro-akim marked this pull request as draft June 14, 2023 08:29
@pro-akim pro-akim marked this pull request as ready for review June 14, 2023 08:33
@pro-akim pro-akim marked this pull request as draft June 14, 2023 08:36
@pro-akim pro-akim marked this pull request as ready for review June 14, 2023 08:36
@pro-akim pro-akim marked this pull request as draft June 14, 2023 08:56
@pro-akim pro-akim marked this pull request as ready for review June 14, 2023 08:56
@pro-akim
Copy link
Member Author

Update

Fixes done, report is updated

@pro-akim pro-akim requested a review from juliamagan July 17, 2023 17:40
Copy link
Member

@juliamagan juliamagan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add this test to system README, please

@pro-akim
Copy link
Member Author

Update

Changes were done after review.
Tests performed.
Reports updated.

@pro-akim pro-akim requested a review from juliamagan July 21, 2023 13:33
juliamagan
juliamagan previously approved these changes Jul 24, 2023
Copy link
Member

@juliamagan juliamagan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@juliamagan juliamagan dismissed their stale review July 24, 2023 09:36

Changelog conflics

@pro-akim
Copy link
Member Author

pro-akim commented Aug 1, 2023

Update

Merge conflicts already fixed.
Conventional commit unit test is failing because of a wrong commit message format in the past.

juliamagan
juliamagan previously approved these changes Aug 2, 2023
Copy link
Member

@juliamagan juliamagan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@davidjiglesias
Copy link
Member

This PR needs a rebase

@pro-akim pro-akim force-pushed the 3278-correct_merged_file_generation branch 2 times, most recently from 80bcd6a to 175b3bc Compare August 3, 2023 14:05
@jnasselle jnasselle force-pushed the 3278-correct_merged_file_generation branch 2 times, most recently from 8ac8a73 to f9696f5 Compare August 3, 2023 18:28
@jnasselle jnasselle force-pushed the 3278-correct_merged_file_generation branch from f9696f5 to 6247a80 Compare August 3, 2023 18:29
@pro-akim
Copy link
Member Author

pro-akim commented Aug 3, 2023

Update

Rebased with @jnasselle
From 4.5.0 to 4.6.0
Moving issue to pending review

CHANGELOG.md Outdated Show resolved Hide resolved
@pro-akim pro-akim requested a review from juliamagan August 4, 2023 08:12
@pro-akim
Copy link
Member Author

pro-akim commented Aug 4, 2023

Update

Changelog order fixed.
Moved to pending review

juliamagan
juliamagan previously approved these changes Aug 4, 2023
Copy link
Member

@juliamagan juliamagan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pro-akim pro-akim changed the base branch from 4.6.0 to master September 8, 2023 11:39
@pro-akim
Copy link
Member Author

pro-akim commented Sep 8, 2023

Update

Rebased to 4.8.0

@davidjiglesias davidjiglesias merged commit 92b223d into master Sep 14, 2023
@davidjiglesias davidjiglesias deleted the 3278-correct_merged_file_generation branch September 14, 2023 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tests development - Correct merged.mg file generation
3 participants