-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Prepare tests for Windows containerd support #42164
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -6,6 +6,7 @@ import ( | |||||||||||||||||||||
| "testing" | ||||||||||||||||||||||
| "time" | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| containerderrdefs "github.com/containerd/containerd/errdefs" | ||||||||||||||||||||||
| "github.com/docker/docker/api/types" | ||||||||||||||||||||||
| "github.com/docker/docker/api/types/events" | ||||||||||||||||||||||
| "github.com/docker/docker/api/types/filters" | ||||||||||||||||||||||
|
|
@@ -62,7 +63,7 @@ func TestPauseFailsOnWindowsServerContainers(t *testing.T) { | |||||||||||||||||||||
| poll.WaitOn(t, container.IsInState(ctx, client, cID, "running"), poll.WithDelay(100*time.Millisecond)) | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| err := client.ContainerPause(ctx, cID) | ||||||||||||||||||||||
| assert.Check(t, is.ErrorContains(err, "cannot pause Windows Server Containers")) | ||||||||||||||||||||||
| assert.Check(t, is.ErrorContains(err, containerderrdefs.ErrNotImplemented.Error())) | ||||||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The daemon may be converting it from the containerd error type; Lines 186 to 187 in 81dbed4
And on the client side, will handle it as an Lines 79 to 83 in 81dbed4
Oh, actually, it may not be converted; looking at Lines 41 to 43 in 7b9275c
It just trumps the error-type, and converts it into a generic error (likely will return a |
||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| func TestPauseStopPausedContainer(t *testing.T) { | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.