Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make a couple tests match the naming convention around them #1664

Merged
merged 1 commit into from
Feb 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pkg/securitypolicy/regopolicy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
}
}

Expand Down Expand Up @@ -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

Expand Down