awslabs / aws-config-rules

[Node, Python, Java] Repository of sample Custom Rules for AWS Config.
http://aws.amazon.com/config/
Creative Commons Zero v1.0 Universal
1.58k stars 851 forks source link

Unable to run unit tests #341

Open RajivKurien opened 3 years ago

RajivKurien commented 3 years ago

When running pytest ./python/CLOUDFRONT_WEB_ACL_CHECK , the tests fail due to:

FAILED python/CLOUDFRONT_WEBACL_CHECK/CLOUDFRONT_WEBACL_CHECK_test.py::TestStsErrors::test_sts_access_denied - AttributeError: module 'botocore' has no attribute 'exceptions'
FAILED python/CLOUDFRONT_WEBACL_CHECK/CLOUDFRONT_WEBACL_CHECK_test.py::TestStsErrors::test_sts_unknown_error - AttributeError: module 'botocore' has no attribute 'exceptions'

Here is a solution that worked: https://github.com/awslabs/aws-config-rdk/issues/245