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 [cloud][tests] AWS lambda module unit tests (#21768) 8 years ago
placebo_recordings Added the OnFailure option to the AWS CloudFormation module (#52431) 6 years ago
__init__.py Relocate module unit tests. (#18812) 8 years ago
test_aws_api_gateway.py Enable additional pylint rules and resolve issues found. (#47221) 6 years ago
test_aws_direct_connect_connection.py unit tests: remove unused imports (#60462) 5 years ago
test_aws_direct_connect_link_aggregation_group.py Move AWS placebo fixtures into test/units/utils so module_utils tests can use them (#37300) 7 years ago
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 Rename AWS unit tests that are not running when changing the module (#42712) 6 years ago
test_cloudformation.py unit tests: remove unused imports (#60462) 5 years ago
test_data_pipeline.py Remove placeboify from unit tests that are not calling AWS (i.e. creating a recording) (#45754) 6 years ago
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 Fix sanity test failure. 6 years ago
test_kinesis_stream.py Enable additional pylint rules and resolve issues found. (#47221) 6 years ago
test_lambda.py Move unit test compat code out of `lib/ansible/`. (#46996) 6 years ago
test_lambda_policy.py Enable additional pylint rules and resolve issues found. (#47221) 6 years ago
test_redshift_cross_region_snapshots.py Adds `redshift_cross_region_snapshots` module (#35527) 6 years ago
test_route53_zone.py route53_zone: return existing zone id in check mode (#56702) 6 years ago
test_s3_bucket_notification.py Unit tests: remove unused imports (#59812) 5 years ago