You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
5 years ago
..
fixtures
placebo_recordings
__init__.py
test_aws_api_gateway.py
test_aws_direct_connect_connection.py unit tests: remove unused imports (#60462) 5 years ago
test_aws_direct_connect_link_aggregation_group.py
test_aws_netapp_cvs_FileSystems.py new module: Cloud Volume for AWS FileSystems (#61343) 5 years ago
test_aws_netapp_cvs_active_directory.py new module: Cloud Volumes for AWS, active Directory (#61342) 5 years ago
test_aws_netapp_cvs_pool.py new module netapp csv pools for aws (#61340) 5 years ago
test_aws_netapp_cvs_snapshots.py New module: cvs snapshots for aws (#61023) 5 years ago
test_aws_s3.py
test_cloudformation.py unit tests: remove unused imports (#60462) 5 years ago
test_data_pipeline.py
test_ec2_group.py Don't truncate cidr_ipv6 addresses in ec2_group.py (#59106) 5 years ago
test_ec2_vpc_nat_gateway.py Speed up a few more tests by mocking time.sleep (#61186) 5 years ago
test_ec2_vpc_vpn.py unit tests: remove unused imports (#60462) 5 years ago
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) 5 years ago