package
0.0.0-20240523192623-2e730fcd1784
Repository: https://github.com/evergreen-ci/cocoa.git
Documentation: pkg.go.dev
# Functions
AWSRole returns the AWS IAM role from the environment variable.
CheckAWSEnvVarsForECS checks that the required environment variables are defined for testing against AWS ECS.
CheckAWSEnvVarsForECSAndSecretsManager checks that the required environment variables are defined for testing against both AWS ECS and Secrets Manager.
CheckAWSEnvVarsForSecretsManager checks that the required environment variables are defined for testing against AWS Secrets Manager.
CheckEnvVars checks that the required environment variables are set.
CleanupSecrets cleans up all existing secrets used in a test.
CleanupTaskDefinitions cleans up all existing task definitions used in a test.
CleanupTasks cleans up all tasks used in the Cocoa cluster.
CreateSecret is a convenience function for creating a Secrets Manager secret and verifying that the result is successful and populates the secret ARN.
ECSCapacityProvider returns the ECS capacity provider from the environment variable.
ECSClusterName returns the ECS cluster name from the environment variable.
ECSExecutionRole returns the ECS execution role from the environment variable.
ECSTaskRole returns the ECS task role from the environment variable.
NewSecretName creates a new test secret name with a common prefix, the given test's name, and a random string.
NewTaskDefinitionFamily makes a new test family for a task definition with a common prefix, the given name, and a random string.
RegisterTaskDefinition is a convenience function for registering an ECS task definition and verifying that the result is successful and populates the task definition ARN.
SecretPrefix returns the prefix name for secrets from the environment variable.
TaskDefinitionPrefix returns the prefix name for task definitions from the environment variable.
ValidIntegrationAWSOptions returns valid options to create an AWS client that can make actual requests to AWS for integration testing.
ValidNonIntegrationAWSOptions returns valid options to create an AWS client that doesn't make any actual requests to AWS.
ValidRegisterTaskDefinitionInput returns a valid set of options for registering an ECS task definition.
# Structs
NoopECSPodDefinitionCache is an implementation of cocoa.ECSPodDefinitionCache that no-ops for all cache modification operations.
NoopSecretCache is an implementation of cocoa.SecretCache that no-ops for all cache modification operations.