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

Fix 'test_feeds/test_download_feeds' tests in 4.2 #1542

Closed
1 of 4 tasks
damarisg opened this issue Jul 5, 2021 · 4 comments
Closed
1 of 4 tasks

Fix 'test_feeds/test_download_feeds' tests in 4.2 #1542

damarisg opened this issue Jul 5, 2021 · 4 comments

Comments

@damarisg
Copy link
Member

damarisg commented Jul 5, 2021

Issue information

Related issue
Closes #1531

When it comes to starting with the test fix, there is some information that can help you:

Module: Vulnerability Detector
Support Team:  "binary beasts"
Target: Manager   
OS: Linux

I add some information obtained while researched the logs that failed.

Type Description
Test Path test_feeds/test_download_feeds
Consistent No
Test Execution 2/3 executions failed
Cases nvd, msu, json_redhat
Cases Fails 3
Summary On test_download_feeds we detect that fail when called to make_vuln_callback because can't download provider in effect it can't see on the monitor log.
Error message "The provider National Vulnerability Database download has taken more than 30 minutes"

In order to finish this issue the following tasks should be fulfilled:

  • Research of fails.
  • Apply Fix on the Test.
  • Full Green/ Full Yellow in test_feeds/test_download_feeds for 3 times.
  • Documentation of any important change done for these tests or the used tools.
@damarisg damarisg changed the title Fix test_feeds/test_download_feeds tests in 4.2 Fix test_feeds/test_download_feeds tests in 4.2 Jul 6, 2021
@damarisg damarisg changed the title Fix test_feeds/test_download_feeds tests in 4.2 Fix 'test_feeds/test_download_feeds' tests in 4.2 Jul 6, 2021
@damarisg damarisg self-assigned this Jul 7, 2021
@damarisg
Copy link
Member Author

07-07-21

  • Problems with the environment
  • Launch Test to verify if the issue is correct.

08-07-21

Working on NVD case:

  • Launch test:

    • When I launch all cases Failed, It has problems verifying the message that we wait for, another problem is that the database is blocked when I try to download a lot of versions. (In this case from 2002)
    • Launched only fail case, and I obtain a PASS.
    • Launched only the fail case with another year (2016 and 2010) and It works.
  • Launch manually:

  • Launch only failed case and I see that it work how we expected. it receives logs expected.

  • I will modify access to the database to see if it a problem here.

@mdengra mdengra self-assigned this Jul 19, 2021
@mdengra
Copy link
Contributor

mdengra commented Jul 20, 2021

2021-07-20

Used Wazuh-QA branch: 1531-full-yellow-vuln-det
Test results with the modules sca, syscollector and rootcheck modules disabled in the ossec.conf:

Test Executions Date By Status
test_download_feeds_local_2020_dm_r1.log 2021-07-20 Miguel 🟡
test_download_feeds_local_2020_dm_r2.log 2021-07-20 Miguel 🟡
test_download_feeds_local_2020_dm_r3.log 2021-07-20 Miguel 🟡

mdengra added a commit that referenced this issue Jul 20, 2021
Set 2020 as the minimum update year for redhat, nvd and msu feeds.

Closes: #1542
mdengra added a commit that referenced this issue Jul 21, 2021
Delete duplicate lines that stop and start the wazuh-db service again.

Closes: #1542
@damarisg
Copy link
Member Author

damarisg commented Jul 23, 2021

PR #1617 changed the upgrade from the year.

We can see on ossec.log the log expected. This issue is blocked because of the continued inconsistency of FileMonitor issue.

Test Results after to merge:

Test Executions Date By Status
YellowDownloadFeed.log 2021-07-23 Seyla 🔴
YellowDownloadFeed2.log 2021-07-23 Seyla 🔴
YellowDownloadFeed3.log 2021-07-23 Seyla 🔴

@damarisg
Copy link
Member Author

This issue is closed because the test was disabled by #1602

juliamagan pushed a commit that referenced this issue Sep 30, 2021
Set 2020 as the minimum update year for redhat, nvd and msu feeds.

Closes: #1542
juliamagan pushed a commit that referenced this issue Sep 30, 2021
Delete duplicate lines that stop and start the wazuh-db service again.

Closes: #1542
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants