Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add UserPoolDomain mapping #36

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

docs(changeset): Add mapping for UserPoolDomain.

5fd15c8
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Draft

feat: add UserPoolDomain mapping #36

docs(changeset): Add mapping for UserPoolDomain.
5fd15c8
Select commit
Loading
Failed to load commit list.
GitHub Actions / Unit Tests succeeded Aug 5, 2024 in 0s

73 passed, 0 failed and 1 skipped

Tests passed successfully

✅ coverage/junit.xml

74 tests were completed in 19s with 73 passed, 0 failed and 1 skipped.

Test suite Passed Failed Skipped Time
src/tests/cdk-adaptor-stack.spec.ts 17✅ 1⚪ 10s
src/tests/constructs/services/msk.spec.ts 1✅ 271ms
src/tests/mappings/apigateway.spec.ts 9✅ 272ms
src/tests/mappings/appsync.spec.ts 7✅ 752ms
src/tests/mappings/certificate-manager.spec.ts 1✅ 92ms
src/tests/mappings/cloudfront.spec.ts 3✅ 195ms
src/tests/mappings/cognito.spec.ts 5✅ 284ms
src/tests/mappings/dynamodb.spec.ts 1✅ 184ms
src/tests/mappings/ec2-vpc.spec.ts 8✅ 598ms
src/tests/mappings/events.spec.ts 1✅ 98ms
src/tests/mappings/iam.spec.ts 3✅ 207ms
src/tests/mappings/lambda.spec.ts 5✅ 186ms
src/tests/mappings/logs.spec.ts 2✅ 88ms
src/tests/mappings/route53.spec.ts 1✅ 78ms
src/tests/mappings/s3.spec.ts 1✅ 82ms
src/tests/mappings/sns.spec.ts 2✅ 118ms
src/tests/mappings/sqs.spec.ts 2✅ 90ms
src/tests/mappings/stepfunctions.spec.ts 4✅ 207ms

✅ src/tests/cdk-adaptor-stack.spec.ts

src/__tests__/cdk-adaptor-stack.spec.ts
  ⚪ Stack synthesis > Should support basic stack synthesis with mixed resources
  ✅ Stack synthesis > Should handle implicit dependencies > Should add implicit dependencies to resources
  ✅ Stack synthesis > Should synthesize native terraform resources > Should not perturb complex native resources
  ✅ Stack synthesis > Should synthesize native terraform resources > Should resolve deeply nested tokens in cloudformation
  ✅ Stack synthesis > Manage CloudContrlApi resources > Should not map using CloudControl when disabled
  ✅ Stack synthesis > Stack Resources > Should have converted the 'Resource' child of the construct
  ✅ Stack synthesis > Stack Resources > Should have native s3 bucket
  ✅ Stack synthesis > Stack Resources > Should synthesize explicit provider specification
  ✅ Stack synthesis > Dependency order preservation > Should preserve dependencies on AWS CDK resources
  ✅ Stack synthesis > Dependency order preservation > Should preserve dependencies on CDKTF resources
  ✅ Stack synthesis > Token translation > Should translate tokens pointing to AWS CDK resources in CDKTF resources
  ✅ Stack synthesis > Token translation > Should translate tokens pointing to AWS CDK resources in other AWS CDK resources
  ✅ Stack synthesis > Token translation > Should translate token pointing to CDKTF resources within AWS CDK resources
  ✅ Stack synthesis > Inter-stack references > Should support inter-stack references pointing from CDKTF to AWS CDK
  ✅ Stack synthesis > Inter-stack references > Should support inter-stack references pointing from AWS CDK to CDKTF
  ✅ Stack synthesis > Inter-stack references > Should support inter-stack references pointing from AWS CDK to AWS CDK
  ✅ Stack synthesis > Inter-stack references > Should support inter-stack references with inverted constructor order
  ✅ Stack synthesis > File assets > Should support AWS CDK file assets

✅ src/tests/constructs/services/msk.spec.ts

src/__tests__/constructs/services/msk.spec.ts
  ✅ MSK Constructs > Should provision an MSK Cluster

✅ src/tests/mappings/apigateway.spec.ts

src/__tests__/mappings/apigateway.spec.ts
  ✅ Apigateway mappings > should map AWS::ApiGateway::Account
  ✅ Apigateway mappings > should map AWS::ApiGateway::Deployment
  ✅ Apigateway mappings > should map AWS::ApiGateway::Stage
  ✅ Apigateway mappings > should map AWS::ApiGateway::BasePathMapping
  ✅ Apigateway mappings > Should map AWS::ApiGatewayV2::Stage
  ✅ Apigateway mappings > Should map AWS::ApiGatewayV2::DomainName
  ✅ Apigateway mappings > Should map AWS::ApiGatewayV2::Integration
  ✅ Apigateway mappings > Should map AWS::ApiGatewayV2::Authorizer
  ✅ Apigateway mappings > Should map AWS::ApiGatewayV2::Route

✅ src/tests/mappings/appsync.spec.ts

