Skip to content
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

Merged
merged 1 commit into from
Jan 15, 2022

Conversation

Dyanngg
Copy link
Contributor

@Dyanngg Dyanngg commented Dec 14, 2021

PR based on #3124. Only the last commit is relevant to this PR.

@codecov-commenter
Copy link

Codecov Report

Merging #3140 (3b8352e) into feature/multi-cluster (f55dbad) will increase coverage by 0.74%.
The diff coverage is 53.14%.

Impacted file tree graph

@@                    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     
Flag Coverage Δ
unit-tests 40.95% <53.14%> (+0.74%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...llers/multicluster/leader_clusterset_controller.go 0.00% <0.00%> (ø)
...llers/multicluster/member_clusterset_controller.go 0.00% <0.00%> (ø)
...lticluster/core/mock_remote_common_area_manager.go 23.80% <23.80%> (ø)
...ontrollers/multicluster/core/remote_common_area.go 29.54% <29.54%> (ø)
...llers/multicluster/core/mock_remote_common_area.go 31.70% <31.70%> (ø)
...uster/controllers/multicluster/stale_controller.go 47.05% <47.05%> (ø)
...rs/multicluster/core/remote_common_area_manager.go 63.93% <63.93%> (ø)
...llers/multicluster/core/fake_remote_common_area.go 66.66% <66.66%> (ø)
...ers/multicluster/core/resourceimport_controller.go 68.66% <68.66%> (ø)
...ntrollers/multicluster/serviceexport_controller.go 70.15% <70.15%> (ø)
... and 11 more

@luolanzone luolanzone added the area/multi-cluster Issues or PRs related to multi cluster. label Dec 15, 2021
multicluster/test/e2e/framework.go Outdated Show resolved Hide resolved
multicluster/test/e2e/framework.go Outdated Show resolved Hide resolved
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:
Copy link
Contributor

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?

Copy link
Contributor Author

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

@luolanzone luolanzone force-pushed the feature/multi-cluster branch from f9e5f48 to fb5ddfc Compare December 22, 2021 01:08
@tnqn tnqn added this to the Antrea v1.5 release milestone Jan 4, 2022
@Dyanngg Dyanngg changed the title [WIP] Add E2E testcase for ANP toService egress rules on multi-cluster Service Add E2E testcase for ANP toService egress rules on multi-cluster Service Jan 4, 2022
@Dyanngg
Copy link
Contributor Author

Dyanngg commented Jan 6, 2022

/test-multicluster-e2e

@Dyanngg Dyanngg force-pushed the mcs-to-svc-e2e branch 7 times, most recently from 6563d58 to c52470e Compare January 12, 2022 00:17
@Dyanngg
Copy link
Contributor Author

Dyanngg commented Jan 12, 2022

/test-multicluster-e2e

@Dyanngg
Copy link
Contributor Author

Dyanngg commented Jan 12, 2022

/test-multicluster-e2e

@Dyanngg Dyanngg force-pushed the mcs-to-svc-e2e branch 3 times, most recently from 3804e71 to f329186 Compare January 12, 2022 16:34
@Dyanngg
Copy link
Contributor Author

Dyanngg commented Jan 12, 2022

/test-multicluster-e2e

@Dyanngg
Copy link
Contributor Author

Dyanngg commented Jan 12, 2022

/test-multicluster-e2e

@luolanzone
Copy link
Contributor

Hi @Dyanngg Could you help to resolve those conflicts. I think you can merge it after fix. thanks.

@Dyanngg
Copy link
Contributor Author

Dyanngg commented Jan 14, 2022

Solved merge conflicts caused by base patch merge /test-multicluster-e2e

@luolanzone luolanzone merged commit c0a5ea3 into antrea-io:feature/multi-cluster Jan 15, 2022
luolanzone pushed a commit to luolanzone/antrea that referenced this pull request Jan 16, 2022
luolanzone pushed a commit to luolanzone/antrea that referenced this pull request Jan 18, 2022
luolanzone pushed a commit to luolanzone/antrea that referenced this pull request Jan 18, 2022
luolanzone pushed a commit to luolanzone/antrea that referenced this pull request Jan 19, 2022
luolanzone pushed a commit that referenced this pull request Jan 19, 2022
luolanzone pushed a commit to luolanzone/antrea that referenced this pull request Jan 20, 2022
luolanzone pushed a commit to luolanzone/antrea that referenced this pull request Jan 20, 2022
yanjunz97 pushed a commit to yanjunz97/antrea that referenced this pull request Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/multi-cluster Issues or PRs related to multi cluster.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants