Documentation ¶
Index ¶
- Constants
- func AuditLocal(t *testing.T, fixtureDir, fixture string, auditable kubeaudit.Auditable, ...)
- func AuditManifest(t *testing.T, fixtureDir, fixture string, auditable kubeaudit.Auditable, ...)
- func AuditMultiple(t *testing.T, fixtureDir, fixture string, auditables []kubeaudit.Auditable, ...)
- func FixSetup(t *testing.T, fixtureDir, fixture string, auditable kubeaudit.Auditable) (fixedResources []k8s.Resource, report *kubeaudit.Report)
- func FixSetupMultiple(t *testing.T, fixtureDir, fixture string, auditables []kubeaudit.Auditable) (fixedResources []k8s.Resource, report *kubeaudit.Report)
- func GetAllFileNames(t *testing.T, directory string) []string
- func GetReport(t *testing.T, fixtureDir, fixture string, auditables []kubeaudit.Auditable, ...) *kubeaudit.Report
Constants ¶
View Source
const LOCAL_MODE = "local"
View Source
const MANIFEST_MODE = "manifest"
SharedFixturesDir contains fixtures used by multiple tests
Variables ¶
This section is empty.
Functions ¶
func AuditLocal ¶
func AuditManifest ¶
func AuditMultiple ¶
func FixSetupMultiple ¶
func FixSetupMultiple(t *testing.T, fixtureDir, fixture string, auditables []kubeaudit.Auditable) (fixedResources []k8s.Resource, report *kubeaudit.Report)
FixSetup runs Fix() on a given manifest and returns the resulting resources
func GetAllFileNames ¶
GetAllFileNames returns all file names in the given directory It can be used to retrieve all of the resource manifests from the test/fixtures/all_resources directory This directory is not hardcoded because the working directory for tests is relative to the test
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.