From 40452b37dc8ab8eec43b9479cbd0a8c40bb9b20e Mon Sep 17 00:00:00 2001 From: Adrian Stobbe Date: Thu, 5 Dec 2024 09:18:08 +0100 Subject: [PATCH] fixup! add test --- e2e/policy/deterministic_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/policy/deterministic_test.go b/e2e/policy/deterministic_test.go index 45a16df17..599c6b3d4 100644 --- a/e2e/policy/deterministic_test.go +++ b/e2e/policy/deterministic_test.go @@ -19,8 +19,8 @@ import ( ) func TestDeterminsticPolicyGeneration(t *testing.T) { - platform, err := platforms.FromString(platformStr) require := require.New(t) + platform, err := platforms.FromString(platformStr) require.NoError(err) skipUndeploy := true // doesn't matter, because we don't deploy ct := contrasttest.New(t, imageReplacementsFile, namespaceFile, platform, skipUndeploy) @@ -29,7 +29,7 @@ func TestDeterminsticPolicyGeneration(t *testing.T) { runtimeHandler, err := manifest.RuntimeHandler(platform) require.NoError(err) resources := kuberesource.OpenSSL() - coordinatorBundle := kuberesource.CoordinatorBundle() + coordinatorBundle := kuberesource.CoordinatorBundle() // only required because ct.Generate requires the coordinator hash file to be present resources = append(resources, coordinatorBundle...) resources = kuberesource.PatchRuntimeHandlers(resources, runtimeHandler) unstructuredResources, err := kuberesource.ResourcesToUnstructured(resources)