functional

package
v0.0.0-...-58b7b8b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FUNCTIONAL_TESTS_AWS = []common.TestCase{
		{Description: "F01 - Verify AWS rds resources exist and are in expected state", Test: AWSRDSResourcesExistTest},
		{Description: "F03 - Verify AWS elasticache resources exist and are in expected state", Test: AWSElasticacheResourcesExistTest},
		{Description: "A25 - Verify standalone RHMI VPC exists and is configured properly", Test: TestStandaloneVPCExists},
		{Description: "F04 - Verify AWS s3 blob storage resources exist", Test: TestAWSs3BlobStorageResourcesExist},
	}
	MULTIAZ_TESTS = []common.TestCase{
		{Description: "F09 - Verify correct pod distribution on Multi-AZ cluster", Test: TestMultiAZPodDistribution},
	}
)

Functions

func AWSElasticacheResourcesExistTest

func AWSElasticacheResourcesExistTest(t common.TestingTB, ctx *common.TestingContext)

func AWSRDSResourcesExistTest

func AWSRDSResourcesExistTest(t common.TestingTB, ctx *common.TestingContext)

func CreateAWSSession

func CreateAWSSession(ctx context.Context, client client.Client) (*session.Session, bool, error)

CreateAWSSession creates a session to be used in getting an api instance for aws

func GetCloudObjectStorageBlobStorageResourceIDs

func GetCloudObjectStorageBlobStorageResourceIDs(ctx context.Context, client client.Client, rhmi *integreatlyv1alpha1.RHMI) ([]string, []string)

GetCloudObjectStorageBlobStorageResourceIDs - used to get Blob Storage Resource IDs (buckets) for cloud object storages: AWS S3 Cloud Storage

func GetClustersAvailableZones

func GetClustersAvailableZones(nodes *v1.NodeList) map[string]bool

GetClustersAvailableZones returns a map containing zone names that are currently available

func GetPostgresInstanceData

func GetPostgresInstanceData(ctx context.Context, client client.Client, rhmi *integreatlyv1alpha1.RHMI) (map[string]string, []error)

Each resource provisioned contains an annotation with the resource ID This function iterates over a list of expected resource CR's Returns a list of resource ID's, these ID's can be used when testing postgres resources

func GetRedisInstanceData

func GetRedisInstanceData(ctx context.Context, client client.Client, rhmi *integreatlyv1alpha1.RHMI) (map[string]string, []error)

Each resource provisioned contains an annotation with the resource ID This function iterates over a list of expected resource CR's Returns a list of resource ID's, these ID's can be used when testing AWS resources

func TestAWSs3BlobStorageResourcesExist

func TestAWSs3BlobStorageResourcesExist(t common.TestingTB, ctx *common.TestingContext)

func TestMultiAZPodDistribution

func TestMultiAZPodDistribution(t common.TestingTB, ctx *common.TestingContext)

func TestStandaloneVPCExists

func TestStandaloneVPCExists(t common.TestingTB, testingCtx *common.TestingContext)

TestStandaloneVPCExists tests that the cloud resource operator network components have been correctly set up and configured

Types

This section is empty.

Jump to

Keyboard shortcuts

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