Skip to content

Commit

Permalink
fix: indentation error in test_download_feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
Deblintrake09 committed Jun 1, 2022
1 parent 021375f commit c2c0cb4
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def test_download_feeds(configuration, metadata, set_wazuh_configuration_vdt, tr
- r'Starting .* database update'
- r'The update of the .* feed finished successfully'
'''
if metadata['provider_os'] == 'BIONIC':
if metadata['provider_os'] == 'BIONIC':
pytest.xfail(reason='Ubuntu Bionic feed parsing error - Wazuh/Wazuh Issue #13556')

# Check that the feed update has started
Expand All @@ -143,7 +143,8 @@ def test_download_feeds(configuration, metadata, set_wazuh_configuration_vdt, tr
timeout=metadata['download_timeout'])

# Check that the timestamp of the feed metadata does not exceed the established threshold limit.
assert vd.feed_is_recently_updated(provider_name=metadata['provider_name'],
provider_os=metadata['provider_os'],
threshold_weeks=metadata['update_treshold_weeks']), '' \
f"The {metadata['provider_os']} feed has not been recently updated"
if metadata['update_treshold_weeks'] != 'None':
assert vd.feed_is_recently_updated(provider_name=metadata['provider_name'],
provider_os=metadata['provider_os'],
threshold_weeks=metadata['update_treshold_weeks']), '' \
f"The {metadata['provider_os']} feed has not been recently updated"

0 comments on commit c2c0cb4

Please sign in to comment.