Unverified Commit f3b2d2a9 authored by Julien Pivotto's avatar Julien Pivotto Committed by GitHub
Browse files

Fix config tests in main branch (#8767)

The merge of 8761 did not catch that the secrets were off by one
because it was not rebased on top of 8693.
Signed-off-by: default avatarJulien Pivotto <roidelapluie@inuits.eu>
parent fa184a5f
......@@ -915,7 +915,7 @@ func TestElideSecrets(t *testing.T) {
yamlConfig := string(config)
matches := secretRe.FindAllStringIndex(yamlConfig, -1)
require.Equal(t, 13, len(matches), "wrong number of secret matches found")
require.Equal(t, 14, len(matches), "wrong number of secret matches found")
require.NotContains(t, yamlConfig, "mysecret",
"yaml marshal reveals authentication credentials.")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment