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

Remove: feed self test check #896

Merged
merged 1 commit into from
May 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions ospd_openvas/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
from ospd_openvas.openvas import NASLCli, Openvas
from ospd_openvas.vthelper import VtHelper
from ospd_openvas.messaging.mqtt import MQTTClient, MQTTDaemon, MQTTSubscriber
from ospd_openvas.feed import Feed

SENTRY_DSN_OSPD_OPENVAS = environ.get("SENTRY_DSN_OSPD_OPENVAS")
if SENTRY_DSN_OSPD_OPENVAS:
Expand Down Expand Up @@ -655,10 +654,10 @@ def check_feed_self_test(self) -> Dict:
else:
feed_status["lockfile_in_use"] = '1'

feed = Feed()
_exit_error, _error_msg = feed.perform_feed_sync_self_test_success()
feed_status["self_test_exit_error"] = str(_exit_error)
feed_status["self_test_error_msg"] = _error_msg
# The feed self test is not performed any more, but the following
# entries are kept for backward compatibility.
feed_status["self_test_exit_error"] = "0"
feed_status["self_test_error_msg"] = None

return feed_status

Expand Down
36 changes: 0 additions & 36 deletions ospd_openvas/feed.py

This file was deleted.

42 changes: 0 additions & 42 deletions tests/test_feed.py

This file was deleted.