Documentation ¶
Index ¶
- Constants
- func AssertRoleBinding(t *testing.T, clients *utils.Clients, ns, roleBindingName string)
- func AssertServiceAccount(t *testing.T, clients *utils.Clients, ns, targetSA string)
- func AssertTektonAddonCRReadyStatus(t *testing.T, clients *utils.Clients, names utils.ResourceNames)
- func AssertTektonConfigCRReadyStatus(t *testing.T, clients *utils.Clients, names utils.ResourceNames)
- func AssertTektonDashboardCRReadyStatus(t *testing.T, clients *utils.Clients, names utils.ResourceNames)
- func AssertTektonPipelineCRReadyStatus(t *testing.T, clients *utils.Clients, names utils.ResourceNames)
- func AssertTektonTriggerCRReadyStatus(t *testing.T, clients *utils.Clients, names utils.ResourceNames)
- func DeleteAndVerifyDeployments(t *testing.T, clients *utils.Clients, namespace, labelSelector string)
- func EnsureTektonAddonExists(clients addonv1alpha1.TektonAddonInterface, names utils.ResourceNames) (*v1alpha1.TektonAddon, error)
- func EnsureTektonConfigExists(clients configv1alpha1.TektonConfigInterface, names utils.ResourceNames) (*v1alpha1.TektonConfig, error)
- func EnsureTektonDashboardExists(clients dashboardv1alpha1.TektonDashboardInterface, names utils.ResourceNames) (*v1alpha1.TektonDashboard, error)
- func EnsureTektonPipelineExists(clients pipelinev1alpha1.TektonPipelineInterface, names utils.ResourceNames) (*v1alpha1.TektonPipeline, error)
- func EnsureTektonTriggerExists(clients triggerv1alpha1.TektonTriggerInterface, names utils.ResourceNames) (*v1alpha1.TektonTrigger, error)
- func EnsureTestNamespaceExists(clients *utils.Clients, name string) (*corev1.Namespace, error)
- func IsDeploymentAvailable(d *appsv1.Deployment) (bool, error)
- func IsTektonAddonReady(s *v1alpha1.TektonAddon, err error) (bool, error)
- func IsTektonConfigReady(s *v1alpha1.TektonConfig, err error) (bool, error)
- func IsTektonDashboardReady(s *v1alpha1.TektonDashboard, err error) (bool, error)
- func IsTektonPipelineReady(s *v1alpha1.TektonPipeline, err error) (bool, error)
- func IsTektonTriggerReady(s *v1alpha1.TektonTrigger, err error) (bool, error)
- func TektonAddonCRDelete(t *testing.T, clients *utils.Clients, crNames utils.ResourceNames)
- func TektonConfigCRDelete(t *testing.T, clients *utils.Clients, crNames utils.ResourceNames)
- func TektonDashboardCRDelete(t *testing.T, clients *utils.Clients, crNames utils.ResourceNames)
- func TektonPipelineCRDelete(t *testing.T, clients *utils.Clients, crNames utils.ResourceNames)
- func TektonTriggerCRDelete(t *testing.T, clients *utils.Clients, crNames utils.ResourceNames)
- func WaitForTektonAddonState(clients addonv1alpha1.TektonAddonInterface, name string, ...) (*v1alpha1.TektonAddon, error)
- func WaitForTektonConfigState(clients configv1alpha1.TektonConfigInterface, name string, ...) (*v1alpha1.TektonConfig, error)
- func WaitForTektonDashboardState(clients dashboardv1alpha1.TektonDashboardInterface, name string, ...) (*v1alpha1.TektonDashboard, error)
- func WaitForTektonPipelineState(clients pipelinev1alpha1.TektonPipelineInterface, name string, ...) (*v1alpha1.TektonPipeline, error)
- func WaitForTektonTriggerState(clients triggerv1alpha1.TektonTriggerInterface, name string, ...) (*v1alpha1.TektonTrigger, error)
Constants ¶
const ( // Interval specifies the time between two polls. Interval = 10 * time.Second // Timeout specifies the timeout for the function PollImmediate to reach a certain status. Timeout = 5 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
func AssertRoleBinding ¶
func AssertServiceAccount ¶
func AssertTektonAddonCRReadyStatus ¶
func AssertTektonAddonCRReadyStatus(t *testing.T, clients *utils.Clients, names utils.ResourceNames)
AssertTektonAddonCRReadyStatus verifies if the TektonAddon reaches the READY status.
func AssertTektonConfigCRReadyStatus ¶
func AssertTektonConfigCRReadyStatus(t *testing.T, clients *utils.Clients, names utils.ResourceNames)
AssertTektonConfigCRReadyStatus verifies if the TektonConfig reaches the READY status.
func AssertTektonDashboardCRReadyStatus ¶
func AssertTektonDashboardCRReadyStatus(t *testing.T, clients *utils.Clients, names utils.ResourceNames)
AssertTektonDashboardCRReadyStatus verifies if the TektonDashboard reaches the READY status.
func AssertTektonPipelineCRReadyStatus ¶
func AssertTektonPipelineCRReadyStatus(t *testing.T, clients *utils.Clients, names utils.ResourceNames)
AssertTektonPipelineCRReadyStatus verifies if the TektonPipeline reaches the READY status.
func AssertTektonTriggerCRReadyStatus ¶
func AssertTektonTriggerCRReadyStatus(t *testing.T, clients *utils.Clients, names utils.ResourceNames)
AssertTektonTriggerCRReadyStatus verifies if the TektonTrigger reaches the READY status.
func DeleteAndVerifyDeployments ¶
func DeleteAndVerifyDeployments(t *testing.T, clients *utils.Clients, namespace, labelSelector string)
DeleteAndVerifyDeployments verify whether all the deployments for tektonpipelines are able to recreate, when they are deleted.
func EnsureTektonAddonExists ¶
func EnsureTektonAddonExists(clients addonv1alpha1.TektonAddonInterface, names utils.ResourceNames) (*v1alpha1.TektonAddon, error)
EnsureTektonAddonExists creates a TektonAddon with the name names.TektonAddon, if it does not exist.
func EnsureTektonConfigExists ¶
func EnsureTektonConfigExists(clients configv1alpha1.TektonConfigInterface, names utils.ResourceNames) (*v1alpha1.TektonConfig, error)
EnsureTektonConfigExists creates a TektonConfig with the name names.TektonConfig, if it does not exist.
func EnsureTektonDashboardExists ¶
func EnsureTektonDashboardExists(clients dashboardv1alpha1.TektonDashboardInterface, names utils.ResourceNames) (*v1alpha1.TektonDashboard, error)
EnsureTektonDashboardExists creates a TektonDashboard with the name names.TektonDashboard, if it does not exist.
func EnsureTektonPipelineExists ¶
func EnsureTektonPipelineExists(clients pipelinev1alpha1.TektonPipelineInterface, names utils.ResourceNames) (*v1alpha1.TektonPipeline, error)
EnsureTektonPipelineExists creates a TektonPipeline with the name names.TektonPipeline, if it does not exist.
func EnsureTektonTriggerExists ¶
func EnsureTektonTriggerExists(clients triggerv1alpha1.TektonTriggerInterface, names utils.ResourceNames) (*v1alpha1.TektonTrigger, error)
EnsureTektonTriggerExists creates a TektonTrigger with the name names.TektonTrigger, if it does not exist.
func EnsureTestNamespaceExists ¶
EnsureTestNamespaceExists creates a Test Namespace
func IsDeploymentAvailable ¶
func IsDeploymentAvailable(d *appsv1.Deployment) (bool, error)
IsDeploymentAvailable will check the status conditions of the deployment and return true if the deployment is available.
func IsTektonAddonReady ¶
func IsTektonAddonReady(s *v1alpha1.TektonAddon, err error) (bool, error)
IsTektonAddonReady will check the status conditions of the TektonAddon and return true if the TektonAddon is ready.
func IsTektonConfigReady ¶
func IsTektonConfigReady(s *v1alpha1.TektonConfig, err error) (bool, error)
IsTektonConfigReady will check the status conditions of the TektonConfig and return true if the TektonConfig is ready.
func IsTektonDashboardReady ¶
func IsTektonDashboardReady(s *v1alpha1.TektonDashboard, err error) (bool, error)
IsTektonDashboardReady will check the status conditions of the TektonDashboard and return true if the TektonDashboard is ready.
func IsTektonPipelineReady ¶
func IsTektonPipelineReady(s *v1alpha1.TektonPipeline, err error) (bool, error)
IsTektonPipelineReady will check the status conditions of the TektonPipeline and return true if the TektonPipeline is ready.
func IsTektonTriggerReady ¶
func IsTektonTriggerReady(s *v1alpha1.TektonTrigger, err error) (bool, error)
IsTektonTriggerReady will check the status conditions of the TektonTrigger and return true if the TektonTrigger is ready.
func TektonAddonCRDelete ¶
TektonAddonCRDelete deletes tha TektonAddon to see if all resources will be deleted
func TektonConfigCRDelete ¶
TektonConfigCRDelete deletes tha TektonConfig to see if all resources will be deleted
func TektonDashboardCRDelete ¶
TektonDashboardCRDelete deletes tha TektonDashboard to see if all resources will be deleted
func TektonPipelineCRDelete ¶
TektonPipelineCRDelete deletes tha TektonPipeline to see if all resources will be deleted
func TektonTriggerCRDelete ¶
TektonTriggerCRDelete deletes tha TektonTrigger to see if all resources will be deleted
func WaitForTektonAddonState ¶
func WaitForTektonAddonState(clients addonv1alpha1.TektonAddonInterface, name string, inState func(s *v1alpha1.TektonAddon, err error) (bool, error)) (*v1alpha1.TektonAddon, error)
WaitForTektonAddonState polls the status of the TektonAddon called name from client every `interval` until `inState` returns `true` indicating it is done, returns an error or timeout.
func WaitForTektonConfigState ¶
func WaitForTektonConfigState(clients configv1alpha1.TektonConfigInterface, name string, inState func(s *v1alpha1.TektonConfig, err error) (bool, error)) (*v1alpha1.TektonConfig, error)
WaitForTektonConfigState polls the status of the TektonConfig called name from client every `interval` until `inState` returns `true` indicating it is done, returns an error or timeout.
func WaitForTektonDashboardState ¶
func WaitForTektonDashboardState(clients dashboardv1alpha1.TektonDashboardInterface, name string, inState func(s *v1alpha1.TektonDashboard, err error) (bool, error)) (*v1alpha1.TektonDashboard, error)
WaitForTektonDashboardState polls the status of the TektonDashboard called name from client every `interval` until `inState` returns `true` indicating it is done, returns an error or timeout.
func WaitForTektonPipelineState ¶
func WaitForTektonPipelineState(clients pipelinev1alpha1.TektonPipelineInterface, name string, inState func(s *v1alpha1.TektonPipeline, err error) (bool, error)) (*v1alpha1.TektonPipeline, error)
WaitForTektonPipelineState polls the status of the TektonPipeline called name from client every `interval` until `inState` returns `true` indicating it is done, returns an error or timeout.
func WaitForTektonTriggerState ¶
func WaitForTektonTriggerState(clients triggerv1alpha1.TektonTriggerInterface, name string, inState func(s *v1alpha1.TektonTrigger, err error) (bool, error)) (*v1alpha1.TektonTrigger, error)
WaitForTektonTriggerState polls the status of the TektonTrigger called name from client every `interval` until `inState` returns `true` indicating it is done, returns an error or timeout.
Types ¶
This section is empty.