Documentation
¶
Index ¶
- Variables
- func CheckBuildConfigs(namespace string, buildConfigs []string, config *rest.Config, t *testing.T)
- func CheckConfigMaps(namespace string, configMaps []string, dyn dynamic.Interface, t *testing.T)
- func CheckCronJobs(namespace string, cronJobs []string, dyn dynamic.Interface, t *testing.T)
- func CheckDaemonSets(namespace string, daemonSets []string, dyn dynamic.Interface, t *testing.T)
- func CheckDeploymentConfigs(namespace string, deploymentConfigs []string, config *rest.Config, ...)
- func CheckDeployments(namespace string, deployments []string, dyn dynamic.Interface, t *testing.T)
- func CheckHorizontalPodAutoscalers(namespace string, hpas []string, dyn dynamic.Interface, t *testing.T)
- 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 CheckIngresses(namespace string, ingresses []string, dyn dynamic.Interface, t *testing.T)
- func CheckJobs(namespace string, jobs []string, dyn dynamic.Interface, t *testing.T)
- func CheckNetworkPolicies(namespace string, networkPolicies []string, dyn dynamic.Interface, ...)
- func CheckPersistentVolumeClaims(namespace string, pvcs []string, dyn dynamic.Interface, t *testing.T)
- func CheckPods(namespace string, pods []string, dyn dynamic.Interface, t *testing.T)
- func CheckReplicaSets(namespace string, replicaSets []string, dyn dynamic.Interface, t *testing.T)
- func CheckResources(resources Resources, t *testing.T)
- func CheckRoleBindings(namespace string, roleBindings []string, dyn dynamic.Interface, t *testing.T)
- func CheckRoles(namespace string, roles []string, dyn dynamic.Interface, t *testing.T)
- func CheckRoutes(namespace string, routes []string, config *rest.Config, t *testing.T)
- func CheckSecrets(namespace string, secrets []string, dyn dynamic.Interface, t *testing.T)
- func CheckServiceAccounts(namespace string, serviceAccounts []string, dyn dynamic.Interface, ...)
- func CheckServices(namespace string, services []string, dyn dynamic.Interface, t *testing.T)
- func CheckStatefulSets(namespace string, statefulSets []string, dyn dynamic.Interface, t *testing.T)
- func FindBuildConfig(buildConfigs *v1.BuildConfigList, buildConfigName string) error
- func FindConfigMap(configMaps *v1.ConfigMapList, configMapName 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 *rbacv1.RoleBindingList, ...) error
- func FindRoute(routes *v1.RouteList, routeName string) error
- func FindSecret(secrets *v1.SecretList, secretName string) error
- func FindServiceAccount(serviceAccounts *v1.ServiceAccountList, serviceAccountName string) error
- func FindServiceHasPods(services *v1.ServiceList, serviceName string) error
- func GetEnv(key, fallback string) string
- 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 RemoveExcludedQuickstarters(t *testing.T, dir string, quickstarterPaths []string) []string
- 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 Set_project_name(project string)
- 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 ¶
This section is empty.
Variables ¶
View Source
var PROJECT_ENV_VAR = "PROJECT_ID=" + PROJECT_NAME
View Source
var PROJECT_NAME = "unitt"
View Source
var PROJECT_NAME_CD = PROJECT_NAME + "-cd"
View Source
var PROJECT_NAME_DEV = PROJECT_NAME + "-dev"
View Source
var PROJECT_NAME_TEST = PROJECT_NAME + "-test"
Functions ¶
func CheckBuildConfigs ¶
func CheckConfigMaps ¶
func CheckCronJobs ¶
func CheckDaemonSets ¶
func CheckDeploymentConfigs ¶
func CheckDeployments ¶
func CheckImageStreams ¶
func CheckImageTags ¶
func CheckIngresses ¶
func CheckNetworkPolicies ¶
func CheckReplicaSets ¶
func CheckResources ¶
func CheckRoleBindings ¶
func CheckRoles ¶
func CheckRoutes ¶
func CheckSecrets ¶
func CheckServiceAccounts ¶
func CheckServices ¶
func CheckStatefulSets ¶
func FindBuildConfig ¶
func FindBuildConfig(buildConfigs *v1.BuildConfigList, buildConfigName string) error
func FindConfigMap ¶
func FindConfigMap(configMaps *v1.ConfigMapList, configMapName string) error
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 FindRoleBinding(roleBindings *rbacv1.RoleBindingList, subjectName, subjectType, namespace, roleName string) error
func FindSecret ¶
func FindSecret(secrets *v1.SecretList, secretName string) error
func FindServiceAccount ¶
func FindServiceAccount(serviceAccounts *v1.ServiceAccountList, serviceAccountName string) error
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 Set_project_name ¶
func Set_project_name(project string)
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 ¶
type Resources ¶
type Resources struct {
Namespace string
ImageTags []ImageTag
BuildConfigs []string
DeploymentConfigs []string
Deployments []string
StatefulSets []string
DaemonSets []string
ReplicaSets []string
Services []string
ImageStreams []string
Routes []string
Ingresses []string
ConfigMaps []string
Secrets []string
PersistentVolumeClaims []string
ServiceAccounts []string
Roles []string
RoleBindings []string
NetworkPolicies []string
Jobs []string
CronJobs []string
Pods []string
HorizontalPodAutoscalers []string
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.