"""Pytest fixtures for smf-fan-response.""" import pytest @pytest.fixture def valid_message(): """Mock valid event.""" return { 'resource': '/{vendor}/response', 'path': '/tunespeak/response', 'httpMethod': 'POST', 'headers': { 'Accept': '*/*', 'Accept-Encoding': 'gzip, deflate', 'Authorization': 'Bearer eyJh', 'Content-Type': 'application/json', 'Host': 'qa-fan-response-api.theorchard.io', 'User-Agent': 'python-requests/2.31.0', 'X-Amzn-Trace-Id': 'Root=1-67c98f0a-2cce1ccf2127a6536eb0a2e1', 'X-Forwarded-For': '86.171.156.250', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https' }, 'multiValueHeaders': { 'Accept': ['*/*'], 'Accept-Encoding': ['gzip, deflate'], 'Authorization': ['Bearer eyJh'], 'Content-Type': ['application/json'], 'Host': ['qa-fan-response-api.theorchard.io'], 'User-Agent': ['python-requests/2.31.0'], 'X-Amzn-Trace-Id': ['Root=1-67c98f0a-2cce1ccf2127a6536eb0a2e1'], 'X-Forwarded-For': ['86.171.156.250'], 'X-Forwarded-Port': ['443'], 'X-Forwarded-Proto': ['https'] }, 'queryStringParameters': None, 'multiValueQueryStringParameters': None, 'pathParameters': { 'vendor': 'tunespeak' }, 'stageVariables': None, 'requestContext': { 'resourceId': 'ppojtn', 'authorizer': { '_datadog': 'eyJ4', 'principalId': 'user', 'integrationLatency': 1657 }, 'resourcePath': '/{vendor}/response', 'httpMethod': 'POST', 'extendedRequestId': 'HANJsHHrIAMEKXg=', 'requestTime': '06/Mar/2025:12:03:22 +0000', 'path': '/tunespeak/response', 'accountId': '437795906767', 'protocol': 'HTTP/1.1', 'stage': 'qa', 'domainPrefix': 'qa-fan-response-api', 'requestTimeEpoch': 1741262602426, 'requestId': 'c72fa7c4-e485-4d9c-b089-ef6e38309abe', 'identity': { 'cognitoIdentityPoolId': None, 'accountId': None, 'cognitoIdentityId': None, 'caller': None, 'sourceIp': '86.171.156.250', 'principalOrgId': None, 'accessKey': None, 'cognitoAuthenticationType': None, 'cognitoAuthenticationProvider': None, 'userArn': None, 'userAgent': 'python-requests/2.31.0', 'user': None }, 'domainName': 'qa-fan-response-api.theorchard.io', 'deploymentId': 'f32azr', 'apiId': 'opabyw5qfh' }, 'body': '{"email_address":"demo1@gmail.com","form_id":"117455","mailing_list":["a0S61000002Q4BeEAK"],"triggered_sends":["6399646;TestTrggerSendAllSubSendLog","6399646;Bill+Test+SMF+SF+Manager"],"custom_field":["Join the Mailing List"],"sourceChannel":"Email"}', # noqa 'isBase64Encoded': False }