Versions in this module Expand all Collapse all v1 v1.2.6 Aug 31, 2020 Changes in this version + func CleanupEnv(confFiles []*os.File, t *testing.T) + func CreateFakeContainer(containerName string) corev1.Container + func CreateFakeContainerWithVolumeMounts(containerName string, volumeMounts []corev1.VolumeMount) corev1.Container + func CreateFakeDeployment(podName string) *appsv1.Deployment + func CreateFakePod(componentName, podName string) *corev1.Pod + func CreateFakePodWithContainers(componentName, podName string, containers []corev1.Container) *corev1.Pod + func FakeClusterServiceClass(name string, tags ...string) v1beta1.ClusterServiceClass + func FakeClusterServicePlan(name string, planNumber int) v1beta1.ClusterServicePlan + func FakeDeploymentConfigs() *v1.DeploymentConfigList + func FakeImageStreamTags(imageName string, namespace string, tags []string, hiddenTags []string) *imagev1.ImageStreamTagList + func FakeImageStreams(imageName string, namespace string, tags []string) *imagev1.ImageStreamList + func FakeKubeClientConfig() string + func FakeNamespaceStatus(status corev1.NamespacePhase, name string) *corev1.Namespace + func FakeNamespaces() *corev1.NamespaceList + func FakeOdoConfig(confPath string, needNamePrefix bool, namePrefix string) preference.PreferenceInfo + func FakeOnlyOneExistingNamespace() *corev1.NamespaceList + func FakeOnlyOneExistingProjects() *v1.ProjectList + func FakePVC(pvcName, size string, labels map[string]string) *corev1.PersistentVolumeClaim + func FakePlanInstanceCreateParameterSchemasRaw() [][]byte + func FakePortListener(startedChan chan<- bool, stopChan <-chan bool, localPort int) error + func FakeProjectStatus(prjStatus corev1.NamespacePhase, prjName string) *projectv1.Project + func FakeProjects() *v1.ProjectList + func FakeRemoveProject(project string, projects *v1.ProjectList) *v1.ProjectList + func FakeServiceClassInstance(serviceInstanceName string, serviceClassName string, planName string, ...) scv1beta1.ServiceInstance + func GetFakeContainerComponent(name string) versionsCommon.DevfileComponent + func GetFakeEnv(name, value string) versionsCommon.Env + func GetFakeExecRunCommands() []versionsCommon.Exec + func GetFakeVolume(name, size string) versionsCommon.Volume + func GetFakeVolumeComponent(name, size string) versionsCommon.DevfileComponent + func GetFakeVolumeMount(name, path string) versionsCommon.VolumeMount + func GetRouteListWithMultiple(componentName, applicationName string) *routev1.RouteList + func GetSingleRoute(urlName string, port int, componentName, applicationName string) routev1.Route + func MkFileWithContent(path, content string, fs filesystem.Filesystem) (string, error) + func OneFakeDeploymentConfigWithMounts(componentName, componentType, applicationName string, ...) *v1.DeploymentConfig + func RunPromptTest(t *testing.T, test PromptTest) + func RunTest(t *testing.T, procedure func(*expect.Console), test func(terminal.Stdio) error) + func SetUp(odoConfigDetails ConfigDetails, kubeConfigDetails ConfigDetails) (*os.File, *os.File, error) + func SimulateFileModifications(basePath string, fileModification FileProperties) (string, error) + func SingleValuedRawExtension(name, value string) *runtime.RawExtension + func Stdio(c *expect.Console) terminal.Stdio + func TempMkFile(dir string, fileName string) (string, error) + func TempMkdir(parentDir string, newDirPrefix string) (string, error) + type ConfigDetails struct + Config interface{} + ConfigPathEnv string + FileName string + type FileProperties struct + FileParent string + FilePath string + FileType FileType + ModificationType ModificationType + type FileType int + const Directory + const RegularFile + type M map[string]interface + type ModificationType string + const APPEND + const CREATE + const DELETE + const UPDATE + type PromptTest struct + Expected interface{} + Name string + Procedure func(*expect.Console) + Prompt survey.Prompt + type TestDevfileData struct + Commands map[string]versionsCommon.DevfileCommand + Components []versionsCommon.DevfileComponent + CompositeCommands []versionsCommon.Composite + Events common.DevfileEvents + ExecCommands []versionsCommon.Exec + func (d *TestDevfileData) AddCommands(commands ...common.DevfileCommand) error + func (d *TestDevfileData) GetCommands() map[string]versionsCommon.DevfileCommand + func (d TestDevfileData) AddComponents(components []common.DevfileComponent) error + func (d TestDevfileData) AddEvents(events common.DevfileEvents) error + func (d TestDevfileData) AddProjects(projects []common.DevfileProject) error + func (d TestDevfileData) AddStarterProjects(projects []common.DevfileStarterProject) error + func (d TestDevfileData) AddVolume(volume common.Volume, path string) error + func (d TestDevfileData) DeleteVolume(name string) error + func (d TestDevfileData) GetAliasedComponents() []versionsCommon.DevfileComponent + func (d TestDevfileData) GetComponents() []versionsCommon.DevfileComponent + func (d TestDevfileData) GetEvents() versionsCommon.DevfileEvents + func (d TestDevfileData) GetMetadata() versionsCommon.DevfileMetadata + func (d TestDevfileData) GetParent() versionsCommon.DevfileParent + func (d TestDevfileData) GetProjects() []versionsCommon.DevfileProject + func (d TestDevfileData) GetStarterProjects() []versionsCommon.DevfileStarterProject + func (d TestDevfileData) GetVolumeMountPath(name string) (string, error) + func (d TestDevfileData) SetEvents(events common.DevfileEvents) + func (d TestDevfileData) SetMetadata(name, version string) + func (d TestDevfileData) SetParent(parent common.DevfileParent) + func (d TestDevfileData) SetSchemaVersion(version string) + func (d TestDevfileData) UpdateCommand(command common.DevfileCommand) + func (d TestDevfileData) UpdateComponent(component common.DevfileComponent) + func (d TestDevfileData) UpdateEvents(postStart, postStop, preStart, preStop []string) + func (d TestDevfileData) UpdateProject(project common.DevfileProject) + func (d TestDevfileData) UpdateStarterProject(project common.DevfileStarterProject) + func (d TestDevfileData) Validate() error