Path: blob/develop/tests/functional/sesv2/test_create_custom_verification_email_template.py
1567 views
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.1#2# Licensed under the Apache License, Version 2.0 (the "License"). You3# may not use this file except in compliance with the License. A copy of4# the License is located at5#6# http://aws.amazon.com/apache2.0/7#8# or in the "license" file accompanying this file. This file is9# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF10# ANY KIND, either express or implied. See the License for the specific11# language governing permissions and limitations under the License.12from awscli.testutils import BaseAWSCommandParamsTest131415class TestCreateCustomVerificationEmailTemplate(BaseAWSCommandParamsTest):16prefix = 'sesv2 create-custom-verification-email-template'17template_name = 'test-template-name'18from_email_address = '[email protected]'19template_subject = 'template-subject'20template_content = 'template-content'21success_redirection_url = 'https://aws.amazon.com/ses/verifysuccess'22failure_redirection_url = 'https://aws.amazon.com/ses/verifyfailure'2324def test_create_custom_verification_email_template(self):25cmdline = self.prefix26cmdline += ' --template-name ' + self.template_name27cmdline += ' --from-email-address ' + self.from_email_address28cmdline += ' --template-subject ' + self.template_subject29cmdline += ' --template-content ' + self.template_content30cmdline += ' --success-redirection-url ' + self.success_redirection_url31cmdline += ' --failure-redirection-url ' + self.failure_redirection_url3233result = {34'TemplateName': self.template_name,35'FromEmailAddress': self.from_email_address,36'TemplateSubject': self.template_subject,37'TemplateContent': self.template_content,38'SuccessRedirectionURL': self.success_redirection_url,39'FailureRedirectionURL': self.failure_redirection_url40}41self.assert_params_for_cmd(cmdline, result)424344