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

Change tor_exit_nodes feed to use the Tor Onionoo API + introduce tests #1029

Merged
merged 9 commits into from
Mar 23, 2024

Conversation

itsmvd
Copy link
Contributor

@itsmvd itsmvd commented Feb 29, 2024

and move test helper files to a separate module

@@ -13,48 +13,11 @@
from core.schemas.indicator import DiamondModel
from core.schemas.observable import ObservableType
from plugins.analytics.public import censys, expire_tags, shodan
from core.database_arango import ArangoYetiConnector
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Needs to be removed

tests/feeds.py Outdated
defaults["name"] = "FeodoTrackerIPBlocklist"
feed = feodo_tracker_ip_blocklist.FeodoTrackerIPBlockList(**defaults)
feed.run()
# def test_feodo_tracker_ip_blocklist(self):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Need to uncomment all these, was for debug purposes

Copy link
Collaborator

Choose a reason for hiding this comment

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

Whenever you feel ready :)

@itsmvd itsmvd changed the title Change tor_exit_nodes feed to use the Tor Onionoo API Change tor_exit_nodes feed to use the Tor Onionoo API + introduce tests Feb 29, 2024
Copy link
Collaborator

@tomchop tomchop left a comment

Choose a reason for hiding this comment

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

Minor changes, otherwise this looks good! Thanks :)

tests/feeds.py Outdated
defaults["name"] = "FeodoTrackerIPBlocklist"
feed = feodo_tracker_ip_blocklist.FeodoTrackerIPBlockList(**defaults)
feed.run()
# def test_feodo_tracker_ip_blocklist(self):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Whenever you feel ready :)

tests/helpers.py Outdated Show resolved Hide resolved
tests/tor_exit_nodes_test.py Outdated Show resolved Hide resolved
@itsmvd itsmvd requested a review from tomchop March 22, 2024 16:44
Copy link
Collaborator

@tomchop tomchop left a comment

Choose a reason for hiding this comment

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

Thanks a lot!

@tomchop tomchop merged commit 32e582e into yeti-platform:main Mar 23, 2024
2 checks passed
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.

None yet

2 participants