package
1.2.6
Repository: https://github.com/openshift/odo.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

CleanupEnv cleans up the mock config file and anything that SetupEnv generated Parameters: configFile: the mock config file handler t: testing pointer to log errors if any.
CreateFakeContainer creates a container with the given containerName.
CreateFakeContainerWithVolumeMounts creates a container with the given containerName and volumeMounts.
CreateFakeDeployment creates a fake deployment with the given pod name and labels.
CreateFakePod creates a fake pod with the given pod name and component name.
CreateFakePodWithContainers creates a fake pod with the given pod name, container name and containers.
FakeClusterServiceClass creates a fake service class with the specified name for testing purposes.
FakeClusterServicePlan creates a fake plan with the specified external name and using planNumber to customize description, metadata and parameter values.
No description provided by the author
FakeImageStreams lists the imagestreams for the reactor.
FakeImageStreamTags lists the imagestreams for the reactor.
FakeKubeClientConfig returns mock kube client config.
FakeNamespaces returns fake namespace list for use by API mock functions for Unit tests.
FakeNamespaceStatus returns fake namespace status for use by mock watch on namespace.
FakeOdoConfig returns mock odo config It takes a confPath which is the path to the config.
FakeOnlyOneExistingNamespace similar as FakeOnlyOneExistingProjects only with Namespace.
FakeOnlyOneExistingProjects returns fake projectlist with single project for use by API mock functions for Unit tests testing delete of the only available project.
FakePlanInstanceCreateParameterSchemasRaw creates 2 create parameter schemas for testing purposes.
FakePortListener starts a fake test server and listens on the given localPort.
FakeProjects returns fake projectlist for use by API mock functions for Unit tests.
FakeProjectStatus returns fake project status for use by mock watch on project.
No description provided by the author
FakeRemoveProject removes the delete requested project from the list of projects passed.
FakeServiceClassInstance creates and returns a simple service class instance for testing purpose serviceInstanceName is the name of the service class instance serviceClassName is the name of the service class planName is the name of the plan status is the status of the service instance.
GetFakeContainerComponent returns a fake container component for testing.
GetFakeExecRunCommands returns a fake env for testing.
GetFakeExecRunCommands returns fake commands for testing.
GetFakeVolume returns a fake volume for testing.
GetFakeVolumeComponent returns a fake volume component for testing.
GetFakeVolumeMount returns a fake volume mount for testing.
No description provided by the author
No description provided by the author
No description provided by the author
mountedStorage is the map of the storage to be mounted key is the path for the mount, value is the pvc.
RunPromptTest runs the specified PromptTest in the given testing context.
RunTest runs the given test using the specified procedure simulating the user interaction with the console.
SetUp sets up the odo and kube config files and returns respective conf file pointers and error.
SimulateFileModifications mock function to simulate requested file/folder operation Parameters: basePath: The parent directory for file/folder involved in desired file operation fileModification: Meta-data of file/folder Returns: path to file/folder involved in the operation error if any or nil.
SingleValuedRawExtension creates a simple, single valued (name=value), raw extension.
Stdio converts an expect.Console into a survey terminal.Stdio.
TempMkdir creates a temporary directory.
TempMkFile creates a temporary file.

# Constants

APPEND enum representing append operation on a file.
CREATE enum representing create operation for a file/folder.
DELETE enum representing delete operation for a file/folder.
Directory enum to represent directory.
RegularFile enum to represent regular file.
UPDATE enum representing update operation on a file.

# Structs

ConfigDetails struct holds configuration details(odo and/or kube config).
FileProperties to contain meta-data of a file like, file/folder name, file/folder parent dir, file type and desired file modification type.
PromptTest encapsulates a survey prompt test.
TestDevfileData is a convenience data type used to mock up a devfile configuration.

# Type aliases

FileType custom type to indicate type of file.
M is an alias for map[string]interface{}.
ModificationType custom type to indicate file modification type.