Documentation ¶
Overview ¶
Utility functions and constants for tests
Index ¶
Constants ¶
View Source
const ( // Invalid resources names InvalidFolderPath = "/invalid/path" InvalidFileName = "invalid.yaml" InvalidGroupName = "invalid-group" InvalidClusterName = "invalid-cluster" // Valid resources names TestGroupName1 = "test-group" TestGroupName2 = "test-group2" TestClusterName1 = "test-cluster" TestClusterName2 = "test-cluster2" KustomizeTestDirName = "kustomize-test" )
Variables ¶
This section is empty.
Functions ¶
func GetTestFile ¶
func PrepareFakeWorktree ¶
func PrepareWorktree ¶
Types ¶
type FakeFilesGetter ¶
func (FakeFilesGetter) WorkTreeForPackage ¶
func (filesGetter FakeFilesGetter) WorkTreeForPackage(pkg v1alpha1.Package) (*billy.Filesystem, error)
Click to show internal directories.
Click to hide internal directories.