From cd34975bfa1efb4d2b726d572385861e9f4675f0 Mon Sep 17 00:00:00 2001 From: "Sean T. Allen" Date: Thu, 16 Feb 2023 10:07:04 -0500 Subject: [PATCH] Make a couple tests match the naming convention around them A couple of tests had a _ between Enforce and CreateContainer that isn't part of the naming scheme we came up with for the rego policy tests. This commit fixes those variances. Signed-off-by: Sean T. Allen --- pkg/securitypolicy/regopolicy_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/securitypolicy/regopolicy_test.go b/pkg/securitypolicy/regopolicy_test.go index 2880be3d1e..c985c72118 100644 --- a/pkg/securitypolicy/regopolicy_test.go +++ b/pkg/securitypolicy/regopolicy_test.go @@ -887,7 +887,7 @@ func Test_Rego_EnforceCreateContainer(t *testing.T) { } } -func Test_Rego_Enforce_CreateContainer_Start_All_Containers(t *testing.T) { +func Test_Rego_EnforceCreateContainer_Start_All_Containers(t *testing.T) { f := func(p *generatedConstraints) bool { securityPolicy := p.toPolicy() defaultMounts := generateMounts(testRand) @@ -932,7 +932,7 @@ func Test_Rego_Enforce_CreateContainer_Start_All_Containers(t *testing.T) { } if err := quick.Check(f, &quick.Config{MaxCount: 50, Rand: testRand}); err != nil { - t.Errorf("Test_Rego_Enforce_CreateContainer_Start_All_Containers: %v", err) + t.Errorf("Test_Rego_EnforceCreateContainer_Start_All_Containers: %v", err) } } @@ -3957,7 +3957,7 @@ func Test_Rego_EnvListGetsRedacted(t *testing.T) { } } -func Test_Rego_Enforce_CreateContainer_ConflictingAllowStdioAccessHasErrorMessage(t *testing.T) { +func Test_Rego_EnforceCreateContainer_ConflictingAllowStdioAccessHasErrorMessage(t *testing.T) { constraints := generateConstraints(testRand, 1) constraints.containers[0].AllowStdioAccess = true