Skip to content

Add tests for removing sandbox pod, without stopping it#887

Merged
anmaxvl merged 1 commit intomicrosoft:masterfrom
anmaxvl:tests-for-pod-removal-without-pod-stop
Nov 6, 2020
Merged

Add tests for removing sandbox pod, without stopping it#887
anmaxvl merged 1 commit intomicrosoft:masterfrom
anmaxvl:tests-for-pod-removal-without-pod-stop

Conversation

@anmaxvl
Copy link
Copy Markdown
Contributor

@anmaxvl anmaxvl commented Oct 26, 2020

No description provided.

@anmaxvl anmaxvl requested a review from a team as a code owner October 26, 2020 21:36
@anmaxvl anmaxvl force-pushed the tests-for-pod-removal-without-pod-stop branch from 1290b69 to a9adba7 Compare October 26, 2020 21:38
Comment thread test/cri-containerd/removepodsandbox_test.go Outdated
Comment thread test/cri-containerd/removepodsandbox_test.go Outdated
Comment thread test/cri-containerd/removepodsandbox_test.go Outdated
Comment thread test/cri-containerd/removepodsandbox_test.go Outdated
Comment thread test/cri-containerd/removepodsandbox_test.go Outdated
Comment thread test/cri-containerd/removepodsandbox_test.go Outdated
Comment thread test/cri-containerd/removepodsandbox_test.go Outdated
Comment thread test/cri-containerd/removepodsandbox_test.go Outdated
@anmaxvl anmaxvl force-pushed the tests-for-pod-removal-without-pod-stop branch from a9adba7 to 1bcdceb Compare October 27, 2020 22:40
Comment thread test/cri-containerd/removepodsandbox_test.go Outdated
Comment thread test/cri-containerd/removepodsandbox_test.go Outdated
Comment thread test/cri-containerd/removepodsandbox_test.go Outdated
@anmaxvl anmaxvl force-pushed the tests-for-pod-removal-without-pod-stop branch from 1bcdceb to 6cf51a5 Compare October 28, 2020 05:07
Comment thread test/cri-containerd/removepodsandbox_test.go Outdated
@anmaxvl anmaxvl force-pushed the tests-for-pod-removal-without-pod-stop branch from 6cf51a5 to d2de9d1 Compare October 29, 2020 21:32
}

func getRunPodSandboxRequest(t *testing.T, runtimeHandler string) runtime.RunPodSandboxRequest {
return runtime.RunPodSandboxRequest{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this, might be useful to replace all of the easy (e.g. nothing other than the runtime handler needing to be filled out) RunPodSandboxRequests we have in our tests with this also. Doesn't need to be this PR though :P

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll file a separate PR for this 😄

Comment thread test/cri-containerd/removepodsandbox_test.go Outdated
@dcantah
Copy link
Copy Markdown
Contributor

dcantah commented Nov 3, 2020

LGTM. Minor nitpicks on variables

@dcantah
Copy link
Copy Markdown
Contributor

dcantah commented Nov 6, 2020

@anmaxvl We can check this in whenever, you can do the honors :)

Signed-off-by: Maksim An <maksiman@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants