moto/tests
Waldemar Hummer 08a08b6af8
Fix SQS tag list from CloudFormation resource creation (#3197)
* fix sqs tag list from cloudformation resource creation

the method `create_from_cloudformation_json` of the Sqs resource
does not handle the difference of format of the Tags field in the
resource template and the format expected in Sqs resource class.

In cfn resource template Tags is specified as a list of dicts. But
the Sqs resource expects that the tags field be a single dict.
This behaviour causes a crash when a queue is created with tags
from `create_from_cloudformation_json` and later the list_queue_tags
is called because it tries to call `items` from `queue.tags` but
tags is actually a list of dicts.

* fix comment

* fix linter

* minor

Co-authored-by: Hudo Assenco <hudo.assenco@gmail.com>
2020-07-29 11:44:02 +01:00
..
test_acm
test_apigateway fix API Gateway:create_usage_plan_key return wrong status code (#3134) 2020-07-15 14:01:03 +01:00
test_applicationautoscaling Application Autoscaling basic features (#3082) 2020-07-03 14:23:17 +01:00
test_athena Implemented Athena create_named_query, get_named_query (#1524) (#3065) 2020-06-11 17:27:29 +01:00
test_autoscaling Always call update ELBs for ASGs (#2980) 2020-05-11 07:44:26 +01:00
test_awslambda Cloudformation support for EventSourceMapping (#3045) 2020-06-14 16:03:00 +01:00
test_batch Tech debt - increase test timeouts to remove intermittant test failures (#3146) 2020-07-17 12:11:47 +01:00
test_cloudformation Fixed Failures in CloudFormation Provisioning of S3 Buckets When Stack has Long Name... (#3169) 2020-07-29 07:47:18 +01:00
test_cloudwatch Fix : Added implementation for CloudWatch Describe Metric for Alarm (#3148) 2020-07-18 10:47:53 +01:00
test_codecommit add tests for codecommit 2019-12-26 16:06:53 +01:00
test_codepipeline Add codepipeline.untag_resource 2019-12-23 19:50:16 +01:00
test_cognitoidentity #2800 - CognitoIdentity - Fix format of Identity ID 2020-04-04 14:09:38 +01:00
test_cognitoidp fix cognito-idp UserPool ClientId (#3165) 2020-07-22 14:08:17 +01:00
test_config Config - implement Organization Conformance Pack functionality (#3116) 2020-07-13 09:30:55 +01:00
test_core #2774 - Re-add test, and update requirements to working botocore 2020-03-09 12:47:44 +00:00
test_datapipeline Merge remote-tracking branch 'upstream/master' 2019-12-23 08:38:53 +01:00
test_datasync
test_dynamodb Merge remote-tracking branch 'upstream/master' 2019-12-23 08:38:53 +01:00
test_dynamodb2 Fix dynamodb2 KEYS_ONLY Indexes (#3125) 2020-07-14 13:42:13 +01:00
test_dynamodbstreams make black happy 2020-04-06 19:55:54 +10:00
test_eb Elastic Beanstalk - Rename and Add Implementation Coverage 2020-03-30 14:08:22 +01:00
test_ec2 Implement ec2.register_image() (#3177) 2020-07-26 13:51:26 +01:00
test_ec2instanceconnect Improve implementation coverage (and layout) 2020-05-12 14:58:35 +01:00
test_ecr Change RESTError to JsonRESTError for ImageNotFoundException, update test to expect ImageNotFoundException 2020-03-08 20:56:21 +01:00
test_ecs Merge pull request #3147 from bblommers/enhancement/3139 2020-07-26 15:31:12 -05:00
test_elb
test_elbv2 Fix condition filtering bug in elbv2.create_rule() (#3092) 2020-06-27 09:42:32 +01:00
test_emr Reformat 2020-03-06 18:11:07 -03:00
test_events Fix: Put Events API (#3145) 2020-07-19 10:00:24 +01:00
test_glacier Merge remote-tracking branch 'upstream/master' 2020-01-23 15:37:40 +01:00
test_glue change code style to pass black --check 2020-04-21 22:34:05 +02:00
test_iam FIX : IAM - Added support for pathPrefix in list_users_function (#3180) 2020-07-27 15:32:41 +01:00
test_iot Fixed python2 2020-05-06 10:28:13 -04:00
test_iotdata
test_kinesis Fix more typos. 2020-01-23 10:15:02 -08:00
test_kms re-add coverage and remove unused import 2020-02-21 15:39:23 -05:00
test_logs Add CloudWatch logs subscription filters (#2982) 2020-05-12 13:34:10 +01:00
test_managedblockchain Added node actions and other fixes 2020-05-15 19:38:19 -05:00
test_opsworks Fix the online status in OpsWorks 2020-05-07 10:57:27 +03:00
test_organizations Organisations - Put back assertions that got lost in a merge (#3184) 2020-07-27 12:36:31 +01:00
test_packages
test_polly Merge remote-tracking branch 'upstream/master' 2019-12-23 08:38:53 +01:00
test_ram RAM - implement CRUD endpoints (#3158) 2020-07-21 14:15:13 +01:00
test_rds Fix more typos. 2020-01-23 10:15:02 -08:00
test_rds2 Bugfix: Allow stop_db_instance for compatible engines 2020-04-16 15:14:37 -04:00
test_redshift Add Redshift.ClusterAlreadyExists Error 2020-05-06 14:28:40 -07:00
test_resourcegroups
test_resourcegroupstaggingapi Add tag get_resource support for target groups (#3012) 2020-05-24 10:25:38 +01:00
test_route53 Formatting 2020-03-02 13:07:34 +00:00
test_s3 S3 - Only add metadata once; use binary file content 2020-07-12 18:29:10 +01:00
test_s3bucket_path Fix more typos. 2020-01-23 10:15:02 -08:00
test_sagemaker Basic Support for Endpoints, EndpointConfigs and TrainingJobs (#3142) 2020-07-19 15:06:48 +01:00
test_secretsmanager Fix: SecretsManager - Added missing pop() override to get_secret_name… (#3057) 2020-06-10 08:54:03 +01:00
test_ses Enhancement : SES - Added create-receipt-rule-set, create-receipt-rul… (#3059) 2020-06-10 10:23:43 +01:00
test_sns Fix missing MessageAttributes when using RawMessageDelivery 2020-03-21 19:25:25 +01:00
test_sqs Fix SQS tag list from CloudFormation resource creation (#3197) 2020-07-29 11:44:02 +01:00
test_ssm Enhance function get_parameter by parameter name, version or labels (#3191) 2020-07-28 16:59:22 +01:00
test_stepfunctions SFN - fix InvalidARN exception on start_execution (#3007) 2020-05-24 15:06:02 +01:00
test_sts Add a test for assume_role_with_saml. 2020-04-16 11:47:30 -07:00
test_swf Add SWF domain and type undeprecation 2020-03-05 23:37:17 +10:00
test_utilities Use TaggingService for S3 Objects 2020-03-31 12:04:04 +01:00
test_xray
__init__.py
backport_assert_raises.py
helpers.py