Skip to content

Commit

Permalink
feat(apigatewayv2): http api - mTLS support - Fix test bucket names
Browse files Browse the repository at this point in the history
  • Loading branch information
serahisaactho committed Nov 8, 2021
1 parent afa88a1 commit 2cadfec
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ describe('DomainName', () => {
test('accepts a mutual TLS configuration', () => {
// GIVEN
const stack = new Stack();
const bucket = Bucket.fromBucketName(stack, 'testBucket', 'exampleBucket');
const bucket = Bucket.fromBucketName(stack, 'testBucket', 'example-bucket');

// WHEN
new DomainName(stack, 'DomainName', {
Expand All @@ -195,15 +195,15 @@ describe('DomainName', () => {
},
],
MutualTlsAuthentication: {
TruststoreUri: 's3://exampleBucket/someca.pem',
TruststoreUri: 's3://example-bucket/someca.pem',
},
});
});

test('mTLS should allow versions to be set on the s3 bucket', () => {
// GIVEN
const stack = new Stack();
const bucket = Bucket.fromBucketName(stack, 'testBucket', 'exampleBucket');
const bucket = Bucket.fromBucketName(stack, 'testBucket', 'example-bucket');

// WHEN
new DomainName(stack, 'DomainName', {
Expand All @@ -226,7 +226,7 @@ describe('DomainName', () => {
},
],
MutualTlsAuthentication: {
TruststoreUri: 's3://exampleBucket/someca.pem',
TruststoreUri: 's3://example-bucket/someca.pem',
TruststoreVersion: 'version',
},
});
Expand Down

0 comments on commit 2cadfec

Please sign in to comment.