mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
integration/config: add check for removing non-existing config
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
1a7ffe4fe4
commit
cdc39fa29c
1 changed files with 4 additions and 0 deletions
|
@ -149,6 +149,10 @@ func TestConfigsCreateAndDelete(t *testing.T) {
|
|||
assert.Check(t, errdefs.IsNotFound(err))
|
||||
assert.Check(t, is.ErrorContains(err, configID))
|
||||
|
||||
err = c.ConfigRemove(ctx, "non-existing")
|
||||
assert.Check(t, errdefs.IsNotFound(err))
|
||||
assert.Check(t, is.ErrorContains(err, "non-existing"))
|
||||
|
||||
testName = "test_secret_with_labels_" + t.Name()
|
||||
configID = createConfig(ctx, t, c, testName, []byte("TESTINGDATA"), map[string]string{
|
||||
"key1": "value1",
|
||||
|
|
Loading…
Reference in a new issue