-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: DBTP-1534 - Assume role policy for the S3 migration were too str…
…ict so relaxing them (#279) Co-authored-by: Will Gibson <[email protected]>
- Loading branch information
1 parent
4f44598
commit 3ea79ff
Showing
3 changed files
with
39 additions
and
1 deletion.
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 | ||
fi | ||
done |