-
Notifications
You must be signed in to change notification settings - Fork 386
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
Add E2E testcase for ANP toService egress rules on multi-cluster Service #3140
Add E2E testcase for ANP toService egress rules on multi-cluster Service #3140
Conversation
Codecov Report
@@ Coverage Diff @@
## feature/multi-cluster #3140 +/- ##
=========================================================
+ Coverage 40.21% 40.95% +0.74%
=========================================================
Files 166 184 +18
Lines 20763 22186 +1423
=========================================================
+ Hits 8350 9087 +737
- Misses 11595 12189 +594
- Partials 818 910 +92
Flags with carried forward coverage won't be shown. Click here to find out more.
|
3b8352e
to
3ebb5f2
Compare
func decideProbeResult(stderr string, probeNum int) antreae2e.PodConnectivityMark { | ||
countConnected := probeNum - strings.Count(stderr, "\n") | ||
countDropped := strings.Count(stderr, "TIMEOUT") | ||
// For our UDP rejection cases, agnhost will return: |
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 am wondering is OK to test TCP only Service? we only create and export a nginx service with TCP port. or there is actually no difference?
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 think we should be okay there. ANP on UDP / SCTP traffic is tested extensively in non-multicluster e2e testcases. The major thing to be tested here IMO is that if a policy can be correctly applied to a Service clusterIP exported from another cluster
f9e5f48
to
fb5ddfc
Compare
3ebb5f2
to
d6559bb
Compare
d6559bb
to
f35915c
Compare
/test-multicluster-e2e |
6563d58
to
c52470e
Compare
/test-multicluster-e2e |
c52470e
to
fc6fb08
Compare
/test-multicluster-e2e |
3804e71
to
f329186
Compare
/test-multicluster-e2e |
f329186
to
6ba8108
Compare
/test-multicluster-e2e |
Hi @Dyanngg Could you help to resolve those conflicts. I think you can merge it after fix. thanks. |
Signed-off-by: Yang Ding <[email protected]>
6ba8108
to
1941bf8
Compare
Solved merge conflicts caused by base patch merge /test-multicluster-e2e |
Signed-off-by: Yang Ding <[email protected]>
Signed-off-by: Yang Ding <[email protected]>
Signed-off-by: Dyanngg <[email protected]>
Signed-off-by: Dyanngg <[email protected]>
Signed-off-by: Dyanngg <[email protected]>
Signed-off-by: Dyanngg <[email protected]>
Signed-off-by: Dyanngg <[email protected]>
Signed-off-by: Dyanngg <[email protected]>
PR based on #3124. Only the last commit is relevant to this PR.