spkcommon

package
v0.0.0-...-d1a32ca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SPKBackendCMName configMap's name.
	SPKBackendCMName = "spk-cm"
	// SPKBackendSVCName service's name.
	SPKBackendSVCName = "f5-hello-world"
	// SPKBackendSelector labels used by deployment and service.
	SPKBackendSelector = "system-test=spk-demo-workload"
	// SPKBackendSVCPort service port.
	SPKBackendSVCPort = int32(8080)
	// SPKBackendSVCTargetPort service's target port.
	SPKBackendSVCTargetPort = int32(8080)
	// SPKBackendSVCProtocol service's protocol.
	SPKBackendSVCProtocol = v1.Protocol("TCP")
	// SPKBackendDeployName deployment's name.
	SPKBackendDeployName = "spk-hello-world"
	// SPKBackendContainerName container's name.
	SPKBackendContainerName = "spk-httpd"

	// SPKBackendUDPSVCName name for service for UDP testing.
	SPKBackendUDPSVCName = "f5-udp-svc"
	// SPKBackendUDPSelector labels used by deployment and service.
	SPKBackendUDPSelector = "systemtest-udp-app=qe-udp-server"
	// SPKBackendUDPSVCPort service port.
	SPKBackendUDPSVCPort = int32(8080)
	// SPKBackendUDPSVCTargetPort service's target port.
	SPKBackendUDPSVCTargetPort = int32(8080)
	// SPKBackendUDPSVCProtocol service's protocol.
	SPKBackendUDPSVCProtocol = v1.Protocol("UDP")
	// SPKBackendUDPDeployName deployment's name.
	SPKBackendUDPDeployName = "udp-mock-server"
	// SPKBackendUDPContainerName container's name.
	SPKBackendUDPContainerName = "udp-server"
)

Variables

View Source
var (
	// SPKWorkloadCMData contains data for ConfigMap.
	SPKWorkloadCMData = map[string]string{
		"index.html": "SPK-DEFAULT-WEB-PAGE-GOLANG",
	}
)

Functions

func AssertIPv4UDPWorkloadURLAfterIngressPodDeleted

func AssertIPv4UDPWorkloadURLAfterIngressPodDeleted(ctx SpecContext)

AssertIPv4UDPWorkloadURLAfterIngressPodDeleted assert workoads are reachable over IPv4 SPK Ingress, after SPK Ingress pods are deleted.

func AssertIPv4UDPWorkloadURLAfterTMMPodDeleted

func AssertIPv4UDPWorkloadURLAfterTMMPodDeleted(ctx SpecContext)

AssertIPv4UDPWorkloadURLAfterTMMPodDeleted assert workoads are reachable over IPv4 SPK Ingress, after SPK TMM pods are deleted.

func AssertIPv4WorkloadURL

func AssertIPv4WorkloadURL(ctx SpecContext)

AssertIPv4WorkloadURL access workload via IPv4 address.

func AssertIPv4WorkloadURLAfterAppRecreated

func AssertIPv4WorkloadURLAfterAppRecreated(ctx SpecContext)

AssertIPv4WorkloadURLAfterAppRecreated access workload via IPv4 address, after target workload was re-created.

func AssertIPv4WorkloadURLAfterIngressPodDeleted

func AssertIPv4WorkloadURLAfterIngressPodDeleted(ctx SpecContext)

AssertIPv4WorkloadURLAfterIngressPodDeleted assert workoads are reachable over IPv4 SPK Ingress, after SPK Ingress pods are deleted.

func AssertIPv4WorkloadURLAfterTMMPodDeleted

func AssertIPv4WorkloadURLAfterTMMPodDeleted(ctx SpecContext)

AssertIPv4WorkloadURLAfterTMMPodDeleted assert connectivity to workload running on OCP cluster, after TMM pods are deleted.

func AssertIPv6UDPWorkloadURLAfterIngressPodDeleted

func AssertIPv6UDPWorkloadURLAfterIngressPodDeleted(ctx SpecContext)

AssertIPv6UDPWorkloadURLAfterIngressPodDeleted assert workoads are reachable over IPv6 SPK Ingress, after SPK Ingress pods are deleted.

func AssertIPv6UDPWorkloadURLAfterTMMPodDeleted

func AssertIPv6UDPWorkloadURLAfterTMMPodDeleted(ctx SpecContext)

AssertIPv6UDPWorkloadURLAfterTMMPodDeleted assert workoads are reachable over IPv6 SPK Ingress, after SPK TMM pods are deleted.

func AssertIPv6WorkloadURL

func AssertIPv6WorkloadURL(ctx SpecContext)

AssertIPv6WorkloadURL access workload via IPv6 address.

func AssertIPv6WorkloadURLAfterAppRecreated

func AssertIPv6WorkloadURLAfterAppRecreated(ctx SpecContext)

AssertIPv6WorkloadURLAfterAppRecreated access workload via IPv6 address, after target workload was re-created.

func AssertIPv6WorkloadURLAfterIngressPodDeleted

func AssertIPv6WorkloadURLAfterIngressPodDeleted(ctx SpecContext)

AssertIPv6WorkloadURLAfterIngressPodDeleted assert workoads are reachable over IPv6 SPK Ingress, after SPK Ingress pods are deleted.

