feat(decl/resources): introduce test resource concept and clientServer resource #232
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.
What type of PR is this?
/kind feature
Any specific area of the project related to this PR?
/area pkg
What this PR does / why we need it:
This PR introduces the concept of test resource and the
clientServer
test resource.A test resource abstracts a resource the user wants to use in a test, hiding the implementation details and letting the user focus only on the action that will trigger the Falco rule.
The
clientServer
test resource sets up a client and a server, and enables their communication by tuning the underlying network infrastructure. The user can specifyudp4
,udp6
,tcp4
,tcp6
orunix
as transport protocol. For connection-oriented transport protocols, the client is automatically connected to the server. The resource enables field binding to both client and server information.The PR also removes a print statement in the
socket
system call test step.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer: