def METHOD_NAME(self, resource_group):
    profile_name = self.create_random_name(prefix='profile', length=16)
    self.afd_custom_domain_list_cmd(resource_group, profile_name, expect_failure=True)
    # Create a standard Azure frontdoor profile
    self.afd_profile_create_cmd(resource_group, profile_name)
    list_checks = [JMESPathCheck('length(@)', 0)]
    self.afd_custom_domain_list_cmd(resource_group, profile_name, checks=list_checks)
    # Create a secret
    secret_name = self.create_random_name(prefix='secret', length=24)
    secret_source = f"/subscriptions/{self.get_subscription_id()}/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc-int/secrets/localdev-wild"
    use_latest_version = True
    secret_version = None
    checks = [JMESPathCheck('provisioningState', 'Succeeded')]
    secretData = self.afd_secret_create_cmd(resource_group,
                                            profile_name,
                                            secret_name,
                                            secret_source,
                                            use_latest_version,
                                            secret_version,
                                            checks=checks).get_output_in_json()
    secretId = secretData['id']
    custom_domain_name = self.create_random_name(prefix='customdomain', length=24)
    host_name = f"{custom_domain_name}.localdev.cdn.azure.cn"
    certificate_type = AfdCertificateType.customer_certificate
    minimum_tls_version = AfdMinimumTlsVersion.tls12
    azure_dns_zone = None
    checks = [JMESPathCheck('domainValidationState', 'Pending')]
    self.afd_custom_domain_create_cmd(resource_group,
                                      profile_name,
                                      custom_domain_name,
                                      host_name,
                                      certificate_type,
                                      minimum_tls_version,
                                      azure_dns_zone,
                                      secretId,
                                      checks=checks)
    show_checks = [JMESPathCheck('name', custom_domain_name),
                   JMESPathCheck('domainValidationState', 'Pending'),
                   JMESPathCheck('hostName', host_name),
                   JMESPathCheck('tlsSettings.certificateType', certificate_type),
                   JMESPathCheck('tlsSettings.minimumTlsVersion', minimum_tls_version),
                   JMESPathCheck('tlsSettings.secret.id', secretId)]
    self.afd_custom_domain_show_cmd(resource_group, profile_name, custom_domain_name, checks=show_checks)
    list_checks = [JMESPathCheck('length(@)', 1),
                   JMESPathCheck('@[0].name', custom_domain_name),
                   JMESPathCheck('@[0].domainValidationState', 'Pending')]
    self.afd_custom_domain_list_cmd(resource_group, profile_name, checks=list_checks)
    self.cmd(f"afd custom-domain regenerate-validation-token -g {resource_group} "
             f"--profile-name {profile_name} --custom-domain-name {custom_domain_name}")
    # Delete the custom domain
    self.afd_custom_domain_delete_cmd(resource_group, profile_name, custom_domain_name)
    list_checks = [JMESPathCheck('length(@)', 0)]
    self.afd_custom_domain_list_cmd(resource_group, profile_name, checks=list_checks)