Skip to content

Commit

Permalink
style(#3361): fix style and docu
Browse files Browse the repository at this point in the history
  • Loading branch information
Deblintrake09 committed Apr 14, 2023
1 parent 8924777 commit 2c11167
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Release report: TBD

### Added

- Add tests for msu patches with no associated CVE . ([#4009](https:/wazuh/wazuh-qa/pull/4009)) \- (Framework + tests)
- Add tests for msu patches with no associated CVE . ([#4009](https:/wazuh/wazuh-qa/pull/4009)) \- (Framework + Tests)
- Add tests with new options to avoid FIM synchronization overlapping. ([#3318](https:/wazuh/wazuh-qa/pull/3318)) \- (Framework + tests)
- Add Logcollector millisecond granularity support test case ([#3910](https:/wazuh/wazuh-qa/pull/3910)) \- (Tests)
- Add Windows System folders FIM monitoring tests ([#3720](https:/wazuh/wazuh-qa/pull/3720)) \- (Tests)
Expand Down
2 changes: 1 addition & 1 deletion deps/wazuh_testing/wazuh_testing/modules/fim/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ def validate_checkers_per_event(events, options, mode):
if self.is_value:
validate_registry_event(ev, options, mode, is_key=False)
else:
validate_registry_event(ev, options, mode, is_key=False)
validate_registry_event(ev, options, mode, is_key=True)

def check_events_type(events, ev_type, reg_list=['testkey0']):
"""Checks the event type of each events in a list.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- name: Check Patches with no CVE present
- name: check_patches_with_no_cve_present
description: Test patches with no associated CVE are added from the catalog
configuration_parameters:
PROVIDER: msu
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def test_msu_catalog_patches(configuration, metadata, set_wazuh_configuration_vd
Test:
- Check in log that the database provider has been updated successfully.
- Query the DB to check patch is found in MSU_SUPERSEDENSE table
- Query the DB to check patch is not found in MSU table (Has not Vulnerability linked to it).
- Query the DB to check patch is not found in MSU table (has no Vulnerability linked to it).
Teardown:
- Clean the database.
- Stop wazuh-modulesd.
Expand Down Expand Up @@ -131,7 +131,7 @@ def test_msu_catalog_patches(configuration, metadata, set_wazuh_configuration_vd
assertions:
- Check that the feed is downloaded successfully.
- Check that the referenced patch is found in MSU_SUPERSEDENSE table
- Check that the referenced patch is not foundin MSU table (Has not Vulnerability linked to it).
- Check that the referenced patch is not foundin MSU table (has no Vulnerability linked to it).
input_description:
- The `configuration_msu_inventory.yaml` file provides the module configuration for this test.
Expand All @@ -146,9 +146,9 @@ def test_msu_catalog_patches(configuration, metadata, set_wazuh_configuration_vd

for patch in patch_references:
# Check that patch is present in MSU_SUPERSEDENCE table
result = get_rows_from_table(patch, 'patch', 'MSU_SUPERSEDENCE')
assert result is not None, f"The Expected data for KB{patch} was not found in MSU_SUPERSEDENCE Table"
patch_found = get_rows_from_table(patch, 'patch', 'MSU_SUPERSEDENCE')
assert patch_found is not None, f"The Expected data for KB{patch} was not found in MSU_SUPERSEDENCE Table"

# Check that patch is not present in MSU table
result = get_rows_from_table(patch, 'patch', 'MSU')
assert result is None, f"Unexpected data found for KB{patch} in MSU Table"
patch_in_table = get_rows_from_table(patch, 'patch', 'MSU')
assert patch_in_table is None, f"Unexpected data found for KB{patch} in MSU Table"

0 comments on commit 2c11167

Please sign in to comment.