This repository has been archived by the owner on Aug 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Docs And Support For Contributors (#353)
* Create deploy_resources.yml * Update deploy_resources.yml * Update deploy_resources.yml * Update deploy_resources.yml * Add locking table * Delete deploy_resources.yml * fix spelling * Create PULL_REQUEST_TEMPLATE.md * Create e2e_tests.md * Update Makefile * Update PULL_REQUEST_TEMPLATE.md * Update PULL_REQUEST_TEMPLATE.md * Update PULL_REQUEST_TEMPLATE.md * Update e2e_tests.md * Update e2e_tests.md * Update Makefile * Update Makefile * Update e2e_tests.md
- Loading branch information
Showing
6 changed files
with
84 additions
and
4 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,22 @@ | ||
<!--- | ||
Thank you very much for your contributions! | ||
---> | ||
|
||
|
||
<!--- If your PR fully resolves and should automatically close the linked issue, use Closes. Otherwise, use Relates ---> | ||
Relates OR Closes #0000 | ||
|
||
Output from acceptance testing: | ||
More information about running the tests [here](../docs/contributing/e2e_tests.md) | ||
<!-- | ||
Replace TestAccXXX with a pattern that matches the tests affected by this PR. | ||
For more information on the `-run` flag, see the `go test` documentation at https://tip.golang.org/cmd/go/#hdr-Testing_flags. | ||
More information about running the tests [here](../docs/contributing/e2e_tests.md) | ||
--> | ||
``` | ||
$ make testName=TestAccXXX e2e-test-with-apply | ||
... | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Running cq-provider-aws E2E Tests: | ||
|
||
|
||
## Prerequisites: | ||
|
||
1. Go | ||
2. [Terraform](https://learn.hashicorp.com/tutorials/terraform/install-cli) | ||
3. [Terraform Prerequisites](https://learn.hashicorp.com/tutorials/terraform/aws-build) | ||
|
||
|
||
|
||
## Running Tests | ||
|
||
All of the tests in the `resources/integration_tests` directory use a wrapper to dynamically call terraform in order to provision resources at test time and then tear down the resources when the testing is complete. You do not have to deploy the entire infrastructure suite in order to run the tests, you can pick and choose exactly which tests you want to run | ||
|
||
Using the Makefile in the root of the repository is the simplest way to start running your tests locally. | ||
|
||
(hint: You can include regular expressions in the test name to match multiple tests) | ||
|
||
example of running multiple tests (`TestIntegrationCognitoUserPools` and `TestIntegrationCognitoIdentityPools`): | ||
``` bash | ||
make testName=^TestIntegrationCognito$ e2e-test-with-apply | ||
``` | ||
|
||
|
||
### Running Read Only Tests | ||
|
||
|
||
If you have another way of deploying the terraform defined in the `resources/integration_tests/infra` directory you can do that and then run the tests against the deployed resources like this: | ||
|
||
|
||
``` bash | ||
export TF_VAR_PREFIX=WhatEverValueYouSpecified | ||
export TF_VAR_SUFFIX=WhatEverValueYouSpecified | ||
make testName=^TestIntegrationCognito$ e2e-test-with-apply | ||
``` |
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