ansible/test/units
Mark Chappell 1f38a12057 Fix behaviour of module_utils/ec2 compare_policies when dealing with bare bools and ints. (#61115)
* module_utils/ec2: (unit tests) Move unit tests for module_utils/ec2.py into test/units/module_utils

- compare_policies was refactored from s3_bucket
- "ec2_utils" doesn't seem to have ever existed

* module_utils/ec2: (unit tests) Add unit test for comparing quoted and unquoted bools and numbers within policies

As per https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_grammar.html

"Values are enclosed in quotation marks. Quotation marks are optional for numeric
and Boolean values."

* module_utils/ec2: Explicitly convert bools and ints to strings when comparing policies

See also: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_grammar.html
2019-09-09 12:08:25 -04:00
..
cli
compat
config
contrib
errors
executor Properly load module_prefix for collections in task_executor.py (#60420) 2019-08-29 09:04:26 -07:00
galaxy Refactor galaxy collection API for v3 support (#61510) 2019-08-30 11:55:19 +10:00
inventory_test_data/group_vars
mock
module_utils Fix behaviour of module_utils/ec2 compare_policies when dealing with bare bools and ints. (#61115) 2019-09-09 12:08:25 -04:00
modules Fix behaviour of module_utils/ec2 compare_policies when dealing with bare bools and ints. (#61115) 2019-09-09 12:08:25 -04:00
parsing Properly JSON encode AnsibleUnsafe, using a pre-processor (#60602) 2019-08-26 09:08:22 -05:00
playbook Collection role relative deps (#61517) 2019-08-29 02:25:44 -07:00
plugins Ansible FTD Module improvements and tests update. (#60640) 2019-09-03 08:38:11 +05:30
regex
template
utils
vars
__init__.py
test_constants.py
test_context.py