-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: readme for hosted_zone tests (#26547)
Documents some unkowns around running integ tests with hosted zones. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
- Loading branch information
Showing
8 changed files
with
61 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# AWS CDK Framework Integration Test Suite | ||
|
||
Run the full test suite with `yarn integ`. | ||
|
||
See `integ-runner` package or `yarn integ --help` for detailed instructions. | ||
|
||
## Common Errors | ||
|
||
### Error: For this test you must provide your own HostedZoneId/HostedZoneName/DomainName | ||
|
||
Some test cases require a publicly available domain name attached to a Amazon Route 53 Hosted Zone to work. | ||
These test cases need to add DNS records that are then retrieved via the public internet infrastructure. This can be a subdomain to an existing domain, but it must have a Hosted Zone configured and nameservers delegated to it. | ||
|
||
If you haven't got one ready, see the [Route 53 guide](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/CreatingHostedZone.html) to manually create a hosted zone. | ||
|
||
AWS CDK core team members, please check our team internal docs for guidance on how to configure domains for testing. | ||
|
||
#### How to correctly run these tests | ||
|
||
**A) Each test needs exclusive access to the Hosted Zone.**\ | ||
You can only run one test at a time. | ||
|
||
**B) Must be run with `--disable-update-workflow`**\ | ||
The checked-in snapshot uses dummy values that will not deploy. | ||
|
||
- Go to your Hosted Zone and write down the values for `HostedZoneId`, `HostedZoneName` and `DomainName`. | ||
All values must related to the **same** Hosted Zone. | ||
- In your terminal run the following commands: | ||
|
||
```console | ||
export HOSTED_ZONE_ID=your_hosted_zone_id | ||
export HOSTED_ZONE_NAME=your_hosted_zone_name | ||
export DOMAIN_NAME=your_domain_name | ||
``` | ||
|
||
- Finally, in the same terminal run your specific test case with the **update workflow disabled**. For example: | ||
|
||
```console | ||
yarn integ --disable-update-workflow aws-certificatemanager/test/integ.certificate-name | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters