-
Notifications
You must be signed in to change notification settings - Fork 13
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
ROX-23967: Tenant network policies tests #1835
Conversation
Skipping CI for Draft Pull Request. |
/test all |
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.
High level comments -
Cool stuff :)
Might need to support multiple ports on test deployment, since e.g. Central has ~4 (2 monitoring, 1 UI, 1 data)
Nifty nginx usage and readiness check
I was thinking that we'd just redeploy with a different port. Do you think we need testing multiple ports simultaneously? |
I thought the test would set up a fake central, fake scanner, etc., create the netpols, and then do the connectivity checks in a bunch, instead of starting up/stopping deployments to change ports. If it's easier that way that's fine too :) |
I think it's easier, and I'd also just test one policy at a time. |
bf121c8
to
fdb59aa
Compare
fdb59aa
to
9c0ad49
Compare
default_type application/octet-stream; | ||
|
||
server { | ||
listen 8443; |
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.
Does this need to be parameterized on {{ .Values.service.port }}?
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.
I forgot to do that, good catch. I'll probably want to add some tests on different ports as well.
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.
Fixed
e1bb8bb
to
512bd51
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ebensh, vladbologa The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test e2e |
1 similar comment
/test e2e |
Description
This PR introduces tests for the tenant network policies.
The
fake-service
service andfake-client
deployment can then be used to mock ACS components, by applying the appropriate labels and setting the ports where they listen or connect to. They can easily be installed using Helm.They can then be used to write tests, such as the following:
They will run on OpenShift CI, as part of the e2e test suite.
Checklist (Definition of Done)
Test manual
ROX-12345: ...
Test manual
TODO: Add manual testing efforts