def METHOD_NAME(
    self, acm_request_certificate, aws_client, snapshot, monkeypatch
):
    snapshot.add_transformer(snapshot.transform.key_value("OID"))
    snapshot.add_transformer(snapshot.transform.key_value("Serial"))
    monkeypatch.setattr(moto_settings, "ACM_VALIDATION_WAIT", 2)
    # request certificate for subdomain
    domain_name = f"test-domain-{short_uid()}.localhost.localstack.cloud"
    subdomain_pattern = f"*.{domain_name}"
    create_response = acm_request_certificate(
        ValidationMethod="DNS", DomainName=subdomain_pattern
    )
    cert_arn = create_response["CertificateArn"]
    snapshot.add_transformer(snapshot.transform.regex(domain_name, "<domain-name>"))
    cert_id = cert_arn.split("certificate/")[-1]
    snapshot.add_transformer(snapshot.transform.regex(cert_id, "<cert-id>"))
    snapshot.match("request-cert", create_response)
    def _get_cert_with_records():
        response = aws_client.acm.describe_certificate(CertificateArn=cert_arn)
        assert response["Certificate"]["DomainValidationOptions"][0]["ResourceRecord"]
        return response
    # wait for cert with ResourceRecord CNAME entry
    response = retry(_get_cert_with_records, sleep=1, retries=30)
    dns_options = response["Certificate"]["DomainValidationOptions"][0]["ResourceRecord"]
    snapshot.add_transformer(
        snapshot.transform.regex(dns_options["Name"].split(".")[0], "<record-prefix>")
    )
    snapshot.add_transformer(snapshot.transform.regex(dns_options["Value"], "<record-value>"))
    snapshot.match("describe-cert", response)
    if is_aws_cloud():
        # Wait until DNS entry has been added (needs to be done manually!)
        # Note: When running parity tests against AWS, we need to add the CNAME record to our DNS
        #  server (currently with gandi.net), to enable validation of the certificate.
        prompt = (
            f"Please add the following CNAME entry to the LocalStack DNS server, then hit [ENTER] once "
            f"the certificate has been validated in AWS: {dns_options['Name']} = {dns_options['Value']}"
        )
        input(prompt)
    def _get_cert_issued():
        response = aws_client.acm.describe_certificate(CertificateArn=cert_arn)
        assert response["Certificate"]["Status"] == "ISSUED"
        return response
    # get cert again after validation
    response = retry(_get_cert_issued, sleep=1, retries=30)
    snapshot.match("describe-cert-2", response)
    # also snapshot response of cert summaries via list_certificates
    response = aws_client.acm.list_certificates()
    summaries = response.get("CertificateSummaryList") or []
    matching = [cert for cert in summaries if cert["CertificateArn"] == cert_arn]
    snapshot.match("list-cert", matching)