ansible/test/units/modules/cloud/amazon
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
..
fixtures
placebo_recordings
__init__.py
test_aws_api_gateway.py
test_aws_direct_connect_connection.py unit tests: remove unused imports (#60462) 2019-08-13 19:21:43 +02:00
test_aws_direct_connect_link_aggregation_group.py
test_aws_netapp_cvs_active_directory.py new module: Cloud Volumes for AWS, active Directory (#61342) 2019-08-29 00:21:45 -04:00
test_aws_netapp_cvs_FileSystems.py new module: Cloud Volume for AWS FileSystems (#61343) 2019-08-28 23:02:15 -04:00
test_aws_netapp_cvs_pool.py new module netapp csv pools for aws (#61340) 2019-08-28 23:30:45 -04:00
test_aws_netapp_cvs_snapshots.py New module: cvs snapshots for aws (#61023) 2019-08-29 00:24:38 -04:00
test_aws_s3.py
test_cloudformation.py unit tests: remove unused imports (#60462) 2019-08-13 19:21:43 +02:00
test_data_pipeline.py
test_ec2_group.py Don't truncate cidr_ipv6 addresses in ec2_group.py (#59106) 2019-08-07 08:39:55 -04:00
test_ec2_vpc_nat_gateway.py Speed up a few more tests by mocking time.sleep (#61186) 2019-08-22 14:33:34 -05:00
test_ec2_vpc_vpn.py unit tests: remove unused imports (#60462) 2019-08-13 19:21:43 +02:00
test_iam_password_policy.py
test_kinesis_stream.py
test_lambda.py
test_lambda_policy.py
test_redshift_cross_region_snapshots.py
test_route53_zone.py
test_s3_bucket_notification.py Unit tests: remove unused imports (#59812) 2019-08-02 17:18:14 +02:00