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

Integration tests for Vulnerability Detector: Red Hat 9 support (#3040) #4497

Merged
merged 2 commits into from
Oct 4, 2023

Conversation

tdrauncieal
Copy link
Contributor

@tdrauncieal tdrauncieal commented Sep 6, 2023

Related issue
#3040

Description

this development intends to add support for testing RHEL9 linux OS, added to the previous existing references

The following tests should cover the new supported OS version:

  • Feed tests: These tests have to cover the addition of the new feed for RHEL 9
  • Provider tests: Here we will test the settings for Red Hat with OS version 9
  • Scan results tests: Here we have to add the tests that ensure RHEL 9 agents are scanned properly

Tests were affected

wazuh-qa/tests/integration/test_vulnerability_detector/test_feeds/test_download_feeds.py

Details

root@wazuh:~/wazuh-qa# python3 -m pytest -vx tests/integration/test_vulnerability_detector/test_feeds/test_download_feeds.py                                                                                       
=============================================================================================== test session starts ===============================================================================================
platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.3.0 -- /usr/bin/python3                                                                                                                                    
cachedir: .pytest_cache                                                                                                                                                                                            
metadata: {'Python': '3.8.10', 'Platform': 'Linux-5.15.74-1-pve-x86_64-with-glibc2.29', 'Packages': {'pytest': '7.1.2', 'pluggy': '1.3.0'}, 'Plugins': {'testinfra': '5.0.0', 'html': '3.1.1', 'metadata': '3.0.0'}
}                                                                                                                                                                                                                  
rootdir: /root/wazuh-qa/tests/integration, configfile: pytest.ini                                                                                                                                                  
plugins: testinfra-5.0.0, html-3.1.1, metadata-3.0.0                                                                                                                                                               
collected 26 items                                                                                                                                                                                                 
                                                                                                                                                                                                                   
tests/integration/test_vulnerability_detector/test_feeds/test_download_feeds.py::test_download_feeds[RHEL5] XFAIL  [  3%]
tests/integration/test_vulnerability_detector/test_feeds/test_download_feeds.py::test_download_feeds[RHEL6] PASSED [  7%]
tests/integration/test_vulnerability_detector/test_feeds/test_download_feeds.py::test_download_feeds[RHEL7] PASSED [ 11%]
tests/integration/test_vulnerability_detector/test_feeds/test_download_feeds.py::test_download_feeds[RHEL8] PASSED [ 15%]
tests/integration/test_vulnerability_detector/test_feeds/test_download_feeds.py::test_download_feeds[RHEL9] PASSED [ 19%]

wazuh-qa/tests/integration/test_vulnerability_detector/test_feeds/test_duplicate_feeds.py

Details

root@wazuh:~/wazuh-qa# python3 -m pytest -vx tests/integration/test_vulnerability_detector/test_feeds/test_duplicate_feeds.py                                                                                      
=============================================================================================== test session starts ===============================================================================================
platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.3.0 -- /usr/bin/python3                                                                                                                                    
cachedir: .pytest_cache                                                                                                                                                                                            
metadata: {'Python': '3.8.10', 'Platform': 'Linux-5.15.74-1-pve-x86_64-with-glibc2.29', 'Packages': {'pytest': '7.1.2', 'pluggy': '1.3.0'}, 'Plugins': {'testinfra': '5.0.0', 'html': '3.1.1', 'metadata': '3.0.0'}}                                                                                                                                                                                                                  
rootdir: /root/wazuh-qa/tests/integration, configfile: pytest.ini                                                                                                                                                  
plugins: testinfra-5.0.0, html-3.1.1, metadata-3.0.0                                                                                                                                                               
collected 13 items                                                                                                                                                                                                 
                                                                                                                                                                                                                   
tests/integration/test_vulnerability_detector/test_feeds/test_duplicate_feeds.py::test_duplicate_feeds[RedHat0] PASSED                                                                                      [  7%] 
tests/integration/test_vulnerability_detector/test_feeds/test_duplicate_feeds.py::test_duplicate_feeds[RedHat1] PASSED                                                                                      [ 15%] 
tests/integration/test_vulnerability_detector/test_feeds/test_duplicate_feeds.py::test_duplicate_feeds[Debian] PASSED                                                                                       [ 23%] 
tests/integration/test_vulnerability_detector/test_feeds/test_duplicate_feeds.py::test_duplicate_feeds[Ubuntu Trusty] PASSED                                                                                [ 30%] 
tests/integration/test_vulnerability_detector/test_feeds/test_duplicate_feeds.py::test_duplicate_feeds[Ubuntu Xenial] PASSED                                                                                [ 38%] 
tests/integration/test_vulnerability_detector/test_feeds/test_duplicate_feeds.py::test_duplicate_feeds[Ubuntu Bionic] PASSED                                                                                [ 46%] 
tests/integration/test_vulnerability_detector/test_feeds/test_duplicate_feeds.py::test_duplicate_feeds[Ubuntu Focal] PASSED                                                                                 [ 53%] 
tests/integration/test_vulnerability_detector/test_feeds/test_duplicate_feeds.py::test_duplicate_feeds[Ubuntu Jammy] PASSED                                                                                 [ 61%] 
tests/integration/test_vulnerability_detector/test_feeds/test_duplicate_feeds.py::test_duplicate_feeds[ALAS] PASSED                                                                                         [ 69%] 
tests/integration/test_vulnerability_detector/test_feeds/test_duplicate_feeds.py::test_duplicate_feeds[Arch] PASSED                                                                                         [ 76%] 
tests/integration/test_vulnerability_detector/test_feeds/test_duplicate_feeds.py::test_duplicate_feeds[MSU] PASSED                                                                                          [ 84%] 
tests/integration/test_vulnerability_detector/test_feeds/test_duplicate_feeds.py::test_duplicate_feeds[SUSE] PASSED                                                                                         [ 92%] 
tests/integration/test_vulnerability_detector/test_feeds/test_duplicate_feeds.py::test_duplicate_feeds[AlmaLinux] PASSED                                                                                    [100%] 

wazuh-qa/tests/integration/test_vulnerability_detector/test_feeds/test_validate_feed_content.py

Details

roott@wazuh:~/wazuh-qa# python3 -m pytest -vx tests/integration/test_vulnerability_detector/test_feeds/test_validate_feed_content.py                                                                               
=============================================================================================== test session starts ===============================================================================================
platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.3.0 -- /usr/bin/python3                                                                                                                                    
cachedir: .pytest_cache                                                                                                                                                                                            
metadata: {'Python': '3.8.10', 'Platform': 'Linux-5.15.74-1-pve-x86_64-with-glibc2.29', 'Packages': {'pytest': '7.1.2', 'pluggy': '1.3.0'}, 'Plugins': {'testinfra': '5.0.0', 'html': '3.1.1', 'metadata': '3.0.0'}
}                                                                                                                                                                                                                  
rootdir: /root/wazuh-qa/tests/integration, configfile: pytest.ini                                                                                                                                                  
plugins: testinfra-5.0.0, html-3.1.1, metadata-3.0.0                                                                                                                                                               
collected 26 items                                                                                                                                                                                                 
                                                                                                                                                                                                                   
tests/integration/test_vulnerability_detector/test_feeds/test_validate_feed_content.py::test_validate_json_feed_content[Red Hat Enterprise Linux] PASSED                                                    [  3%] 
tests/integration/test_vulnerability_detector/test_feeds/test_validate_feed_content.py::test_validate_json_feed_content[Debian] PASSED                                                                      [  7%] 
tests/integration/test_vulnerability_detector/test_feeds/test_validate_feed_content.py::test_validate_json_feed_content[Arch Linux] PASSED                                                                  [ 11%] 
tests/integration/test_vulnerability_detector/test_feeds/test_validate_feed_content.py::test_validate_json_feed_content[Amazon Linux] PASSED                                                                [ 15%] 
tests/integration/test_vulnerability_detector/test_feeds/test_validate_feed_content.py::test_validate_json_feed_content[MSU] PASSED                                                                         [ 19%] 
tests/integration/test_vulnerability_detector/test_feeds/test_validate_feed_content.py::test_validate_json_feed_content[NVD] PASSED                                                                         [ 23%] 
tests/integration/test_vulnerability_detector/test_feeds/test_validate_feed_content.py::test_validate_xml_feed_content[Red Hat Enterprise Linux0] PASSED                                                    [ 26%] 
tests/integration/test_vulnerability_detector/test_feeds/test_validate_feed_content.py::test_validate_xml_feed_content[Red Hat Enterprise Linux1] PASSED                                                    [ 30%] 
tests/integration/test_vulnerability_detector/test_feeds/test_validate_feed_content.py::test_validate_xml_feed_content[Red Hat Enterprise Linux2] PASSED                                                    [ 34%] 
tests/integration/test_vulnerability_detector/test_feeds/test_validate_feed_content.py::test_validate_xml_feed_content[Red Hat Enterprise Linux3] PASSED                                                    [ 38%] 
tests/integration/test_vulnerability_detector/test_feeds/test_validate_feed_content.py::test_validate_xml_feed_content[Red Hat Enterprise Linux4] PASSED                                                    [ 42%] 
tests/integration/test_vulnerability_detector/test_feeds/test_validate_feed_content.py::test_validate_xml_feed_content[Canonical Jammy] PASSED                                                              [ 46%] 
tests/integration/test_vulnerability_detector/test_feeds/test_validate_feed_content.py::test_validate_xml_feed_content[Canonical Focal] PASSED                                                              [ 50%] 
tests/integration/test_vulnerability_detector/test_feeds/test_validate_feed_content.py::test_validate_xml_feed_content[Canonical Bionic] PASSED                                                             [ 53%] 
tests/integration/test_vulnerability_detector/test_feeds/test_validate_feed_content.py::test_validate_xml_feed_content[Canonical Xenial] PASSED                                                             [ 57%] 
tests/integration/test_vulnerability_detector/test_feeds/test_validate_feed_content.py::test_validate_xml_feed_content[Canonical Trusty] PASSED                                                             [ 61%] 
tests/integration/test_vulnerability_detector/test_feeds/test_validate_feed_content.py::test_validate_xml_feed_content[Debian0] FAILED                                                                      [ 65%] 

wazuh-qa/tests/integration/test_vulnerability_detector/test_providers/test_enabled.py

Details

root@wazuh:~/wazuh-qa# python3 -m pytest -v tests/integration/test_vulnerability_detector/test_providers/test_enabled.py                                                                                                                                                                                                     
=============================================================================================== test session starts ===============================================================================================                                                                                                          platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.3.0 -- /usr/bin/python3                                                                                                                                                                                                                                              
cachedir: .pytest_cache                                                                                                                                                                                                                                                                                                      metadata: {'Python': '3.8.10', 'Platform': 'Linux-5.15.74-1-pve-x86_64-with-glibc2.29', 'Packages': {'pytest': '7.1.2', 'pluggy': '1.3.0'}, 'Plugins': {'testinfra': '5.0.0', 'html': '3.1.1', 'metadata': '3.0.0'}}                                                                                                         
rootdir: /root/wazuh-qa/tests/integration, configfile: pytest.ini                                                                                                                                                                                                                                                            plugins: testinfra-5.0.0, html-3.1.1, metadata-3.0.0                                                                                                                                                                                                                                                                         
collected 52 items                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_enabled[Amazon Linux 1] PASSED                                                                                           [  1%]                                                                                                           tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_enabled[Amazon Linux 2] PASSED                                                                                           [  3%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_enabled[Amazon Linux 2022] FAILED                                                                                        [  5%]                                                                                                           tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_enabled[Ubuntu Focal] PASSED                                                                                             [  7%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_enabled[Ubuntu Bionic] PASSED                                                                                            [  9%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_enabled[Ubuntu Xenial] PASSED                                                                                            [ 11%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_enabled[Ubuntu Trusty] PASSED                                                                                            [ 13%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_enabled[Ubuntu Jammy] PASSED                                                                                             [ 15%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_enabled[RHEL 9] PASSED                                                                                                   [ 17%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_enabled[RHEL 8] PASSED                                                                                                   [ 19%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_enabled[RHEL 7] PASSED                                                                                                   [ 21%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_enabled[RHEL 6] PASSED                                                                                                   [ 23%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_enabled[RHEL 5] PASSED                                                                                                   [ 25%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_enabled[Debian Bullseye] PASSED                                                                                          [ 26%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_enabled[Debian Buster] PASSED                                                                                            [ 28%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_enabled[Arch Linux] PASSED                                                                                               [ 30%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_enabled[NVD] PASSED                                                                                                      [ 32%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_enabled[MSU] PASSED                                                                                                      [ 34%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_enabled[SUSE Linux Enterprise Server 11] PASSED                                                                          [ 36%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_enabled[SUSE Linux Enterprise Server 12] PASSED                                                                          [ 38%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_enabled[SUSE Linux Enterprise Server 15] PASSED                                                                          [ 40%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_enabled[SUSE Linux Enterprise Desktop 11] PASSED                                                                         [ 42%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_enabled[SUSE Linux Enterprise Desktop 12] PASSED                                                                         [ 44%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_enabled[SUSE Linux Enterprise Desktop 15] PASSED                                                                         [ 46%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_enabled[ALMALINUX 8] PASSED                                                                                              [ 48%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_enabled[ALMALINUX 9] PASSED                                                                                              [ 50%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_disabled[Amazon Linux 1] PASSED                                                                                          [ 51%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_disabled[Amazon Linux 2] PASSED                                                                                          [ 53%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_disabled[Amazon Linux 2022] PASSED                                                                                       [ 55%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_disabled[Ubuntu Focal] PASSED                                                                                            [ 57%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_disabled[Ubuntu Bionic] PASSED                                                                                           [ 59%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_disabled[Ubuntu Xenial] PASSED                                                                                           [ 61%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_disabled[Ubuntu Trusty] PASSED                                                                                           [ 63%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_disabled[Ubuntu Jammy] PASSED                                                                                            [ 65%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_disabled[RHEL 9] PASSED                                                                                                  [ 67%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_disabled[RHEL 8] PASSED                                                                                                  [ 69%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_disabled[RHEL 7] PASSED                                                                                                  [ 71%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_disabled[RHEL 6] PASSED                                                                                                  [ 73%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_disabled[RHEL 5] PASSED                                                                                                  [ 75%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_disabled[Debian Bullseye] PASSED                                                                                         [ 76%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_disabled[Debian Buster] PASSED                                                                                           [ 78%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_disabled[Arch Linux] PASSED                                                                                              [ 80%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_disabled[NVD] PASSED                                                                                                     [ 82%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_disabled[MSU] PASSED                                                                                                     [ 84%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_disabled[SUSE Linux Enterprise Server 11] PASSED                                                                         [ 86%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_disabled[SUSE Linux Enterprise Server 12] PASSED                                                                         [ 88%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_disabled[SUSE Linux Enterprise Server 15] PASSED                                                                         [ 90%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_disabled[SUSE Linux Enterprise Desktop 11] PASSED                                                                        [ 92%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_disabled[SUSE Linux Enterprise Desktop 12] PASSED                                                                        [ 94%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_disabled[SUSE Linux Enterprise Desktop 15] PASSED                                                                        [ 96%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_disabled[ALMALINUX 8] PASSED                                                                                             [ 98%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_enabled.py::test_disabled[ALMALINUX 9] PASSED                                                                                             [100%]                                                                                                           

wazuh-qa/tests/integration/test_vulnerability_detector/test_providers/test_multiple_provider_feeds.py

Details

root@wazuh:~/wazuh-qa# python3 -m pytest -vx tests/integration/test_vulnerability_detector/test_providers/test_multiple_provider_feeds.py                                                                                                                                                                                    
=============================================================================================== test session starts ===============================================================================================                                                                                                          
platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.3.0 -- /usr/bin/python3                                                                                                                                                                                                                                              
cachedir: .pytest_cache                                                                                                                                                                                                                                                                                                      
metadata: {'Python': '3.8.10', 'Platform': 'Linux-5.15.74-1-pve-x86_64-with-glibc2.29', 'Packages': {'pytest': '7.1.2', 'pluggy': '1.3.0'}, 'Plugins': {'testinfra': '5.0.0', 'html': '3.1.1', 'metadata': '3.0.0'}}                                                                                                         
rootdir: /root/wazuh-qa/tests/integration, configfile: pytest.ini                                                                                                                                                                                                                                                            
plugins: testinfra-5.0.0, html-3.1.1, metadata-3.0.0                                                                                                                                                                                                                                                                         
collected 3 items                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                             
tests/integration/test_vulnerability_detector/test_providers/test_multiple_provider_feeds.py::test_check_log_multiple_provider_feeds[RedHat 9] PASSED                                                       [ 33%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_multiple_provider_feeds.py::test_check_log_multiple_provider_feeds[Debian Buster] PASSED                                                  [ 66%]                                                                                                           
tests/integration/test_vulnerability_detector/test_providers/test_multiple_provider_feeds.py::test_check_log_multiple_provider_feeds[ALMALINUX] PASSED                                                      [100%]                                                                                                           

wazuh-qa/tests/integration/test_vulnerability_detector/test_scan_results/test_scan_nvd_vulnerabilities.py

Details

root@wazuh:~/wazuh-qa# python3 -m pytest -vx tests/integration/test_vulnerability_detector/test_scan_results/test_scan_nvd_vulnerabilities.py                                                                                                                                                                                
=============================================================================================== test session starts ===============================================================================================                                                                                                          
platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.3.0 -- /usr/bin/python3                                                                                                                                                                                                                                              
cachedir: .pytest_cache                                                                                                                                                                                                                                                                                                      
metadata: {'Python': '3.8.10', 'Platform': 'Linux-5.15.74-1-pve-x86_64-with-glibc2.29', 'Packages': {'pytest': '7.1.2', 'pluggy': '1.3.0'}, 'Plugins': {'testinfra': '5.0.0', 'html': '3.1.1', 'metadata': '3.0.0'}}                                                                                                         
rootdir: /root/wazuh-qa/tests/integration, configfile: pytest.ini                                                                                                                                                                                                                                                            
plugins: testinfra-5.0.0, html-3.1.1, metadata-3.0.0                                                                                                                                                                                                                                                                         
collected 14 items                                                                                                                                                                                                                                                                                                           
                                                                                                                                                                                                                                                                                                                             
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_nvd_vulnerabilities.py::test_scan_nvd_vulnerabilities[WINDOWS] PASSED                                                             [  7%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_nvd_vulnerabilities.py::test_scan_nvd_vulnerabilities[MACOS] PASSED                                                               [ 14%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_nvd_vulnerabilities.py::test_no_agent_data[RHEL] PASSED                                                                           [ 21%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_nvd_vulnerabilities.py::test_no_agent_data[UBUNTU] PASSED                                                                         [ 28%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_nvd_vulnerabilities.py::test_no_agent_data[DEBIAN] PASSED                                                                         [ 35%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_nvd_vulnerabilities.py::test_no_agent_data[ARCH] PASSED                                                                           [ 42%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_nvd_vulnerabilities.py::test_no_agent_data[ALAS] PASSED                                                                           [ 50%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_nvd_vulnerabilities.py::test_no_agent_data[SLED11] PASSED                                                                         [ 57%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_nvd_vulnerabilities.py::test_no_agent_data[SLED12] PASSED                                                                         [ 64%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_nvd_vulnerabilities.py::test_no_agent_data[SLED15] PASSED                                                                         [ 71%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_nvd_vulnerabilities.py::test_no_agent_data[SLES11] PASSED                                                                         [ 78%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_nvd_vulnerabilities.py::test_no_agent_data[SLES12] PASSED                                                                         [ 85%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_nvd_vulnerabilities.py::test_no_agent_data[SLES15] PASSED                                                                         [ 92%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_nvd_vulnerabilities.py::test_no_agent_data[ALMALINUX] PASSED                                                                      [100%]                                                                                                           

wazuh-qa/tests/integration/test_vulnerability_detector/test_scan_results/test_scan_provider_and_nvd_vulnerabilities.py

Details

root@wazuh:~/wazuh-qa# python3 -m pytest -vx tests/integration/test_vulnerability_detector/test_scan_results/test_scan_provider_and_nvd_vulnerabilities.py                                                                                                                                                                   
=============================================================================================== test session starts ===============================================================================================                                                                                                          
platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.3.0 -- /usr/bin/python3                                                                                                                                                                                                                                              
cachedir: .pytest_cache                                                                                                                                                                                                                                                                                                      
metadata: {'Python': '3.8.10', 'Platform': 'Linux-5.15.74-1-pve-x86_64-with-glibc2.29', 'Packages': {'pytest': '7.1.2', 'pluggy': '1.3.0'}, 'Plugins': {'testinfra': '5.0.0', 'html': '3.1.1', 'metadata': '3.0.0'}}                                                                                                         
rootdir: /root/wazuh-qa/tests/integration, configfile: pytest.ini                                                                                                                                                                                                                                                            
plugins: testinfra-5.0.0, html-3.1.1, metadata-3.0.0                                                                                                                                                                                                                                                                         
collected 7 items                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                             
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_provider_and_nvd_vulnerabilities.py::test_scan_provider_and_nvd_vulnerabilities[RHEL] PASSED                                      [ 14%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_provider_and_nvd_vulnerabilities.py::test_scan_provider_and_nvd_vulnerabilities[Debian] PASSED                                    [ 28%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_provider_and_nvd_vulnerabilities.py::test_scan_provider_and_nvd_vulnerabilities[Canonical] SKIPPED (OVAL does not have any vu...) [ 42%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_provider_and_nvd_vulnerabilities.py::test_scan_provider_and_nvd_vulnerabilities[ALAS] PASSED                                      [ 57%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_provider_and_nvd_vulnerabilities.py::test_scan_provider_and_nvd_vulnerabilities[Arch] PASSED                                      [ 71%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_provider_and_nvd_vulnerabilities.py::test_scan_provider_and_nvd_vulnerabilities[SUSE] PASSED                                      [ 85%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_provider_and_nvd_vulnerabilities.py::test_scan_provider_and_nvd_vulnerabilities[ALMALINUX] PASSED                                 [100%]                                                                                                           

wazuh-qa/tests/integration/test_vulnerability_detector/test_scan_results/test_scan_provider_vulnerabilities.py

Details

root@wazuh:~/wazuh-qa# python3 -m pytest -vx tests/integration/test_vulnerability_detector/test_scan_results/test_scan_provider_vulnerabilities.py                                                                                                                                                                           
=============================================================================================== test session starts ===============================================================================================                                                                                                          
platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.3.0 -- /usr/bin/python3                                                                                                                                                                                                                                              
cachedir: .pytest_cache                                                                                                                                                                                                                                                                                                      
metadata: {'Python': '3.8.10', 'Platform': 'Linux-5.15.74-1-pve-x86_64-with-glibc2.29', 'Packages': {'pytest': '7.1.2', 'pluggy': '1.3.0'}, 'Plugins': {'testinfra': '5.0.0', 'html': '3.1.1', 'metadata': '3.0.0'}}                                                                                                         
rootdir: /root/wazuh-qa/tests/integration, configfile: pytest.ini                                                                                                                                                                                                                                                            
plugins: testinfra-5.0.0, html-3.1.1, metadata-3.0.0                                                                                                                                                                                                                                                                         
collected 7 items                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                             
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_provider_vulnerabilities.py::test_scan_provider_vulnerabilities[RHEL] PASSED                                                      [ 14%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_provider_vulnerabilities.py::test_scan_provider_vulnerabilities[Debian] PASSED                                                    [ 28%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_provider_vulnerabilities.py::test_scan_provider_vulnerabilities[Canonical] SKIPPED (OVAL does not have any vulnerability yet,...) [ 42%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_provider_vulnerabilities.py::test_scan_provider_vulnerabilities[ALAS] PASSED                                                      [ 57%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_provider_vulnerabilities.py::test_scan_provider_vulnerabilities[Arch] PASSED                                                      [ 71%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_provider_vulnerabilities.py::test_scan_provider_vulnerabilities[SUSE] PASSED                                                      [ 85%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_provider_vulnerabilities.py::test_scan_provider_vulnerabilities[ALMALINUX] PASSED                                                 [100%]                                                                                                           

wazuh-qa/tests/integration/test_vulnerability_detector/test_scan_results/test_scan_vulnerabilities_triaged_null.py

Details

root@wazuh:~/wazuh-qa# python3 -m pytest -vx tests/integration/test_vulnerability_detector/test_scan_results/test_scan_vulnerabilities_triaged_null.py                                                                                                                                                                       
=============================================================================================== test session starts ===============================================================================================                                                                                                          
platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.3.0 -- /usr/bin/python3                                                                                                                                                                                                                                              
cachedir: .pytest_cache                                                                                                                                                                                                                                                                                                      
metadata: {'Python': '3.8.10', 'Platform': 'Linux-5.15.74-1-pve-x86_64-with-glibc2.29', 'Packages': {'pytest': '7.1.2', 'pluggy': '1.3.0'}, 'Plugins': {'testinfra': '5.0.0', 'html': '3.1.1', 'metadata': '3.0.0'}}                                                                                                         
rootdir: /root/wazuh-qa/tests/integration, configfile: pytest.ini                                                                                                                                                                                                                                                            
plugins: testinfra-5.0.0, html-3.1.1, metadata-3.0.0                                                                                                                                                                                                                                                                         
collected 1 item                                                                                                                                                                                                                                                                                                             
                                                                                                                                                                                                                                                                                                                             
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_vulnerabilities_triaged_null.py::test_scan_triaged_null_vulnerabilities[RHEL] PASSED                                              [100%]                                                                                                           

wazuh-qa/tests/integration/test_vulnerability_detector/test_scan_results/test_scan_vulnerability_removal.py

Details

root@wazuh:~/wazuh-qa# python3 -m pytest -vx tests/integration/test_vulnerability_detector/test_scan_results/test_scan_vulnerability_removal.py                                                                                                                                                                              
=============================================================================================== test session starts ===============================================================================================                                                                                                          
platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.3.0 -- /usr/bin/python3                                                                                                                                                                                                                                              
cachedir: .pytest_cache                                                                                                                                                                                                                                                                                                      
metadata: {'Python': '3.8.10', 'Platform': 'Linux-5.15.74-1-pve-x86_64-with-glibc2.29', 'Packages': {'pytest': '7.1.2', 'pluggy': '1.3.0'}, 'Plugins': {'testinfra': '5.0.0', 'html': '3.1.1', 'metadata': '3.0.0'}}                                                                                                         
rootdir: /root/wazuh-qa/tests/integration, configfile: pytest.ini                                                                                                                                                                                                                                                            
plugins: testinfra-5.0.0, html-3.1.1, metadata-3.0.0                                                                                                                                                                                                                                                                         
collected 8 items                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                             
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_vulnerability_removal.py::test_vulnerability_removal_update_package[Alert vulnerability removal] PASSED                           [ 12%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_vulnerability_removal.py::test_vulnerability_removal_update_package[Alert vulnerability removal - ALAS 2022] PASSED               [ 25%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_vulnerability_removal.py::test_vulnerability_removal_update_package[Alert vulnerability removal - SUSE] PASSED                    [ 37%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_vulnerability_removal.py::test_vulnerability_removal_update_package[Alert vulnerability removal - ALMALINUX] PASSED               [ 50%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_vulnerability_removal.py::test_vulnerability_removal_delete_package[Alert vulnerability removal] PASSED                           [ 62%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_vulnerability_removal.py::test_vulnerability_removal_delete_package[Alert vulnerability removal - ALAS 2022] PASSED               [ 75%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_vulnerability_removal.py::test_vulnerability_removal_delete_package[Alert vulnerability removal - SUSE] PASSED                    [ 87%]                                                                                                           
tests/integration/test_vulnerability_detector/test_scan_results/test_scan_vulnerability_removal.py::test_vulnerability_removal_delete_package[Alert vulnerability removal - ALMALINUX] PASSED               [100%]                                                                                                           

wazuh_qa/tests/integration/test_vulnerability_detector/test_feeds/test_import_invalid_feed_type.py

Details

root@wazuh:~/wazuh-qa/deps/wazuh_testing# python3.9 -m pytest -v ../../tests/integration/test_vulnerability_detector/test_feeds/test_import_invalid_feed_type.py                                                
============================================================================================= test session starts ==============================================================================================
platform linux -- Python 3.9.18, pytest-7.1.2, pluggy-1.3.0 -- /usr/bin/python3.9                                                                                                                               
cachedir: .pytest_cache                                                                                                                                                                                         
metadata: {'Python': '3.9.18', 'Platform': 'Linux-5.15.74-1-pve-x86_64-with-glibc2.31', 'Packages': {'pytest': '7.1.2', 'pluggy': '1.3.0'}, 'Plugins': {'testinfra': '5.0.0', 'html': '3.1.1', 'metadata': '3.0.
0'}}                                                                                                                                                                                                            
rootdir: /root/wazuh-qa/tests/integration, configfile: pytest.ini                                                                                                                                               
plugins: testinfra-5.0.0, html-3.1.1, metadata-3.0.0                                                                                                                                                            
collected 9 items                                                                                                                                                                                               
                                                                                                                                                                                                                
../../tests/integration/test_vulnerability_detector/test_feeds/test_import_invalid_feed_type.py::test_import_invalid_feed_type[RHEL - PDF] PASSED                                                        [ 11%] 
../../tests/integration/test_vulnerability_detector/test_feeds/test_import_invalid_feed_type.py::test_import_invalid_feed_type[Debian - JPG] PASSED                                                      [ 22%] 
../../tests/integration/test_vulnerability_detector/test_feeds/test_import_invalid_feed_type.py::test_import_invalid_feed_type[Canonical - MP3] PASSED                                                   [ 33%] 
../../tests/integration/test_vulnerability_detector/test_feeds/test_import_invalid_feed_type.py::test_import_invalid_feed_type[ALAS - DOC] ERROR                                                         [ 44%] 
../../tests/integration/test_vulnerability_detector/test_feeds/test_import_invalid_feed_type.py::test_import_invalid_feed_type[Arch - AVI] PASSED                                                        [ 55%] 
../../tests/integration/test_vulnerability_detector/test_feeds/test_import_invalid_feed_type.py::test_import_invalid_feed_type[MSU - JPG] PASSED                                                         [ 66%] 
../../tests/integration/test_vulnerability_detector/test_feeds/test_import_invalid_feed_type.py::test_import_invalid_feed_type[NVD - MP3] PASSED                                                         [ 77%]
../../tests/integration/test_vulnerability_detector/test_feeds/test_import_invalid_feed_type.py::test_import_invalid_feed_type[SUSE - JPG] PASSED                                                        [ 88%]
../../tests/integration/test_vulnerability_detector/test_feeds/test_import_invalid_feed_type.py::test_import_invalid_feed_type[AlmaLinux - JPG] PASSED                                                   [100%]


Copy link
Member

@MarcelKemp MarcelKemp left a comment

Choose a reason for hiding this comment

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

Please check if there are other similar cases after the changes.

@tdrauncieal tdrauncieal force-pushed the 3040-rhel9-vd-it branch 2 times, most recently from 5cdd410 to be4aee6 Compare September 22, 2023 18:02
Copy link
Member

@MarcelKemp MarcelKemp left a comment

Choose a reason for hiding this comment

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

The following tests have failed:

  • test_vulnerability_detector/test_vulnerability_inventory
  • test_vulnerability_detector/test_scan_types

https://ci.wazuh.info/view/Tests/job/Test_integration/43183/

Please, after the changes, test if they already work correctly.

CHANGELOG.md Outdated Show resolved Hide resolved
deps/wazuh_testing/wazuh_testing/mocking/__init__.py Outdated Show resolved Hide resolved
tests/integration/conftest.py Outdated Show resolved Hide resolved
tests/integration/conftest.py Outdated Show resolved Hide resolved
@tdrauncieal
Copy link
Contributor Author

The following tests have failed:

  • test_vulnerability_detector/test_vulnerability_inventory
  • test_vulnerability_detector/test_scan_types

https://ci.wazuh.info/view/Tests/job/Test_integration/43183/

Please, after the changes, test if they already work correctly.

All changes were applied, next let's to see the tests evidence:

Details

root@wazuh:~/wazuh-qa/deps/wazuh_testing# python3.9 -m pytest -v ../../tests/integration/test_vulnerability_detector/test_vulnerability_inventory/test_vulnerability_inventory_baseline_scan.py                                                                                                                                                                                              
=============================================================================================== test session starts ===============================================================================================                                                                                                                                                                          
platform linux -- Python 3.9.18, pytest-7.1.2, pluggy-1.3.0 -- /usr/bin/python3.9                                                                                                                                                                                                                                                                                                            
cachedir: .pytest_cache                                                                                                                                                                                                                                                                                                                                                                      
metadata: {'Python': '3.9.18', 'Platform': 'Linux-5.15.74-1-pve-x86_64-with-glibc2.31', 'Packages': {'pytest': '7.1.2', 'pluggy': '1.3.0'}, 'Plugins': {'testinfra': '5.0.0', 'html': '3.1.1', 'metadata': '3.0.0'}}                                                                                                                                                                         
rootdir: /root/wazuh-qa/tests/integration, configfile: pytest.ini                                                                                                                                                                                                                                                                                                                            
plugins: testinfra-5.0.0, html-3.1.1, metadata-3.0.0                                                                                                                                                                                                                                                                                                                                         
collected 1 item                                                                                                                                                                                                                                                                                                                                                                             
                                                                                                                                                                                                                                                                                                                                                                                             
../../tests/integration/test_vulnerability_detector/test_vulnerability_inventory/test_vulnerability_inventory_baseline_scan.py::test_vulnerability_inserted_baseline_scan[RHEL] PASSED                      [100%]                                                                                                                                                                           
                                                                                                                                                                                                                                                                                                                                                                                             
=============================================================================================== 1 passed in 16.99s ================================================================================================                                                                                                                                                                          
root@wazuh:~/wazuh-qa/deps/wazuh_testing# python3.9 -m pytest -v ../../tests/integration/test_vulnerability_detector/test_vulnerability_inventory/test_vulnerability_inventory_full_scan.py                                                                                                                                                                                                  
=============================================================================================== test session starts ===============================================================================================                                                                                                                                                                          
platform linux -- Python 3.9.18, pytest-7.1.2, pluggy-1.3.0 -- /usr/bin/python3.9                                                                                                                                                                                                                                                                                                            
cachedir: .pytest_cache                                                                                                                                                                                                                                                                                                                                                                      
metadata: {'Python': '3.9.18', 'Platform': 'Linux-5.15.74-1-pve-x86_64-with-glibc2.31', 'Packages': {'pytest': '7.1.2', 'pluggy': '1.3.0'}, 'Plugins': {'testinfra': '5.0.0', 'html': '3.1.1', 'metadata': '3.0.0'}}                                                                                                                                                                         
rootdir: /root/wazuh-qa/tests/integration, configfile: pytest.ini                                                                                                                                                                                                                                                                                                                            
plugins: testinfra-5.0.0, html-3.1.1, metadata-3.0.0                                                                                                                                                                                                                                                                                                                                         
collected 2 items                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                             
../../tests/integration/test_vulnerability_detector/test_vulnerability_inventory/test_vulnerability_inventory_full_scan.py::test_vulnerability_inserted_full_scan[RHEL] PASSED                              [ 50%]                                                                                                                                                                           
../../tests/integration/test_vulnerability_detector/test_vulnerability_inventory/test_vulnerability_inventory_full_scan.py::test_vulnerability_removed_full_scan[RHEL] PASSED                               [100%]                                                                                                                                                                           
                                                                                                                                                                                                                                                                                                                                                                                             
=============================================================================================== 2 passed in 31.28s ================================================================================================                                                                                                                                                                          
root@wazuh:~/wazuh-qa/deps/wazuh_testing# python3.9 -m pytest -v ../../tests/integration/test_vulnerability_detector/test_vulnerability_inventory/test_vulnerability_inventory_partial_scan.py                                                                                                                                                                                               
=============================================================================================== test session starts ===============================================================================================                                                                                                                                                                          
platform linux -- Python 3.9.18, pytest-7.1.2, pluggy-1.3.0 -- /usr/bin/python3.9                                                                                                                                                                                                                                                                                                            
cachedir: .pytest_cache                                                                                                                                                                                                                                                                                                                                                                      
metadata: {'Python': '3.9.18', 'Platform': 'Linux-5.15.74-1-pve-x86_64-with-glibc2.31', 'Packages': {'pytest': '7.1.2', 'pluggy': '1.3.0'}, 'Plugins': {'testinfra': '5.0.0', 'html': '3.1.1', 'metadata': '3.0.0'}}                                                                                                                                                                         
rootdir: /root/wazuh-qa/tests/integration, configfile: pytest.ini                                                                                                                                                                                                                                                                                                                            
plugins: testinfra-5.0.0, html-3.1.1, metadata-3.0.0                                                                                                                                                                                                                                                                                                                                         
collected 2 items                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                             
../../tests/integration/test_vulnerability_detector/test_vulnerability_inventory/test_vulnerability_inventory_partial_scan.py::test_vulnerability_inserted_partial_scan[RHEL] PASSED                        [ 50%]                                                                                                                                                                           
../../tests/integration/test_vulnerability_detector/test_vulnerability_inventory/test_vulnerability_inventory_partial_scan.py::test_vulnerability_removed_partial_scan[RHEL] PASSED                         [100%]                                                                                                                                                                           
                                                                                                                                                                                                                                                                                                                                                                                             
=============================================================================================== 2 passed in 31.88s ================================================================================================                                                                                                                                                                          
root@wazuh:~/wazuh-qa/deps/wazuh_testing# python3.9 -m pytest -v ../../tests/integration/test_vulnerability_detector/test_scan_types/test_baseline_scan_type.py                                                                                                                                                                                                                              
=============================================================================================== test session starts ===============================================================================================                                                                                                                                                                          
platform linux -- Python 3.9.18, pytest-7.1.2, pluggy-1.3.0 -- /usr/bin/python3.9                                                                                                                                                                                                                                                                                                            
cachedir: .pytest_cache                                                                                                                                                                                                                                                                                                                                                                      
metadata: {'Python': '3.9.18', 'Platform': 'Linux-5.15.74-1-pve-x86_64-with-glibc2.31', 'Packages': {'pytest': '7.1.2', 'pluggy': '1.3.0'}, 'Plugins': {'testinfra': '5.0.0', 'html': '3.1.1', 'metadata': '3.0.0'}}                                                                                                                                                                         
rootdir: /root/wazuh-qa/tests/integration, configfile: pytest.ini                                                                                                                                                                                                                                                                                                                            
plugins: testinfra-5.0.0, html-3.1.1, metadata-3.0.0                                                                                                                                                                                                                                                                                                                                         
collected 2 items                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                             
../../tests/integration/test_vulnerability_detector/test_scan_types/test_baseline_scan_type.py::test_baseline_scan_start[RHEL] PASSED                                                                       [ 50%]                                                                                                                                                                           
../../tests/integration/test_vulnerability_detector/test_scan_types/test_baseline_scan_type.py::test_baseline_scan_alert[RHEL] PASSED                                                                       [100%]                                                                                                                                                                           
                                                                                                                                                                                                                                                                                                                                                                                             
=============================================================================================== 2 passed in 31.68s ================================================================================================                                                                                                                                                                          
root@wazuh:~/wazuh-qa/deps/wazuh_testing# python3.9 -m pytest -v ../../tests/integration/test_vulnerability_detector/test_scan_types/test_full_scan_type.py                                                                                                                                                                                                                                  
=============================================================================================== test session starts ===============================================================================================                                                                                                                                                                          
platform linux -- Python 3.9.18, pytest-7.1.2, pluggy-1.3.0 -- /usr/bin/python3.9                                                                                                                                                                                                                                                                                                            
cachedir: .pytest_cache                                                                                                                                                                                                                                                                                                                                                                      
metadata: {'Python': '3.9.18', 'Platform': 'Linux-5.15.74-1-pve-x86_64-with-glibc2.31', 'Packages': {'pytest': '7.1.2', 'pluggy': '1.3.0'}, 'Plugins': {'testinfra': '5.0.0', 'html': '3.1.1', 'metadata': '3.0.0'}}                                                                                                                                                                         
rootdir: /root/wazuh-qa/tests/integration, configfile: pytest.ini                                                                                                                                                                                                                                                                                                                            
plugins: testinfra-5.0.0, html-3.1.1, metadata-3.0.0                                                                                                                                                                                                                                                                                                                                         
collected 4 items                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                             
../../tests/integration/test_vulnerability_detector/test_scan_types/test_full_scan_type.py::test_full_scan_start[RHEL] PASSED                                                                               [ 25%]                                                                                                                                                                           
../../tests/integration/test_vulnerability_detector/test_scan_types/test_full_scan_type.py::test_full_scan_no_alert_after_no_changes[RHEL] PASSED                                                           [ 50%]                                                                                                                                                                           
../../tests/integration/test_vulnerability_detector/test_scan_types/test_full_scan_type.py::test_full_scan_alert_after_changes[RHEL] PASSED                                                                 [ 75%]                                                                                                                                                                           
../../tests/integration/test_vulnerability_detector/test_scan_types/test_full_scan_type.py::test_full_scan_remove_vulnerability_alert[RHEL] PASSED                                                          [100%]                                                                                                                                                                           
                                                                                                                                                                                                                                                                                                                                                                                             
========================================================================================== 4 passed in 80.28s (0:01:20) ===========================================================================================                                                                                                                                                                          
root@wazuh:~/wazuh-qa/deps/wazuh_testing# python3.9 -m pytest -v ../../tests/integration/test_vulnerability_detector/test_scan_types/test_partial_scan_type.py                                                                                                                                                                                                                               
=============================================================================================== test session starts ===============================================================================================                                                                                                                                                                          
platform linux -- Python 3.9.18, pytest-7.1.2, pluggy-1.3.0 -- /usr/bin/python3.9                                                                                                                                                                                                                                                                                                            
cachedir: .pytest_cache                                                                                                                                                                                                                                                                                                                                                                      
metadata: {'Python': '3.9.18', 'Platform': 'Linux-5.15.74-1-pve-x86_64-with-glibc2.31', 'Packages': {'pytest': '7.1.2', 'pluggy': '1.3.0'}, 'Plugins': {'testinfra': '5.0.0', 'html': '3.1.1', 'metadata': '3.0.0'}}                                                                                                                                                                         
rootdir: /root/wazuh-qa/tests/integration, configfile: pytest.ini                                                                                                                                                                                                                                                                                                                            
plugins: testinfra-5.0.0, html-3.1.1, metadata-3.0.0                                                                                                                                                                                                                                                                                                                                         
collected 4 items                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                             
../../tests/integration/test_vulnerability_detector/test_scan_types/test_partial_scan_type.py::test_partial_scan_start[RHEL] PASSED                                                                         [ 25%]                                                                                                                                                                           
../../tests/integration/test_vulnerability_detector/test_scan_types/test_partial_scan_type.py::test_partial_scan_no_alert_after_no_changes[RHEL] PASSED                                                     [ 50%]                                                                                                                                                                           
../../tests/integration/test_vulnerability_detector/test_scan_types/test_partial_scan_type.py::test_partial_scan_alert_after_changes[RHEL] PASSED                                                           [ 75%]                                                                                                                                                                           
../../tests/integration/test_vulnerability_detector/test_scan_types/test_partial_scan_type.py::test_partial_scan_remove_vulnerability_alert[RHEL] PASSED                                                    [100%]                                                                                                                                                                           
                                                                                                                                                                                                                                                                                                                                                                                             
========================================================================================== 4 passed in 91.70s (0:01:31) ===========================================================================================

MarcelKemp
MarcelKemp previously approved these changes Sep 26, 2023
@Dwordcito Dwordcito changed the base branch from master to 4.5.3 September 27, 2023 16:03
@Dwordcito Dwordcito dismissed MarcelKemp’s stale review September 27, 2023 16:03

The base branch was changed.

@Dwordcito Dwordcito changed the base branch from 4.5.3 to master September 27, 2023 16:06
@MarcelKemp MarcelKemp changed the base branch from master to 4.5.3 September 27, 2023 18:24
@tdrauncieal tdrauncieal force-pushed the 3040-rhel9-vd-it branch 6 times, most recently from ff14180 to a4bb896 Compare September 27, 2023 23:15
MarcelKemp
MarcelKemp previously approved these changes Sep 28, 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.

@MarcelKemp MarcelKemp changed the base branch from 4.5.3 to 4.6.0 September 28, 2023 11:47
@Dwordcito
Copy link
Member

Dwordcito commented Oct 3, 2023

@juliamagan I need your approval here to be able to do the merge, the failure that you show is due to the changes (the SUSE fix wazuh/wazuh#19217) not yet being merged from 4.5.3 to 4.6.0

@davidjiglesias

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

@Dwordcito Dwordcito merged commit c26e3bd into 4.6.0 Oct 4, 2023
4 checks passed
@Dwordcito Dwordcito deleted the 3040-rhel9-vd-it branch October 4, 2023 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integration tests for Vulnerability Detector: Red Hat 9 support
4 participants