Skip to content

Checks if given Json file has single asterisk + unit tests

Notifications You must be signed in to change notification settings

Z3vron/Check-Json-fIle-for-input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

Checks if given Json file has single asterisk + unit tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages