|
7 | 7 | "crypto/rand" |
8 | 8 | "testing" |
9 | 9 |
|
10 | | - cerrdefs "github.com/containerd/errdefs" |
| 10 | + "github.com/containerd/errdefs" |
11 | 11 | "github.com/docker/cli/cli/config/configfile" |
12 | 12 | "github.com/docker/cli/cli/context/docker" |
13 | 13 | "github.com/docker/cli/cli/context/store" |
@@ -158,21 +158,21 @@ func TestErrCreateDefault(t *testing.T) { |
158 | 158 | Metadata: testContext{Bar: "baz"}, |
159 | 159 | Name: "default", |
160 | 160 | }) |
161 | | - assert.Check(t, is.ErrorType(err, cerrdefs.IsInvalidArgument)) |
| 161 | + assert.Check(t, is.ErrorType(err, errdefs.IsInvalidArgument)) |
162 | 162 | assert.Error(t, err, "default context cannot be created nor updated") |
163 | 163 | } |
164 | 164 |
|
165 | 165 | func TestErrRemoveDefault(t *testing.T) { |
166 | 166 | meta := testDefaultMetadata() |
167 | 167 | s := testStore(t, meta, store.ContextTLSData{}) |
168 | 168 | err := s.Remove("default") |
169 | | - assert.Check(t, is.ErrorType(err, cerrdefs.IsInvalidArgument)) |
| 169 | + assert.Check(t, is.ErrorType(err, errdefs.IsInvalidArgument)) |
170 | 170 | assert.Error(t, err, "default context cannot be removed") |
171 | 171 | } |
172 | 172 |
|
173 | 173 | func TestErrTLSDataError(t *testing.T) { |
174 | 174 | meta := testDefaultMetadata() |
175 | 175 | s := testStore(t, meta, store.ContextTLSData{}) |
176 | 176 | _, err := s.GetTLSData("default", "noop", "noop") |
177 | | - assert.Check(t, is.ErrorType(err, cerrdefs.IsNotFound)) |
| 177 | + assert.Check(t, is.ErrorType(err, errdefs.IsNotFound)) |
178 | 178 | } |
0 commit comments