integrationtesting

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: MPL-2.0 Imports: 1 Imported by: 0

README

Integration tests

Integration tests required extra credentials, such as for aws and azure, in order to execute the complete terraform cycle (init, apply, destroy)

For all the testing it needs the common environment variables

    MONGODB_ATLAS_PROJECT_ID
    MONGODB_ATLAS_PUBLIC_KEY
    MONGODB_ATLAS_PRIVATE_KEY

For specific aws related interactions

    AWS_ACCESS_KEY_ID
    AWS_SECRET_ACCESS_KEY
    AWS_REGION

    AWS_CUSTOMER_MASTER_KEY_ID (only required for encryption at rest with customer managed key)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSCredentials

type AWSCredentials struct {
	AccessKey         string
	SecretKey         string
	CustomerMasterKey string
	AwsRegion         string
}

func GetAWSCredentialsFromEnv

func GetAWSCredentialsFromEnv() AWSCredentials

type MongoDBCredentials

type MongoDBCredentials struct {
	ProjectID  string
	PublicKey  string
	PrivateKey string
	BaseURL    string
}

func GetCredentialsFromEnv

func GetCredentialsFromEnv() MongoDBCredentials

Jump to

Keyboard shortcuts

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