src/__tests__/mappings/appsync.spec.ts
  ✅ Appsync mappings > AWS::AppSync::GraphQLApi > Should translate API without schema
  ✅ Appsync mappings > AWS::AppSync::GraphQLApi > Should translate API with schema
  ✅ Appsync mappings > Should translate AWS::AppSync::ApiKey
  ✅ Appsync mappings > Should translate AWS::AppSync::DataSource
  ✅ Appsync mappings > Should translate AWS::AppSync::Resolver
  ✅ Appsync mappings > Should translate AWS::AppSync:FunctionConfiguration
  ✅ Appsync mappings > Should translate AWS::AppSync::DomainNameApiAssociation

✅ src/tests/mappings/certificate-manager.spec.ts

src/__tests__/mappings/certificate-manager.spec.ts
  ✅ CertificateManager mappings > should map AWS::CertificateManager::Certificate

✅ src/tests/mappings/cloudfront.spec.ts

src/__tests__/mappings/cloudfront.spec.ts
  ✅ CloudFront > Should map AWS::CloudFront::CloudFrontOriginAccessIdentity
  ✅ CloudFront > Should map AWS::CloudFront::Distribution
  ✅ CloudFront > Should map AWS::CloudFront::Distribution

✅ src/tests/mappings/cognito.spec.ts

src/__tests__/mappings/cognito.spec.ts
  ✅ Cognito mappings > Should map AWS::Cognito::UserPoolClient
  ✅ Cognito mappings > Should map AWS::Cognito::IdentityPoolRoleAttachment
  ✅ Cognito mappings > Should map AWS::Cognito::IdentityPool
  ✅ Cognito mappings > Should map AWS::Cognito::UserPool
  ✅ Cognito mappings > Should map AWS::Cognito::UserPoolDomain

✅ src/tests/mappings/dynamodb.spec.ts

src/__tests__/mappings/dynamodb.spec.ts
  ✅ DynamoDB mappings > Should map AWS::DynamoDB::Table

✅ src/tests/mappings/ec2-vpc.spec.ts

src/__tests__/mappings/ec2-vpc.spec.ts
  ✅ EC2 VPC mappings > Should provision all the components of a VPC
  ✅ EC2 VPC mappings > Should map AWS::EC2::InternetGateway
  ✅ EC2 VPC mappings > Should map AWS::EC2::SubnetRouteTableAssociation
  ✅ EC2 VPC mappings > Should map AWS::EC2::VPC
  ✅ EC2 VPC mappings > Should map AWS::EC2::Route
  ✅ EC2 VPC mappings > Should map AWS::EC2::SecurityGroup
  ✅ EC2 VPC mappings > Should map AWS::EC2::SecurityGroupEgress
  ✅ EC2 VPC mappings > Should map AWS::EC2::SecurityGroupIngress

✅ src/tests/mappings/events.spec.ts

src/__tests__/mappings/events.spec.ts
  ✅ Events mappings > Should map AWS::Events::Rule

✅ src/tests/mappings/iam.spec.ts

src/__tests__/mappings/iam.spec.ts
  ✅ IAM Mappings > should map AWS::IAM::Role
  ✅ IAM Mappings > should map AWS::IAM::Policy
  ✅ IAM Mappings > Should map AWS::IAM::AccessKey

✅ src/tests/mappings/lambda.spec.ts

src/__tests__/mappings/lambda.spec.ts
  ✅ Lambda mappings > Should map AWS::Lambda::Permission
  ✅ Lambda mappings > Should map AWS::Lambda::LayerVersion
  ✅ Lambda mappings > Should map AWS::Lambda::LayerVersionPermission
  ✅ Lambda mappings > should map CfnFunction to LambdaFunction
  ✅ Lambda mappings > Should map AWS::Lambda::EventSourceMapping

✅ src/tests/mappings/logs.spec.ts

src/__tests__/mappings/logs.spec.ts
  ✅ Logs mappings > Should map AWS::Logs::LogGroup
  ✅ Logs mappings > Should map AWS::Logs::ResourcePolicy

✅ src/tests/mappings/route53.spec.ts

src/__tests__/mappings/route53.spec.ts
  ✅ Route53 mappings > Should map AWS::Route53::RecordSet

✅ src/tests/mappings/s3.spec.ts

src/__tests__/mappings/s3.spec.ts
  ✅ S3 mappings > Should map AWS::S3::BucketPolicy

✅ src/tests/mappings/sns.spec.ts

src/__tests__/mappings/sns.spec.ts
  ✅ SNS mappings > AWS:SNS:Subscription > should translate
  ✅ SNS mappings > AWS:SNS:Topic > Should translate

✅ src/tests/mappings/sqs.spec.ts

src/__tests__/mappings/sqs.spec.ts
  ✅ SQS mappings > AWS:SQS:QueuePolicy > should translate to single SqsQueuePolicy
  ✅ SQS mappings > AWS:SQS:QueuePolicy > should translate to multiple SqsQueuePolicy

✅ src/tests/mappings/stepfunctions.spec.ts

src/__tests__/mappings/stepfunctions.spec.ts
  ✅ Step Functions mappings > AWS:StepFunctions:StateMachine > Should translate with String definition
  ✅ Step Functions mappings > AWS:StepFunctions:StateMachine > Should translate with S3 definition
  ✅ Step Functions mappings > AWS:StepFunctions:StateMachine > Should translate with Object definition
  ✅ Step Functions mappings > AWS:StepFunctions:StateMachine > Should translate with definition substitutions