test

package
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertQueryResult

func AssertQueryResult(opaResults []opa_engine.QueryResult, policyName string, shouldBeViolated bool, t *testing.T)

func BuildFailedString

func BuildFailedString(expected bool, policy string) string

func FindPolicy

func FindPolicy(opaResults []opa_engine.QueryResult, policyName string) (*opa_engine.QueryResult, error)

func PolicyTestTemplate

func PolicyTestTemplate(t *testing.T, name string, mockData interface{}, ns namespace.Namespace, testedPolicyName string, expectFailure bool, scmType scm_type.ScmType)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL