Documentation ¶
Index ¶
- type TestPolicy
- func ApplyPolicyFile(t *testing.T, env *kube.Environment, namespace string, fileName string) *TestPolicy
- func ApplyPolicyFiles(t *testing.T, env *kube.Environment, namespace string, fileNames []string) []*TestPolicy
- func ApplyPolicyFromFilePath(t *testing.T, env *kube.Environment, namespace string, fileName string) *TestPolicy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestPolicy ¶
type TestPolicy struct {
// contains filtered or unexported fields
}
func ApplyPolicyFile ¶
func ApplyPolicyFile(t *testing.T, env *kube.Environment, namespace string, fileName string) *TestPolicy
ApplyPolicyFile applies a policy file from testdata directory of the test.
func ApplyPolicyFiles ¶
func ApplyPolicyFiles(t *testing.T, env *kube.Environment, namespace string, fileNames []string) []*TestPolicy
ApplyPolicyFiles applies multiple policy files to the same namespace
func ApplyPolicyFromFilePath ¶
func ApplyPolicyFromFilePath(t *testing.T, env *kube.Environment, namespace string, fileName string) *TestPolicy
ApplyPolicyFromFilePath runs `kubectl -f <namespace> <fileName>` where fileName is the real/explicit path of the file.
func (TestPolicy) TearDown ¶
func (p TestPolicy) TearDown()
Click to show internal directories.
Click to hide internal directories.