We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0154c9 commit 990c893Copy full SHA for 990c893
pkg/util/secretutil/secret_test.go
@@ -445,6 +445,16 @@ func TestGenerateSHAFromSecret(t *testing.T) {
445
data2: map[string][]byte{"key2": []byte("value2"), "key1": []byte("value1")},
446
expectedSHAMatch: true,
447
},
448
+ {
449
+ name: "different keys with the same concatenated result but should not match",
450
+ data1: map[string][]byte{
451
+ "key1": []byte("=value1"),
452
+ },
453
+ data2: map[string][]byte{
454
+ "key1=": []byte("value1"),
455
456
+ expectedSHAMatch: false,
457
458
}
459
460
for _, test := range tests {
0 commit comments