-
Notifications
You must be signed in to change notification settings - Fork 62
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
e2e test for Kmesh daemon restart #661
Conversation
Signed-off-by: YaoZengzeng <[email protected]>
/hold |
Codecov ReportAll modified and coverable lines are covered by tests ✅
see 2 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Signed-off-by: YaoZengzeng <[email protected]>
5d346fb
to
5f467af
Compare
Signed-off-by: YaoZengzeng <[email protected]>
5f467af
to
45ec225
Compare
/unhold |
@hzxuzhonghu PTAL |
test/e2e/baseline_test.go
Outdated
@@ -574,6 +578,73 @@ func TestRemoveAddNsOrServiceWaypoint(t *testing.T) { | |||
} | |||
} | |||
|
|||
func TestKmeshRestart(t *testing.T) { |
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.
Prefer split restart tests into restart_test.go
@@ -176,6 +180,7 @@ func SetupApps(t resource.Context, i istio.Instance, apps *EchoDeployments) erro | |||
} | |||
apps.All = echos | |||
apps.EnrolledToKmesh = match.ServiceName(echo.NamespacedName{Name: EnrolledToKmesh, Namespace: apps.Namespace}).GetMatches(echos) | |||
apps.ServiceWithWaypointAtServiceGranularity = match.ServiceName(echo.NamespacedName{Name: ServiceWithWaypointAtServiceGranularity, Namespace: apps.Namespace}).GetMatches(echos) |
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 confused how did you test waypoint-captuired service before without an app
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.
waypoint-captured service has always existed. We are not going to creat here, but just assign it to this variable for easy use in test case later.
Signed-off-by: YaoZengzeng <[email protected]>
@hzxuzhonghu updated |
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.
/lgtm
@@ -74,6 +74,9 @@ type EchoDeployments struct { | |||
// The echo service which is enrolled to Kmesh without waypoint. | |||
EnrolledToKmesh echo.Instances | |||
|
|||
// The echo service which is enrolled to Kmesh and with service waypoint. | |||
ServiceWithWaypointAtServiceGranularity echo.Instances | |||
|
|||
// WaypointProxies by |
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.
nit: by what
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hzxuzhonghu 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 |
What type of PR is this?
/kind enhancement
What this PR does / why we need it:
Add E2E case for that managed applications can work properly before, during and after Kmesh daemon restart
Which issue(s) this PR fixes:
Fixes part of #642
Special notes for your reviewer:
Does this PR introduce a user-facing change?: