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.5.2 into 4.6.0 #4348

Merged
merged 14 commits into from
Jul 21, 2023
Merged
Show file tree
Hide file tree
Changes from 12 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
11 changes: 8 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@ All notable changes to this project will be documented in this file.

## [4.6.0] - TBD

Wazuh commit: TBD \
Release report: TBD

rauldpm marked this conversation as resolved.
Show resolved Hide resolved
### Added

- Add IT tests FIM registry monitoring using wildcards. ([#4270](https:/wazuh/wazuh-qa/pull/4270)) \- (Framework + Tests)
- Update schema database version ([#4128](https:/wazuh/wazuh-qa/pull/4128)) \- (Tests)


## [4.5.2] - TBD

Wazuh commit: TBD \
Release report: TBD


## [4.5.1] - TBD

Wazuh commit: TBD \
Expand Down Expand Up @@ -55,6 +59,7 @@ Release report: TBD
- Update Authd force_insert tests ([#3379](https:/wazuh/wazuh-qa/pull/3379)) \- (Tests)
- Update cluster logs in reliability tests ([#2772](https:/wazuh/wazuh-qa/pull/2772)) \- (Tests)
- Use correct version format in agent_simulator tool ([#3198](https:/wazuh/wazuh-qa/pull/3198)) \- (Tools)
- Upgrade PyYAML to 6.0.1. ([#4326](https:/wazuh/wazuh-qa/pull/4326)) \- (Framework)

### Fixed

Expand Down
1 change: 1 addition & 0 deletions deps/wazuh_testing/wazuh_testing/qa_docs/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ predefined_values:
- 4.4.5
- 4.5.0
- 4.5.1
- 4.5.2
- 4.6.0
tags:
- active_response
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pyOpenSSL==19.1.0
pytest-html==3.1.1
pytest==6.2.2 ; python_version <= "3.9"
pytest==7.1.2 ; python_version >= "3.10"
pyyaml==5.4
pyyaml==6.0.1
requests>=2.23.0
scipy>=1.0; platform_system == "Linux" or platform_system == "Darwin" or platform_system=='Windows'
seaborn>=0.11.1; platform_system == "Linux" or platform_system == "Darwin" or platform_system=='Windows'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<!-- Test: invalid regex offset-->
<decoder name="sudo-fields">
<parent>sudo</parent>
<regex offset="after_regex">(\S+)</regex>
<order>boom</order>
</decoder>
Original file line number Diff line number Diff line change
Expand Up @@ -2,77 +2,111 @@
-
name: "Invalid decoder syntax: garbage file"
decoder: "custom_decoder_0.xml"
input: '{"version":1,"origin":{"name":"Integration Test","module":"api"},"command":"log_processing","parameters":{"event": "dummy log","log_format": "syslog","location": "master->/var/log/syslog"}}'
input: >-
{"version":1,"origin":{"name":"Integration Test","module":"api"},"command":"log_processing","parameters":{"event":
"dummy log","log_format": "syslog","location": "master->/var/log/syslog"}}
output_error: 0
output_data_msg: "(1226): Error reading XML file 'etc/decoders/custom_decoder_0.xml': XMLERR: Attribute 'is' has no value. (line 2)."
output_data_msg: >-
(1226): Error reading XML file 'etc/decoders/custom_decoder_0.xml': XMLERR: Attribute 'is' has no value. (line 2).
output_data_codemsg: -1
-
name: "Invalid decoder syntax: no closing XML tag"
decoder: "custom_decoder_1.xml"
input: '{"version":1,"origin":{"name":"Integration Test","module":"api"},"command":"log_processing","parameters":{"event": "dummy log","log_format": "syslog","location": "master->/var/log/syslog"}}'
input: >-
{"version":1,"origin":{"name":"Integration Test","module":"api"},"command":"log_processing","parameters":{"event":
"dummy log","log_format": "syslog","location": "master->/var/log/syslog"}}
output_error: 0
output_data_msg: "(1226): Error reading XML file 'etc/decoders/custom_decoder_1.xml': XMLERR: End of file and some elements were not closed. (line 3)."
output: >-
ata_msg: "(1226): Error reading XML file 'etc/decoders/custom_decoder_1.xml': XMLERR: End of file and some elements
were not closed. (line 3).
output_data_codemsg: -1
-
name: "Invalid decoder syntax: no existing parent"
decoder: "custom_decoder_2.xml"
input: '{"version":1,"origin":{"name":"Integration Test","module":"api"},"command":"log_processing","parameters":{"event": "dummy log","log_format": "syslog","location": "master->/var/log/syslog"}}'
input: >-
{"version":1,"origin":{"name":"Integration Test","module":"api"},"command":"log_processing","parameters":{"event":
"dummy log","log_format": "syslog","location": "master->/var/log/syslog"}}
output_error: 0
output_data_msg: "(2101): Parent decoder name invalid: 'test-parent'."
output_data_codemsg: -1
-
name: "Invalid decoder syntax: no existing attribute"
decoder: "custom_decoder_3.xml"
input: '{"version":1,"origin":{"name":"Integration Test","module":"api"},"command":"log_processing","parameters":{"event": "dummy log","log_format": "syslog","location": "master->/var/log/syslog"}}'
input: >-
{"version":1,"origin":{"name":"Integration Test","module":"api"},"command":"log_processing","parameters":{"event":
"dummy log","log_format": "syslog","location": "master->/var/log/syslog"}}
output_error: 0
output_data_msg: "Invalid element 'invalid_field' for decoder 'decoder'"
output_data_codemsg: -1
-
name: "Invalid decoder syntax: decoder with no name"
decoder: "custom_decoder_4.xml"
input: '{"version":1,"origin":{"name":"Integration Test","module":"api"},"command":"log_processing","parameters":{"event": "dummy log","log_format": "syslog","location": "master->/var/log/syslog"}}'
input: >-
{"version":1,"origin":{"name":"Integration Test","module":"api"},"command":"log_processing","parameters":{"event":
"dummy log","log_format": "syslog","location": "master->/var/log/syslog"}}
output_error: 0
output_data_msg: "(1230): Invalid element in the configuration: 'decoder'."
output_data_codemsg: -1
-
name: "Invalid decoder syntax: regex attribute without order attribute"
decoder: "custom_decoder_5.xml"
input: '{"version":1,"origin":{"name":"Integration Test","module":"api"},"command":"log_processing","parameters":{"event": "dummy log","log_format": "syslog","location": "master->/var/log/syslog"}}'
input: >-
{"version":1,"origin":{"name":"Integration Test","module":"api"},"command":"log_processing","parameters":{"event":
"dummy log","log_format": "syslog","location": "master->/var/log/syslog"}}
output_error: 0
output_data_msg: "(2107): Decoder configuration error: 'test'."
output_data_codemsg: -1
-
name: "Invalid decoder syntax: regex attribute without prematch/program_name/parent attribute"
decoder: "custom_decoder_6.xml"
input: '{"version":1,"origin":{"name":"Integration Test","module":"api"},"command":"log_processing","parameters":{"event": "dummy log","log_format": "syslog","location": "master->/var/log/syslog"}}'
input: >-
{"version":1,"origin":{"name":"Integration Test","module":"api"},"command":"log_processing","parameters":{"event":
"dummy log","log_format": "syslog","location": "master->/var/log/syslog"}}
output_error: 0
output_data_msg: "(2108): No 'prematch' found in decoder: 'test'."
output_data_codemsg: -1
-
name: "Invalid decoder syntax: order attribute without regex attribute"
decoder: "custom_decoder_7.xml"
input: '{"version":1,"origin":{"name":"Integration Test","module":"api"},"command":"log_processing","parameters":{"event": "dummy log","log_format": "syslog","location": "master->/var/log/syslog"}}'
input: >-
{"version":1,"origin":{"name":"Integration Test","module":"api"},"command":"log_processing","parameters":{"event":
"dummy log","log_format": "syslog","location": "master->/var/log/syslog"}}
output_error: 0
output_data_msg: "(2107): Decoder configuration error: 'test'."
output_data_codemsg: -1
-
name: "Invalid decoder syntax: two-level order parenting"
decoder: "custom_decoder_8.xml"
input: '{"version":1,"origin":{"name":"Integration Test","module":"api"},"command":"log_processing","parameters":{"event": "dummy log","log_format": "syslog","location": "master->/var/log/syslog"}}'
input: >-
{"version":1,"origin":{"name":"Integration Test","module":"api"},"command":"log_processing","parameters":{"event":
"dummy log","log_format": "syslog","location": "master->/var/log/syslog"}}
output_error: 0
output_data_msg: "(2101): Parent decoder name invalid: 'name1'."
output_data_codemsg: -1
-
name: "Invalid decoder syntax: invalid plugin_decoder"
decoder: "custom_decoder_9.xml"
input: '{"version":1,"origin":{"name":"Integration Test","module":"api"},"command":"log_processing","parameters":{"event": "dummy log","log_format": "syslog","location": "master->/var/log/syslog"}}'
input: >-
{"version":1,"origin":{"name":"Integration Test","module":"api"},"command":"log_processing","parameters":{"event":
"dummy log","log_format": "syslog","location": "master->/var/log/syslog"}}
output_error: 0
output_data_msg: "(2110): Invalid decoder argument for plugin_decoder: 'INVALID_Decoder'."
output_data_codemsg: -1
-
name: "Invalid decoder syntax: invalid offset"
decoder: "custom_decoder_10.xml"
input: '{"version":1,"origin":{"name":"Integration Test","module":"api"},"command":"log_processing","parameters":{"event": "dummy log","log_format": "syslog","location": "master->/var/log/syslog"}}'
input: >-
{"version":1,"origin":{"name":"Integration Test","module":"api"},"command":"log_processing","parameters":{"event":
"dummy log","log_format": "syslog","location": "master->/var/log/syslog"}}
output_error: 0
output_data_msg: "(2107): Decoder configuration error: 'name'."
output_data_codemsg: -1
-
name: "Invalid decoder syntax: invalid offset"
decoder: "custom_decoder_11.xml"
input: >-
{"version":1,"origin":{"name":"Integration Test","module":"api"},"command":"log_processing","parameters":{"event":
"dummy log","log_format": "syslog","location": "master->/var/log/syslog"}}
output_error: 0
output_data_msg: "ERROR: (2120): Invalid offset value: 'sudo-fields'"
output_data_codemsg: -1
2 changes: 1 addition & 1 deletion tests/system/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ pandas>=1.1.5
psutil==5.6.6
pytest==4.5.0
pytest-html==2.0.1
PyYAML==5.4
PyYAML==6.0.1
testinfra==5.0.0
2 changes: 1 addition & 1 deletion tests/system/test_jwt_invalidation/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ lockfile==0.12.2
psutil==5.6.6
pytest==4.5.0
pytest-html==2.0.1
PyYAML==5.4
PyYAML==6.0.1
testinfra==5.0.0
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "4.6.0",
"revision": "40600"
}
}
rauldpm marked this conversation as resolved.
Show resolved Hide resolved
Loading