Integration and api tests#2278
Open
Tehforsch wants to merge 43 commits into
Open
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Snapshot WarningsEnsure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice. OpenSSF Scorecard
Scanned Files
|
Tehforsch
force-pushed
the
integration-and-api-tests
branch
10 times, most recently
from
July 16, 2026 12:32
c9310c4 to
1a461e2
Compare
Tehforsch
force-pushed
the
integration-and-api-tests
branch
13 times, most recently
from
July 22, 2026 10:53
9ded6d2 to
016cf15
Compare
Tehforsch
marked this pull request as ready for review
July 22, 2026 11:30
Tehforsch
force-pushed
the
integration-and-api-tests
branch
from
July 23, 2026 08:46
016cf15 to
20c6683
Compare
This will allow customizing the `Request` in the future to allow neat ergonomics like `t.request(...).wait_for_status(...)`
These tests use openvas, but openvas has a global configuration pointing it at port 3000. We could thread a custom config for each openvas instance with different ports through the entire `openvasd` code, but I don't want to do that because it seems brittle, so instead we introduce a global lock on the openvas instance which all tests which use openvas compete for.
Tehforsch
force-pushed
the
integration-and-api-tests
branch
from
July 23, 2026 16:18
20c6683 to
912e481
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TODO: Fix the test which currently asserts on
plugin_feed_info.incbeing returned by GET/vtsRough structure:
src/openvasd/api_tests/.base.yamlwhich spawns all the necessary processes and a separateopenvasd.yamlwhich just spawnsopenvasd. The tests then take place by only spawningbase.yamland then insertingrust-tests.yamlinstead, which runs the unit test in a container similar toopenvasd.openvasshare a single centralopenvasinstance. To make sure things work smoothly, they contend for a shared lock so that they ever run in serial. After each test, the redis cache is cleared.