moto/tests
Ben Dennerley 958e95cf5c
Make IoT certificate ID generation deterministic and prevent duplicate certificates from being created (#3331)
* Make IoT certificate id generation deterministic

Fixes #3321

As per https://stackoverflow.com/questions/55847788/how-does-aws-iot-generate-a-certificate-id,
the IoT certificate ID is the SHA256 fingerprint of the
certificate. Since moto doesn't generate full certificates we will
instead use the SHA256 hash of the passed certificate pem.

* Don't allow duplicate IoT certificates to be created

Fixes #3320

When using boto3, trying to register a certificate that already
exists will throw a ResourceAlreadyExistsException. Moto should
follow the same pattern to allow testing error handling code in
this area.
2020-09-22 10:28:12 +01:00
..
test_acm black linting 2019-12-16 21:25:20 -05:00
test_apigateway Fix: Api-Gateway ApiKeyAlreadyExists headers change. (#3162) 2020-09-01 08:25:59 +01:00
test_applicationautoscaling ApplicationAutoscaling: support for all the current various forms of resource_id (#3305) 2020-09-19 20:13:44 +01:00
test_athena Implemented Athena create_named_query, get_named_query (#1524) (#3065) 2020-06-11 17:27:29 +01:00
test_autoscaling Add support for Launch Templates in Auto Scaling Groups (#3236) 2020-08-26 15:15:07 +01:00
test_awslambda Fix deprecation warnings due to invalid escape sequences. (#3273) 2020-09-10 09:20:26 +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 Iam cloudformation update, singificant cloudformation refactoring (#3218) 2020-08-27 10:11:47 +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 added cognito idp function admin_set_user_password to the code (#3328) 2020-09-21 18:40:07 +01:00
test_config Config - implement Organization Conformance Pack functionality (#3116) 2020-07-13 09:30:55 +01:00
test_core Fix deprecation warnings due to invalid escape sequences. (#3273) 2020-09-10 09:20:26 +01: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 ExpressionAttributeNames can start with a number (#3206) 2020-07-31 17:46:48 +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 Fix deprecation warnings due to invalid escape sequences. (#3273) 2020-09-10 09:20: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 include=["TAGS"] for describe_task_definition (#3265) 2020-09-01 10:24:08 +01:00
test_elb black linting 2019-12-16 21:25:20 -05:00
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 use botocore regions and refactor sorting 2020-09-21 17:42:44 -06:00
test_iot Make IoT certificate ID generation deterministic and prevent duplicate certificates from being created (#3331) 2020-09-22 10:28:12 +01:00
test_iotdata
test_kinesis Iam cloudformation update, singificant cloudformation refactoring (#3218) 2020-08-27 10:11:47 +01:00
test_kinesisvideo Add kinesisvideo (#3271) 2020-09-02 08:51:51 +01:00
test_kinesisvideoarchivedmedia Add kinesisvideo archived media (#3280) 2020-09-04 12:14:48 +01: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 Organizations - implement Policy Type functionality (#3207) 2020-08-02 10:56:19 +01:00
test_packages Run black on moto & test directories. 2019-10-31 10:36:05 -07:00
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 Fix:s3 List Object response:delimiter (#3254) 2020-09-21 16:21:18 +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 random password wrong length (#3213) 2020-08-03 13:42:42 +01:00
test_ses SES: Fix sending email when use verify_email_address (#3242) 2020-08-25 13:51:58 +01:00
test_sns Fix deprecation warnings due to invalid escape sequences. (#3273) 2020-09-10 09:20:26 +01:00
test_sqs Fix:sqs get-queue-attributes response template (#3255) 2020-09-01 18:05:25 +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 Add validation on execution input 2020-09-04 10:22:21 +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