-
Notifications
You must be signed in to change notification settings - Fork 58
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
Consider individually supplied alive test methods #331
Conversation
c83eeed
to
f5ebfb2
Compare
@ArnoStiefvater what about this PR? |
This PR will be updated and marked for review soon. |
Alive test methods can now be specified not only via bit flag but also via single xml elements for evert method. This commit allows the use of these single elements.
Transform the specified alive test methods into a bit field as used in most of the gvm components via a seperate function.
Use fallback icmp ping method for boreas if no valid method was provided.
Alive test methods are supplied via seperate elements. E.g. <alive_test_methods> <icmp>1</icmp> <arp>1</arp> </alive_test_methods>
f5ebfb2
to
53c2504
Compare
Codecov Report
@@ Coverage Diff @@
## master #331 +/- ##
==========================================
+ Coverage 84.16% 84.39% +0.23%
==========================================
Files 9 9
Lines 1471 1493 +22
==========================================
+ Hits 1238 1260 +22
Misses 233 233
Continue to review full report at Codecov.
|
Handle the case when the alive test was supplied via seperate elements. Also fix traceback when no valid alive test was supplied by checking if alive_test_opt is empty before trying to add them to the preferences.
Add test for invalid alive test. Add test for alive test supplied via seperete elements. Add test for empty alive test elements.
Changed dependabot schedule to weekly
What:
Alive test methods can now be specified not only via bit field but also via single xml elements for every method. This PR allows the use of these single elements.
Alive test supplied via <alive_test> takes precedence over alive test methods supplied vi <alive_test_methods> element.
PR also fixes stack trace when invalid alive test is supplied.
Dependend on:
greenbone/ospd#329
Why:
Better usability.
How:
Tested with python-gvm and following target description with different configurations.
Checklist: