-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from anyscale/brent/update-cors
upd: update cors rules in aws-anyscale-s3 module
- Loading branch information
Showing
12 changed files
with
223 additions
and
1,206 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
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 |
---|---|---|
@@ -1,27 +1,5 @@ | ||
# aws-anyscale-s3 module unit tests | ||
Requirements: | ||
* Go language (this can be installed locally via `brew install go`) | ||
* terratest which is installed with `go mod tidy` (see below) | ||
* A unit test file whose suffix is: _test.go | ||
|
||
More info can be found [here](https://terratest.gruntwork.io/docs/getting-started/quick-start/) | ||
You can run the `anyscale-test` terraform and validate outputs. | ||
|
||
#### Manual execution | ||
Manully running the go tests can save time during initial development. Requires active aws credentials. | ||
``` | ||
cd test | ||
go mod init "<module_name>" | ||
go mod tidy | ||
go test -v | ||
``` | ||
Where `<module_name>` is the name of the terraform module (can also be `github.com/<your_repo_name>`). | ||
|
||
#### Other useful go commands | ||
`go get -t -u` This updates test modules to the latest versions. Must be followed with `go mod tidy` | ||
|
||
#### Retrieving AWS credentials | ||
AWS Credentials can be retreived using the aws cli. It then needs to be exported to the env variable AWS_PROFILE | ||
``` | ||
aws sso login --profile <profile_name> | ||
export AWS_PROFILE="<profile_name>" | ||
``` | ||
Go Unit tests were removed as they were unused and not maintained. |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.