From 1a89953ea0d8769a5ff1c811e2def426e9493b8e Mon Sep 17 00:00:00 2001 From: Kim Christensen Date: Fri, 15 Nov 2024 23:22:27 +0100 Subject: [PATCH] chore(test): Stabilize TestResolveSensitiveParameters Signed-off-by: Kim Christensen --- pkg/runtime/runtime_manifest_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/runtime/runtime_manifest_test.go b/pkg/runtime/runtime_manifest_test.go index 02d54be08..71d56b503 100644 --- a/pkg/runtime/runtime_manifest_test.go +++ b/pkg/runtime/runtime_manifest_test.go @@ -329,11 +329,13 @@ install: require.Len(t, args, 3) assert.Equal(t, "deliciou$dubonnet", args[0]) - assert.Equal(t, "{\"secret\":\"this_is_secret\"}", args[1]) + assert.Equal(t, "{\"secret\":\"this_is_secret\"}", args[1]) assert.Equal(t, "regular param value", args[2]) // There should now be one sensitive value tracked under the manifest - assert.Equal(t, []string{"deliciou$dubonnet", "{\"secret\":\"this_is_secret\"}"}, rm.GetSensitiveValues()) + assert.Len(t, rm.GetSensitiveValues(), 2) + assert.Contains(t, rm.GetSensitiveValues(), "deliciou$dubonnet") + assert.Contains(t, rm.GetSensitiveValues(), "{\"secret\":\"this_is_secret\"}") } func TestResolveCredential(t *testing.T) {