Skip to content

Commit 2955aca

Browse files
committed
keychain(test): can delete a non-existent secret
Signed-off-by: Alano Terblanche <18033717+Benehiko@users.noreply.github.com>
1 parent 6f55188 commit 2955aca

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

store/keychain/keychain_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,10 @@ func TestKeychain(t *testing.T) {
8585
_, err := ks.Get(t.Context(), id)
8686
require.ErrorIs(t, err, store.ErrCredentialNotFound)
8787
})
88+
89+
t.Run("delete non-existent credential", func(t *testing.T) {
90+
id := store.ID("com.test.test/test/does-not-exist")
91+
require.NoError(t, id.Valid())
92+
require.NoError(t, ks.Delete(t.Context(), id))
93+
})
8894
}

0 commit comments

Comments
 (0)