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

Merge 4.7.0 into 4.7.1 #4693

Merged
merged 35 commits into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
5e2ab2a
feat: change system tests docker image
Rebits Oct 25, 2023
21fee7e
feat: remove unnecesary dependencies from roles
Rebits Oct 25, 2023
e5a4458
feat: change base image to dontpanicat/debian
Rebits Oct 27, 2023
d350ead
refac: remve unnecessary while line
Rebits Oct 30, 2023
a3ebbdc
feat: fix configurations file reference
Rebits Oct 30, 2023
b0c87a9
feat: reduce space used by 40 agents cluster env
Rebits Oct 31, 2023
5d9e297
fix: manager_agent env playbook
Rebits Oct 31, 2023
45898f8
Update default vacuum settings in IT
TomasTurina Nov 1, 2023
12b1746
Merge pull request #4671 from wazuh/fix/19964-fix-wazuhdb-test
davidjiglesias Nov 2, 2023
f1494b6
docs: include 4655 changelog
Rebits Nov 2, 2023
85d30b8
fix: cluster log path
Rebits Nov 2, 2023
ee9f26f
Merge pull request #4655 from wazuh/4592-fix-docker-gcc
davidjiglesias Nov 2, 2023
e6c2fcf
docs: update changelog
juliamagan Nov 2, 2023
467c6f1
Revert "docs: update changelog"
juliamagan Nov 2, 2023
1c8b47e
docs: update changelog
juliamagan Nov 2, 2023
0a53868
Merge pull request #4673 from wazuh/enhancement/4672-update-changelog
juliamagan Nov 2, 2023
45e902d
refactor: bump revision
juliamagan Nov 2, 2023
24862cd
Merge pull request #4674 from wazuh/enhancement/4672-bump-revision
juliamagan Nov 2, 2023
d9a3d94
fix(#4674): New container for testing
pro-akim Nov 9, 2023
f5009be
fix(#4682): change in for on
pro-akim Nov 9, 2023
8f83708
fix(#4688): Revert a pattern log in analysisd test
jotacarma90 Nov 10, 2023
748e636
Merge pull request #4688 from wazuh/revert-pattern-log-analysisd
vikman90 Nov 10, 2023
eaf77b4
fix(#4682): Reverse + fixing docs
pro-akim Nov 10, 2023
7337108
fix(#4682): Deprecating installation by repositories
pro-akim Nov 13, 2023
bc35e64
fix(#4682): Readme fix
pro-akim Nov 13, 2023
74e8099
fix(#4682): Readme fix
pro-akim Nov 13, 2023
7b3156d
fix(#4682): agent_auth messages reverse
pro-akim Nov 13, 2023
4d80354
fix(#4682): agent_auth_config fix
pro-akim Nov 13, 2023
d98e795
fix(#4682): Update changelog
pro-akim Nov 13, 2023
85759fe
Merge pull request #4686 from wazuh/bug/4682-One_manager_agent_enviro…
davidjiglesias Nov 13, 2023
7ee8b8e
docs: update changelog
juliamagan Nov 13, 2023
5307fa3
Merge pull request #4690 from wazuh/enhancement/4689-update-changelog
juliamagan Nov 13, 2023
1859a0c
refactor: bump revision
pro-akim Nov 13, 2023
a2b49f8
Merge pull request #4691 from wazuh/enhancement/4689-bump-revision
juliamagan Nov 13, 2023
85a71fb
Merge branch '4.7.0' of github.com:wazuh/wazuh-qa into merge-4.7.0-in…
juliamagan Nov 14, 2023
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
18 changes: 9 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,29 @@ Release report: TBD

## [4.7.0] - TBD

Wazuh commit: TBD \
Release report: TBD

### Added

- Add callbacks and IT tests for Integratord options tag. ([#4166](https://github.com/wazuh/wazuh-qa/pull/4166)) \- (Framework + tests)
- Add vulnerability Detector integration tests for Amazon Linux 2023 ([#4482](https://github.com/wazuh/wazuh-qa/pull/4482)) \- (Core)

### Changed

- Add option to run some logcollector tests isolated (without a manager) [#4226](https://github.com/wazuh/wazuh-qa/pull/4226) \- (Tests + Framework)
- Update code analysis and dependencies known flaws. [#4083](https://github.com/wazuh/wazuh-qa/pull/4083) \- (Tests)
- Revert a pattern log in analysisd test ([#4688](https://github.com/wazuh/wazuh-qa/pull/4688)) \- (Framework)
- Clean environment between basic_cluster tests ([#4656](https://github.com/wazuh/wazuh-qa/pull/4656)) \- (Tests)
- Upgrade gcc version in system tests image ([#4655](https://github.com/wazuh/wazuh-qa/pull/4655)) \- (Framework)
- Add option to run some logcollector tests isolated (without a manager) ([#4226](https://github.com/wazuh/wazuh-qa/pull/4226)) \- (Tests + Framework)
- Update code analysis and dependencies known flaws. ([#4083](https://github.com/wazuh/wazuh-qa/pull/4083)) \- (Tests)
- Update _wazuh_db_ schema database version([#4405](https://github.com/wazuh/wazuh-qa/pull/4405)) \- (Tests)
- Update framework known flaws file ([#4313](https://github.com/wazuh/wazuh-qa/pull/4313)) \- (Tests)

### Fixed

- Deprecate source installation in System Tests ([#4686](https://github.com/wazuh/wazuh-qa/pull/4686)) \- (Framework)
- Update default vacuum settings in IT ([#4671](https://github.com/wazuh/wazuh-qa/pull/4671)) \- (Tests)
- Fix registry wildcards path ([#4400](https://github.com/wazuh/wazuh-qa/pull/4400)) \- (Tests)
- Fix warnings in the rids tests([#4151](https://github.com/wazuh/wazuh-qa/pull/4151)) \- (Framework + Tests)

## [4.6.0] - TBD

Wazuh commit: TBD \
Release report: TBD
## [4.6.0] - 31/10/2023

### Added

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ def check_eps_disabled():

def check_eps_missing_maximum():
"""Check if the eps block has the maximum tag"""
check_analysisd_event(callback=r".*WARNING: The EPS maximum value is missing in the configuration block.*",
check_analysisd_event(callback=r".*WARNING: EPS limit disabled. "
"The maximum value is missing in the configuration block.*",
timeout=T_10)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
-
input: '{"version": 1, "origin": {"module": "api"}, "command": "getconfig", "module": "api", "parameters": {
"section": "internal"}}'
output: '"data":{"wazuh_db":{"commit_time_max":60,"commit_time_min":10,"open_db_limit":64,"worker_pool_size":8,"fragmentation_threshold":80,"fragmentation_delta":5,"free_pages_percentage":5,"max_fragmentation":95,"check_fragmentation_interval":43200}}'
output: '"data":{"wazuh_db":{"commit_time_max":60,"commit_time_min":10,"open_db_limit":64,"worker_pool_size":8,"fragmentation_threshold":75,"fragmentation_delta":5,"free_pages_percentage":0,"max_fragmentation":90,"check_fragmentation_interval":7200}}'
-
name: Get wdb config
test_case:
Expand Down
12 changes: 5 additions & 7 deletions tests/system/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,17 +228,15 @@ in `system/provisioning/<specified_cluster_environment>` path:
ansible-playbook -i inventory.yml playbook.yml
```

If you want to specify a particular branch of the Wazuh repository, you will need to include:
```shell script
ansible-playbook -i inventory.yml playbook.yml --extra-vars='{"wazuh_branch":"v4.3.0-rc1"}'
```
You can also specify a package instead using the `package_repository`, `repository`, `package_version`, `package_revision` parameters:
You can specify a package as `package_repository`, `repository`, `package_version`, `package_revision` parameters:
```shell script
ansible-playbook -i inventory.yml playbook.yml --extra-vars='{"package_repository":"packages", "repository": "4.x", "package_version": "4.4.0", "package_revision": "1"}'
```
In the **basic cluster**, you also have to specify a branch from the Wazuh QA repository.

In the basic cluster, you also have to specify a branch from the Wazuh QA repository.

```shell script
ansible-playbook -i inventory.yml playbook.yml --extra-vars='{"wazuh_branch":"v4.3.0-rc1", "wazuh_qa_branch":"master"}'
ansible-playbook -i inventory.yml playbook.yml --extra-vars='{"package_repository":"packages", "repository": "4.x", "package_version": "4.4.0", "package_revision": "1", "wazuh_qa_branch":"v4.3.0-rc1"}'
```

We use [pytest](https://docs.pytest.org/en/latest/contents.html) to run our cluster system tests. Pytest will
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,44 +22,14 @@
update_cache: yes
cache_valid_time: 3600

- name: "Clone wazuh repository"
git:
repo: "https://github.com/wazuh/wazuh"
dest: /wazuh
version: "{{ wazuh_branch }}"
when: wazuh_branch is defined

- name: Install master
args:
chdir: /wazuh
creates: /var/ossec
environment:
USER_LANGUAGE: "en"
USER_NO_STOP: "y"
USER_INSTALL_TYPE: "server"
USER_DIR: "/var/ossec"
USER_ENABLE_EMAIL: "n"
USER_ENABLE_SYSCHECK: "n"
USER_ENABLE_ROOTCHECK: "n"
USER_ENABLE_OPENSCAP: "n"
USER_WHITE_LIST: "n"
USER_ENABLE_SYSLOG: "y"
USER_ENABLE_AUTHD: "y"
USER_AUTO_START: "y"
USER_UPDATE: "n"
shell: "./install.sh"
when: wazuh_branch is defined

- name: "Get manager package"
ansible.builtin.get_url:
url: "https://{{package_repository}}.wazuh.com/{{repository}}/apt/pool/main/w/wazuh-manager/wazuh-manager_{{package_version}}-{{package_revision}}_amd64.deb"
dest: /tmp/wazuh-manager.deb
when: wazuh_branch is not defined

- name: "Install manager package"
ansible.builtin.apt:
deb: /tmp/wazuh-manager.deb
when: wazuh_branch is not defined

- name: Copy ossec.conf file
copy:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,44 +22,14 @@
update_cache: yes
cache_valid_time: 3600

- name: "Clone wazuh repository"
git:
repo: "https://github.com/wazuh/wazuh"
dest: /wazuh
version: "{{ wazuh_branch }}"
when: wazuh_branch is defined

- name: Install worker
args:
chdir: /wazuh
creates: /var/ossec
environment:
USER_LANGUAGE: "en"
USER_NO_STOP: "y"
USER_INSTALL_TYPE: "server"
USER_DIR: "/var/ossec"
USER_ENABLE_EMAIL: "n"
USER_ENABLE_SYSCHECK: "y"
USER_ENABLE_ROOTCHECK: "y"
USER_ENABLE_OPENSCAP: "y"
USER_WHITE_LIST: "n"
USER_ENABLE_SYSLOG: "y"
USER_ENABLE_AUTHD: "y"
USER_AUTO_START: "y"
USER_UPDATE: "n"
shell: "./install.sh"
when: wazuh_branch is defined

- name: "Get manager package"
ansible.builtin.get_url:
url: "https://{{package_repository}}.wazuh.com/{{repository}}/apt/pool/main/w/wazuh-manager/wazuh-manager_{{package_version}}-{{package_revision}}_amd64.deb"
dest: /tmp/wazuh-manager.deb
when: wazuh_branch is not defined

- name: "Install manager package"
ansible.builtin.apt:
deb: /tmp/wazuh-manager.deb
when: wazuh_branch is not defined

- name: Copy ossec.conf file
copy:
Expand Down
2 changes: 1 addition & 1 deletion tests/system/provisioning/basic_cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ The base environment defined for Docker provisioning is
For running the docker provisioning we must execute the following command:

```shell script
ansible-playbook -i inventory.yml playbook.yml --extra-vars='{"wazuh_branch": "PUT YOUT wazuh/wazuh BRANCH HERE"}'
ansible-playbook -i inventory.yml playbook.yml --extra-vars='{"package_repository":"packages", "repository": "4.x", "package_version": "4.4.0", "package_revision": "1", "wazuh_qa_branch":"v4.3.0-rc1"}'
```

To destroy it, the command is:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,43 +22,14 @@
update_cache: yes
cache_valid_time: 3600

- name: "Clone wazuh repository"
git:
repo: "https://github.com/wazuh/wazuh"
dest: /wazuh
version: "{{ wazuh_branch }}"
when: wazuh_branch is defined

- name: Install agent
args:
chdir: /wazuh
creates: /var/ossec
environment:
USER_LANGUAGE: "en"
USER_NO_STOP: "y"
USER_INSTALL_TYPE: "agent"
USER_DIR: "/var/ossec"
USER_ENABLE_EMAIL: "n"
USER_ENABLE_SYSCHECK: "y"
USER_ENABLE_ROOTCHECK: "y"
USER_ENABLE_OPENSCAP: "y"
USER_WHITE_LIST: "n"
USER_ENABLE_SYSLOG: "y"
USER_ENABLE_AUTHD: "y"
USER_AUTO_START: "y"
shell: "./install.sh"
when: wazuh_branch is defined

- name: "Get agent package"
ansible.builtin.get_url:
url: "https://{{package_repository}}.wazuh.com/{{repository}}/apt/pool/main/w/wazuh-agent/wazuh-agent_{{package_version}}-{{package_revision}}_amd64.deb"
dest: /tmp/wazuh-agent.deb
when: wazuh_branch is not defined

- name: "Install agent package"
ansible.builtin.apt:
deb: /tmp/wazuh-agent.deb
when: wazuh_branch is not defined

- name: Copy ossec.conf file
copy:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,51 +23,21 @@
update_cache: yes
cache_valid_time: 3600

- name: "Clone wazuh repository"
git:
repo: "https://github.com/wazuh/wazuh"
dest: /wazuh
version: "{{ wazuh_branch }}"
when: wazuh_branch is defined

- name: "Clone wazuh-qa repository"
git:
repo: "https://github.com/wazuh/wazuh-qa"
dest: /wazuh-qa
version: "{{ wazuh_qa_branch }}"
depth: '1'

- name: Install master
args:
chdir: /wazuh
creates: /var/ossec
environment:
USER_LANGUAGE: "en"
USER_NO_STOP: "y"
USER_INSTALL_TYPE: "server"
USER_DIR: "/var/ossec"
USER_ENABLE_EMAIL: "n"
USER_ENABLE_SYSCHECK: "n"
USER_ENABLE_ROOTCHECK: "n"
USER_ENABLE_OPENSCAP: "n"
USER_WHITE_LIST: "n"
USER_ENABLE_SYSLOG: "y"
USER_ENABLE_AUTHD: "y"
USER_AUTO_START: "y"
USER_UPDATE: "n"
shell: "./install.sh"
when: wazuh_branch is defined

- name: "Get manager package"
ansible.builtin.get_url:
url: "https://{{package_repository}}.wazuh.com/{{repository}}/apt/pool/main/w/wazuh-manager/wazuh-manager_{{package_version}}-{{package_revision}}_amd64.deb"
dest: /tmp/wazuh-manager.deb
when: wazuh_branch is not defined

- name: "Install manager package"
ansible.builtin.apt:
deb: /tmp/wazuh-manager.deb
when: wazuh_branch is not defined

- name: Copy ossec.conf file
copy:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,51 +23,21 @@
update_cache: yes
cache_valid_time: 3600

- name: "Clone wazuh repository"
git:
repo: "https://github.com/wazuh/wazuh"
dest: /wazuh
version: "{{ wazuh_branch }}"
when: wazuh_branch is defined

- name: "Clone wazuh-qa repository"
git:
repo: "https://github.com/wazuh/wazuh-qa"
dest: /wazuh-qa
version: "{{ wazuh_qa_branch }}"
depth: '1'

- name: Install worker
args:
chdir: /wazuh
creates: /var/ossec
environment:
USER_LANGUAGE: "en"
USER_NO_STOP: "y"
USER_INSTALL_TYPE: "server"
USER_DIR: "/var/ossec"
USER_ENABLE_EMAIL: "n"
USER_ENABLE_SYSCHECK: "y"
USER_ENABLE_ROOTCHECK: "y"
USER_ENABLE_OPENSCAP: "y"
USER_WHITE_LIST: "n"
USER_ENABLE_SYSLOG: "y"
USER_ENABLE_AUTHD: "y"
USER_AUTO_START: "y"
USER_UPDATE: "n"
shell: "./install.sh"
when: wazuh_branch is defined

- name: "Get manager package"
ansible.builtin.get_url:
url: "https://{{package_repository}}.wazuh.com/{{repository}}/apt/pool/main/w/wazuh-manager/wazuh-manager_{{package_version}}-{{package_revision}}_amd64.deb"
dest: /tmp/wazuh-manager.deb
when: wazuh_branch is not defined

- name: "Install manager package"
ansible.builtin.apt:
deb: /tmp/wazuh-manager.deb
when: wazuh_branch is not defined

- name: Copy ossec.conf file
copy:
Expand Down
2 changes: 1 addition & 1 deletion tests/system/provisioning/basic_environment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ The base environment defined for Docker provisioning is
For running the docker provisioning we must execute the following command:

```shell script
ansible-playbook -i inventory.yml playbook.yml --extra-vars='{"wazuh_branch": "PUT YOUT wazuh/wazuh BRANCH HERE"}'
ansible-playbook -i inventory.yml playbook.yml --extra-vars='{"package_repository":"packages", "repository": "4.x", "package_version": "4.4.0", "package_revision": "1"}'
```

To destroy it, the command is:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,43 +22,14 @@
update_cache: yes
cache_valid_time: 3600

- name: "Clone wazuh repository"
git:
repo: "https://github.com/wazuh/wazuh"
dest: /wazuh
version: "{{ wazuh_branch }}"
when: wazuh_branch is defined

- name: Install agent
args:
chdir: /wazuh
creates: /var/ossec
environment:
USER_LANGUAGE: "en"
USER_NO_STOP: "y"
USER_INSTALL_TYPE: "agent"
USER_DIR: "/var/ossec"
USER_ENABLE_EMAIL: "n"
USER_ENABLE_SYSCHECK: "y"
USER_ENABLE_ROOTCHECK: "y"
USER_ENABLE_OPENSCAP: "y"
USER_WHITE_LIST: "n"
USER_ENABLE_SYSLOG: "y"
USER_ENABLE_AUTHD: "y"
USER_AUTO_START: "y"
shell: "./install.sh"
when: wazuh_branch is defined

- name: "Get agent package"
ansible.builtin.get_url:
url: "https://{{package_repository}}.wazuh.com/{{repository}}/apt/pool/main/w/wazuh-agent/wazuh-agent_{{package_version}}-{{package_revision}}_amd64.deb"
dest: /tmp/wazuh-agent.deb
when: wazuh_branch is not defined

- name: "Install agent package"
ansible.builtin.apt:
deb: /tmp/wazuh-agent.deb
when: wazuh_branch is not defined

- name: Copy ossec.conf file
copy:
Expand Down
Loading