From acd49903312ae14ca8be45694a5fde3d7206a179 Mon Sep 17 00:00:00 2001 From: Adrian Stobbe Date: Wed, 4 Dec 2024 15:03:02 +0100 Subject: [PATCH] fixup! add test --- e2e/policy/deterministic_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/e2e/policy/deterministic_test.go b/e2e/policy/deterministic_test.go index 9f61ce16d5..a81fa08b76 100644 --- a/e2e/policy/deterministic_test.go +++ b/e2e/policy/deterministic_test.go @@ -38,6 +38,7 @@ func TestDeterminsticPolicyGeneration(t *testing.T) { // generate policy 5 times and check if the policy hash is the same var policies map[manifest.HexString]manifest.PolicyEntry for i := 0; i < 5; i++ { + t.Log("Generate run", i) require.NoError(os.WriteFile(path.Join(ct.WorkDir, "resources.yml"), buf, 0o644)) // reset file for each run require.True(t.Run("generate", ct.Generate), "contrast generate needs to succeed for subsequent tests") manifestBytes, err := os.ReadFile(ct.WorkDir + "/manifest.json") @@ -52,4 +53,5 @@ func TestDeterminsticPolicyGeneration(t *testing.T) { policies = m.Policies // only set policies on the first run } } + t.Log("Policies are deterministic") }