func AssertIPv6WorkloadURLAfterTMMPodDeleted

func AssertIPv6WorkloadURLAfterTMMPodDeleted(ctx SpecContext)

AssertIPv6WorkloadURLAfterTMMPodDeleted assert workoads are reachable over IPv6 SPK Ingress, after SPK TMM pods are deleted.

func CleanupStuckContainerPods

func CleanupStuckContainerPods(ctx SpecContext)

CleanupStuckContainerPods removes stuck pods.

func ResetTMMReplicas

func ResetTMMReplicas(ctx SpecContext)

ResetTMMReplicas sets TMM replica count to 1.

func RestartSPKIngressPods

func RestartSPKIngressPods()

RestartSPKIngressPods delete SPK Ingress pods.

func SetupSPKBackendUDPWorkload

func SetupSPKBackendUDPWorkload()

SetupSPKBackendUDPWorkload creates workload that is used in SPK Ingress testing.

func SetupSPKBackendWorkload

func SetupSPKBackendWorkload()

SetupSPKBackendWorkload creates workload that is used in SPK Ingress testing.

func VerifyDNSResolutionAfterIngressPodIsDeleteExistinDeploy

func VerifyDNSResolutionAfterIngressPodIsDeleteExistinDeploy(ctx SpecContext)

VerifyDNSResolutionAfterIngressPodIsDeleteExistinDeploy assert DNS resolution from existing deployment, after SPK Ingress pods are deleted.

func VerifyDNSResolutionAfterIngressPodIsDeleteNewDeploy

func VerifyDNSResolutionAfterIngressPodIsDeleteNewDeploy(ctx SpecContext)

VerifyDNSResolutionAfterIngressPodIsDeleteNewDeploy assert DNS resolution from new deployment, after SPK Ingress pods are delete.

func VerifyDNSResolutionAfterTMMPodIsDeletedExistingDeploy

func VerifyDNSResolutionAfterTMMPodIsDeletedExistingDeploy(ctx SpecContext)

VerifyDNSResolutionAfterTMMPodIsDeletedExistingDeploy assert DNS resolution from existing deployment, after SPK TMM pod(s) are deleted.

func VerifyDNSResolutionAfterTMMPodIsDeletedNewDeploy

func VerifyDNSResolutionAfterTMMPodIsDeletedNewDeploy(ctx SpecContext)

VerifyDNSResolutionAfterTMMPodIsDeletedNewDeploy assert DNS resolution from new deployment, after SPK TMM pod(s) are deleted.

func VerifyDNSResolutionAfterTMMScaleUpDownExisting

func VerifyDNSResolutionAfterTMMScaleUpDownExisting(ctx SpecContext)

VerifyDNSResolutionAfterTMMScaleUpDownExisting verifies DNS resolution from existing deployment after TMM deployment is scaled down and then up.

func VerifyDNSResolutionFromExistingDeploy

func VerifyDNSResolutionFromExistingDeploy(ctx SpecContext)

VerifyDNSResolutionFromExistingDeploy verifies DNS resolution from existing deployment.

func VerifyDNSResolutionFromNewDeploy

func VerifyDNSResolutionFromNewDeploy(ctx SpecContext)

VerifyDNSResolutionFromNewDeploy asserts DNS resolution from within a newly created deployment.

func VerifyDNSResolutionWithMultipleTMMsExisting

func VerifyDNSResolutionWithMultipleTMMsExisting(ctx SpecContext)

VerifyDNSResolutionWithMultipleTMMsExisting verifies DNS resolution with multiple instances of TMM controller.

func VerifyGracefulRebootSuite

func VerifyGracefulRebootSuite()

VerifyGracefulRebootSuite container that contains tests for graceful reboot verification.

func VerifyHardRebootSuite

func VerifyHardRebootSuite()

VerifyHardRebootSuite container that contains tests for ungraceful cluster reboot verification.

func VerifyIngressScaleDownUp

func VerifyIngressScaleDownUp(ctx SpecContext)

VerifyIngressScaleDownUp verifies DNS resolution from existing deployment after Ingress scale down and up.

func VerifySPKIngressUDPviaIPv4

func VerifySPKIngressUDPviaIPv4()

VerifySPKIngressUDPviaIPv4 verifies SPK UDP Ingress.

func VerifySPKIngressUDPviaIPv6

func VerifySPKIngressUDPviaIPv6()

VerifySPKIngressUDPviaIPv6 verifies SPK UDP Ingress.

func VerifySoftReboot

func VerifySoftReboot(ctx SpecContext)

VerifySoftReboot performs graceful reboot of a cluster with cordoning and draining of individual nodes.

func VerifyUngracefulReboot

func VerifyUngracefulReboot(ctx SpecContext)

VerifyUngracefulReboot performs ungraceful reboot of the cluster.

func WaitAllDeploymentsAreAvailable

func WaitAllDeploymentsAreAvailable(ctx SpecContext)

WaitAllDeploymentsAreAvailable wait for all deployments in all namespaces to be Available.

func WaitAllNodesAreReady

func WaitAllNodesAreReady(ctx SpecContext)

WaitAllNodesAreReady waits for all the nodes in the cluster to report Ready state.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL