-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix: DBTP-1534 - Assume role policy for the S3 migration were too strict so relaxing them #279
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
85e46a2
Added script to run all the tests
antroy-madetech e5877b3
Assume role policy for the S3 migration were too strict
antroy-madetech 43850b4
Added PR template
antroy-madetech 3ca4d85
Tabs to spaces
antroy-madetech eef1a79
remove eofs
antroy-madetech b9005fc
Update terraform_tests.sh
antroy-madetech File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,17 @@ | ||
Addresses [DBTP-<ticket>](https://uktrade.atlassian.net/browse/DBTP-<ticket>) | ||
|
||
Please add any relevant context for you pull request here, or delete this if none needed. | ||
|
||
--- | ||
## Checklist: | ||
|
||
### Title: | ||
- [ ] Scope included as per [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) | ||
- [ ] Ticket reference included (unless it's a quick out of ticket thing) | ||
### Description: | ||
- [ ] Link to ticket included (unless it's a quick out of ticket thing) | ||
- [ ] Includes tests (or an explanation for why it doesn't) | ||
- [ ] Includes any applicable changes to the documentation in this code base | ||
- [ ] Includes link(s) to any applicable changes to the documentation in the [DBT Platform Documentation](https://platform.readme.trade.gov.uk/) (can be to a pull request) | ||
### Tasks: | ||
- [ ] [Trigger the pull request regression tests for this branch](https://github.com/uktrade/platform-tools?tab=readme-ov-file#regression-tests) and confirm that they are passing |
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,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
unit_test_files=$(find . -name "*tftest.hcl" | grep -v e2e-tests | sort) | ||
modules="" | ||
IFS=$'\n' | ||
for file in $unit_test_files | ||
do | ||
# Lose leading ./ and select the part before the tests directory | ||
module=$(echo "${file#./}" | awk -F "/tests/" '{print $1}') | ||
# In case we separate the test files, only include each module once | ||
if [[ "\"${modules}\"" != *"\"${module}\""* ]]; then | ||
message="Running tests for module ${module}" | ||
underline=$(echo "${message}" | sed "s/./=/g") | ||
echo -en "\n\033[1;36m${message}\033[0m" | ||
echo -e "\n\033[1;36m${underline}\033[0m" | ||
pushd "${module}" | ||
terraform init | ||
terraform test | ||
popd | ||
antroy-madetech marked this conversation as resolved.
Show resolved
Hide resolved
|
||
fi | ||
done |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice