This is simple program that checks if provided Json file contains one asterisk (returns false). In any other case it returns true.
Running program:
In the terminal get into the directory that cointains given file(Main.py).
Execute command python Main.py --run_unit_tests
to run unit tests.
Execute command python Main.py Input.json
to check if given Json file(data format is defined as AWS::IAM::Role Policy) contains *
.
Note that when you give file name it needs to be in the same directory or you need to give file path.
Attached file(Input.json) meets all the requirements and script returns false.