Documentation
¶
Index ¶
- Constants
- func CheckBuildConfigs(namespace string, buildConfigs []string, config *rest.Config, t *testing.T)
- func CheckDeploymentConfigs(namespace string, deploymentConfigs []string, config *rest.Config, ...)
- func CheckImageStreams(namespace string, imageStreams []string, config *rest.Config, t *testing.T)
- func CheckImageTags(namespace string, imageTags []ImageTag, config *rest.Config, t *testing.T)
- func CheckResources(resources Resources, t *testing.T)
- func CheckServices(namespace string, services []string, config *rest.Config, t *testing.T)
- func FindBuildConfig(buildConfigs *v1.BuildConfigList, buildConfigName string) error
- func FindClusterRoleBinding(roleBindings *v1.ClusterRoleBindingList, subjectName string, ...) error
- func FindDeploymentConfig(depoymentConfigs *v1.DeploymentConfigList, depoymentConfigName string) error
- func FindImageStream(imageStreamList *v1.ImageStreamList, imageStreamName string) error
- func FindImageTag(imageStreamList *v1.ImageStreamList, imageTag ImageTag) error
- func FindProject(projects *v1.ProjectList, projectName string) error
- func FindRoleBinding(roleBindings *v1.RoleBindingList, subjectName string, subjectType string, ...) error
- func FindServiceHasPods(services *v1.ServiceList, serviceName string) error
- func GetOCClient() (*rest.Config, error)
- func ReadConfiguration() (map[string]string, error)
- func RemoveAllOpenshiftNamespacesForProject(project string) error
- func RemoveAllTestOCProjects() error
- func RemoveBuildConfigs(projectName string, buildConfigName string) error
- func RemoveProject(projectName string) error
- func RemoveProjectWait(projectName string) (string, string, error)
- func RetrieveJenkinsBuildStagesForBuild(jenkinsNamespace string, buildName string) (string, error)
- func RunCommand(command string, args []string, envVars []string) (string, string, error)
- func RunCommandWithWorkDir(command string, args []string, workDir string, envVars []string) (string, string, error)
- func RunJenkinsPipeline(jenkinsFile string, req RequestBuild, pipelineComponentPart string) (string, error)
- func RunScriptFromBaseDir(command string, args []string, envVars []string) (string, string, error)
- func SortTestableQuickstarters(t *testing.T, dir string, quickstarterPaths []string) []string
- func VerifyJenkinsRunAttachments(projectName string, buildName string, artifactsToVerify []string) error
- func VerifyJenkinsStages(goldenFile string, gotStages string) error
- type EnvPair
- type ImageTag
- type ProvisionAPI
- type RequestBuild
- type Resources
- type RoleBinding
Constants ¶
View Source
const PROJECT_ENV_VAR = "PROJECT_ID=" + PROJECT_NAME
View Source
const PROJECT_NAME = "unitt"
View Source
const PROJECT_NAME_CD = "unitt-cd"
View Source
const PROJECT_NAME_DEV = "unitt-dev"
View Source
const PROJECT_NAME_TEST = "unitt-test"
Variables ¶
This section is empty.
Functions ¶
func CheckBuildConfigs ¶
func CheckDeploymentConfigs ¶
func CheckImageStreams ¶
func CheckImageTags ¶
func CheckResources ¶
func CheckServices ¶
func FindBuildConfig ¶
func FindBuildConfig(buildConfigs *v1.BuildConfigList, buildConfigName string) error
func FindClusterRoleBinding ¶
func FindDeploymentConfig ¶
func FindDeploymentConfig(depoymentConfigs *v1.DeploymentConfigList, depoymentConfigName string) error
func FindImageStream ¶
func FindImageStream(imageStreamList *v1.ImageStreamList, imageStreamName string) error
func FindImageTag ¶
func FindImageTag(imageStreamList *v1.ImageStreamList, imageTag ImageTag) error
func FindProject ¶
func FindProject(projects *v1.ProjectList, projectName string) error
func FindRoleBinding ¶
func FindServiceHasPods ¶
func FindServiceHasPods(services *v1.ServiceList, serviceName string) error
FindServiceHasPods returns an error if no pod is assigned to given service or if at least one pod is not "Running" or at least one of its containers is not "ready".
func GetOCClient ¶
func ReadConfiguration ¶
func RemoveAllTestOCProjects ¶
func RemoveAllTestOCProjects() error
func RemoveBuildConfigs ¶
func RemoveProject ¶
func RunCommand ¶
func RunCommandWithWorkDir ¶
func RunJenkinsPipeline ¶
func RunJenkinsPipeline(jenkinsFile string, req RequestBuild, pipelineComponentPart string) (string, error)
func RunScriptFromBaseDir ¶
func VerifyJenkinsStages ¶
Types ¶
type ProvisionAPI ¶
ProvisionAPI represents the provisioning app.
func (*ProvisionAPI) CreateComponent ¶
func (api *ProvisionAPI) CreateComponent() ([]byte, error)
CreateComponent creates a component via the provisioning app.
func (*ProvisionAPI) CreateProject ¶
func (api *ProvisionAPI) CreateProject() ([]byte, error)
CreateProject creates a project via the provisioning app.
func (*ProvisionAPI) DeleteComponent ¶
func (api *ProvisionAPI) DeleteComponent() error
DeleteComponent deletes a component via the provisioning app.
func (*ProvisionAPI) DeleteProject ¶
func (api *ProvisionAPI) DeleteProject() error
DeleteProject deletes a project via the provisioning app.
type RequestBuild ¶
Click to show internal directories.
Click to hide internal directories.