-
Notifications
You must be signed in to change notification settings - Fork 298
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/ENH: HttpMixin refactored and various fixes #2151
base: develop
Are you sure you want to change the base?
Conversation
60181b1
to
2d39d0b
Compare
d0ad85c
to
f3ae806
Compare
Codecov Report
@@ Coverage Diff @@
## develop #2151 +/- ##
===========================================
+ Coverage 76.34% 76.40% +0.06%
===========================================
Files 441 441
Lines 23652 23560 -92
Branches 3739 3729 -10
===========================================
- Hits 18058 18002 -56
+ Misses 4857 4836 -21
+ Partials 737 722 -15
|
f3ae806
to
ede84f7
Compare
**General** Removed 'requests' MissingDependencyError, because requests is a core lib from intelmq Removed HTTP variables from Bot class in favor of HttpMixin Removed trying to import requests in pipeline, its a core lib from intelmq Added additional configuration variables to HttpMixin ( from Bot class ) **Bots** GitHub API is now using HttpMixin MS Azure Collector is now using HttpMixin DO-Portal Expert is now using HttpMixin GeoHash using MissingDependencyError instead of ValueError (consistency) HttpContentExpert is now using HttpMixin HttpStatusExpert is now using HttpMixin NationalCERTContactCertATExpert is now using HttpMixin RDAPExpert is now using HttpMixin RIPEExpert is now using HttpMixin SplunkSavedSearchExpert is now using HttpMixin TuencyExpert is now using HttpMixin RestAPIOutput is now using HttpMixin **Bot tests** GitHub API Collector is now using requests_mock instead of MagicMock (consistency) RestAPI Output is now using correct headers Fixes #2150 Fixes #2137 Signed-off-by: Sebastian Waldbauer <[email protected]>
ede84f7
to
4527da7
Compare
@@ -23,7 +23,7 @@ | |||
create_configuration = None # noqa | |||
|
|||
|
|||
class MicrosoftAzureCollectorBot(CollectorBot, CacheMixin): | |||
class MicrosoftAzureCollectorBot(CollectorBot, CacheMixin, HttpMixin): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it used here? The bot uses the azure library and the parameters http_proxy
and https_proxy
are used by direct access.
http_username: str = None | ||
http_password: str = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
http_username: str = None | |
http_password: str = None | |
http_username: Optional[str] = None | |
http_password: Optional[str] = None |
General
Removed 'requests' MissingDependencyError, because requests is a core lib from intelmq
Removed HTTP variables from Bot class in favor of HttpMixin
Removed trying to import requests in pipeline, its a core lib from intelmq
Added additional configuration variables to HttpMixin ( from Bot class )
Bots
GitHub API is now using HttpMixin
MS Azure Collector is now using HttpMixin
DO-Portal Expert is now using HttpMixin
GeoHash using MissingDependencyError instead of ValueError (consistency)
HttpContentExpert is now using HttpMixin
HttpStatusExpert is now using HttpMixin
NationalCERTContactCertATExpert is now using HttpMixin
RDAPExpert is now using HttpMixin
RIPEExpert is now using HttpMixin
SplunkSavedSearchExpert is now using HttpMixin
TuencyExpert is now using HttpMixin
RestAPIOutput is now using HttpMixin
Bot tests
GitHub API Collector is now using requests_mock instead of MagicMock (consistency)
RestAPI Output is now using correct headers
Fixes #2150
Fixes #2137