Documentation
¶
Index ¶
- Constants
- Variables
- func SetupOptionsMicroservice(t *testing.T, projectName, serviceName string) (*terraform.Options, string)
- func TestEcr(t *testing.T, accountRegion, organization, repository, branch string)
- func TestGroup(t *testing.T, accountRegion, groupName string, userNames []string) *string
- func TestRestEndpoints(t *testing.T, endpoints []EndpointTest)
- func TestRole(t *testing.T, accountRegion, roleName string) *string
- func TestUser(t *testing.T, accountRegion, userName string) *string
- func ValidateEcs(t *testing.T, accountRegion, clusterName, serviceName string, ...)
- func ValidateGroup(t *testing.T, accountRegion, prefixName string, group GroupInfo)
- func ValidateLevel(t *testing.T, accountRegion, prefixName string, groups ...GroupInfo)
- func ValidateMicroservice(t *testing.T, commonName string, microservicePath string, ...)
- type EC2Instance
- type EndpointTest
- type GithubProjectInformation
- type GroupInfo
Constants ¶
View Source
const (
// https://docs.aws.amazon.com/AmazonECS/latest/developerguide/memory-management.html#ecs-reserved-memory
ECSReservedMemory = 100
)
Variables ¶
View Source
var ( AccountName = util.GetEnvVariable("AWS_PROFILE_NAME") AccountId = util.GetEnvVariable("AWS_ACCOUNT_ID") AccountRegion = util.GetEnvVariable("AWS_REGION_NAME") DomainName = fmt.Sprintf("%s.%s", util.GetEnvVariable("DOMAIN_NAME"), util.GetEnvVariable("DOMAIN_SUFFIX")) )
View Source
var ( // for amazon 2023 at least T3Small = EC2Instance{ Name: "t3.small", Cpu: 2048, Memory: 2048, MemoryAllowed: 1801, Architecture: "x86_64", } T3Medium = EC2Instance{ Name: "t3.medium", Cpu: 2048, Memory: 4096, MemoryAllowed: 3828, Architecture: "x86_64", } )
Functions ¶
func TestRestEndpoints ¶
func TestRestEndpoints(t *testing.T, endpoints []EndpointTest)
func ValidateEcs ¶
https://github.com/gruntwork-io/terratest/blob/master/test/terraform_aws_ecs_example_test.go
func ValidateGroup ¶
func ValidateLevel ¶
func ValidateMicroservice ¶
func ValidateMicroservice(t *testing.T, commonName string, microservicePath string, githubProject GithubProjectInformation, endpoints []EndpointTest)
Types ¶
type EC2Instance ¶
type EndpointTest ¶
Click to show internal directories.
Click to hide internal directories.