wazuh / wazuh-qa

Wazuh - Quality Assurance
GNU General Public License v2.0
61 stars 30 forks source link

Add Vulnerability Detector System End-to-End tests #4591

Closed Deblintrake09 closed 3 months ago

Deblintrake09 commented 7 months ago
Target version Related issue Related PR/dev branch
4.8.0 Alpha 1 #4369

Description

This issue aims to create the End-to-end test cases defined in https://github.com/wazuh/wazuh-qa/issues/4531. This test cases use the basic cases defined in https://github.com/wazuh/wazuh-qa/issues/4590

Proposed test cases

Considerations

Rebits commented 6 months ago

Examining testing scenarios through the provided design at https://github.com/wazuh/wazuh-qa/issues/4590#issuecomment-1799608774. Certain challenges have surfaced concerning the monitoring of alerts across arm architectures. We are actively addressing these issues and working towards resolution.

In addition we are working on including methods for handling indices

Rebits commented 6 months ago

Refactor schema in order to check generated vulnerabilities in different ways. Done in https://github.com/wazuh/wazuh-qa/commit/b9f1101992dcb7ecc7b67f9f8a72c322536b1ab3

Rebits commented 5 months ago

Marked On Hold until https://github.com/wazuh/wazuh-qa/pull/4703 is stable

Rebits commented 5 months ago

Continue with the development using https://github.com/wazuh/wazuh-qa/pull/4703 as base development

Rebits commented 5 months ago

It has been detected issues in the Vulnerability detector module regarding the detection of some packages. Further research is required

Rebits commented 5 months ago

Adjusted the ETA to align with @wazuh/data-pirates at https://github.com/wazuh/wazuh/issues/14153 development. Finalizing test modifications to seamlessly integrate with the ongoing development.

Rebits commented 5 months ago

In addition it is necessary to research some not expected behaviors:

Rebits commented 5 months ago
Rebits commented 5 months ago

Marked as blocked until development is over

Rebits commented 5 months ago

Adjusted ETA to December 20, 2023, with approval from @davidjiglesias. This modification is prompted by a development delay now anticipated for December 18: https://github.com/wazuh/wazuh/issues/14153

Rebits commented 5 months ago

Starting the migration of tests to accommodate the recent of the Vulnerability Detector.


Generated packages

https://ci.wazuh.info/job/Packages_builder_tier/3288/console


Meeting with @Dwordcito @davidjiglesias about current status of the VD refactor

Rebits commented 5 months ago

We have successfully conducted the first Proof of Concept (POC) for the testing environment, leveraging the newly refactored Vulnerability Detector. Unfortunately, the analysis has revealed several critical errors that currently hinder the progression of testing.

For further details and a comprehensive overview of the identified issues, please refer to the following GitHub link: https://github.com/wazuh/wazuh/issues/20785.

Rebits commented 4 months ago

Created new packages with latests changes in Vulnerability detector

Build: https://ci.wazuh.info/job/Packages_builder_tier/3347

However, no indices of alert was created

root@ip-172-31-9-35:/home/qa# curl -k -u admin:changeme https://172.31.9.35:9200/_cat/indices?v
health status index                       uuid                   pri rep docs.count docs.deleted store.size pri.store.size
green  open   .opensearch-observability   eCUPM1U6RXiXnioci6-_8g   1   0          0            0       208b           208b
green  open   .plugins-ml-config          RATIwdbhSuCvw0AcMDQs1A   1   0          1            0      3.9kb          3.9kb
green  open   wazuh-alerts-4.x-2023.12.28 gplYSwV1T1SVg35Hy2xicg   3   0       2351            0      3.4mb          3.4mb
green  open   .opendistro_security        MmlFVltMQ22KxT2nJLNg-A   1   0         10            0     64.7kb         64.7kb

In addition no vulnerability alerts were generated. It is necessary to achieve feedback from developer team in order to continue with tests

Rebits commented 4 months ago

New packages were created with https://github.com/wazuh/wazuh/commit/937acfc87d50ca867a75f163b957a461fd5ddef1 changes. However, a segmentation fault has been identified in the current development

Testing cannot proceed until a stable version is delivered

Rebits commented 4 months ago

https://github.com/wazuh/wazuh/issues/21176 seems to be solved. We can proceed with the development of the tests

Rebits commented 4 months ago

Currently working on tests adaptation

Rebits commented 4 months ago
Rebits commented 4 months ago

Changes in https://github.com/wazuh/wazuh-qa/commit/52b70beedbeeb978246cbf6fcaca5249424fa8cc

Rebits commented 4 months ago
Rebits commented 4 months ago

Changes can be found in: https://github.com/wazuh/wazuh-qa/commit/f5c96e2a8873497205990417d6cf5ceb7242c497

Currently working on:

Rebits commented 3 months ago
Rebits commented 3 months ago

Pending task

Rebits commented 3 months ago
Rebits commented 3 months ago

Minor issues to fix:

davidjiglesias commented 3 months ago

LGTM