You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The provided mock_data provides a failed-by-default test cases for tests/test_resource_based_policy/test_ecr_policy_for_organizations_dependency.py, due to the limitation of ECR repository name, that are not supposed to contain any capital letter. The following mock data is the cause of this bug on file ./source/lambda/tests/test_resource_based_policy/mock_data.py:189-191 :
{
"MockResourceName": "ResourceWithNoPolicy",
}
To Reproduce
Run the ./source/run-all-tests.sh for custom-build of this solution, without an change to the repository code after exporting a valid AWS_REGION environment value (eg. us-west-1).
Expected behavior
There should not have a false-by-default test case from the given mock_data, but fail by misconfiguration or wrongly modified IaC code.
Example Patch
Add the .lower() function on the following code block to make the resource name into non-capital letter.
Describe the bug
The provided mock_data provides a failed-by-default test cases for tests/test_resource_based_policy/test_ecr_policy_for_organizations_dependency.py, due to the limitation of ECR repository name, that are not supposed to contain any capital letter. The following mock data is the cause of this bug on file ./source/lambda/tests/test_resource_based_policy/mock_data.py:189-191 :
To Reproduce
Run the ./source/run-all-tests.sh for custom-build of this solution, without an change to the repository code after exporting a valid AWS_REGION environment value (eg. us-west-1).
Expected behavior
There should not have a false-by-default test case from the given mock_data, but fail by misconfiguration or wrongly modified IaC code.
Example Patch
Add the .lower() function on the following code block to make the resource name into non-capital letter.
Please complete the following information about the solution:
To get the version of the solution, you can look at the description of the created CloudFormation stack.
For example, "(SO0217) - The AWS CloudFormation hub template for deployment of the Account Assessment for AWS Organisations, Version: v1.0.0".
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: