We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16fc0a0 commit 07103baCopy full SHA for 07103ba
store/ssmstore_test.go
@@ -292,6 +292,16 @@ func TestList(t *testing.T) {
292
assert.Equal(t, "value", *secret.Value)
293
}
294
})
295
+
296
+ t.Run("List should only return exact matches on service name", func(t *testing.T) {
297
+ store.Write(SecretId{Service: "match", Key: "a"}, "val")
298
+ store.Write(SecretId{Service: "matchlonger", Key: "a"}, "val")
299
300
+ s, err := store.List("match", false)
301
+ assert.Nil(t, err)
302
+ assert.Equal(t, 1, len(s))
303
+ assert.Equal(t, "match.a", s[0].Meta.Key)
304
+ })
305
306
307
func TestHistory(t *testing.T) {
0 commit comments