23 lines
610 B
Python
23 lines
610 B
Python
from aws_lambda_powertools.utilities.typing.lambda_context import LambdaContext
|
|
from layercake.dynamodb import DynamoDBPersistenceLayer
|
|
|
|
import events.set_custom_domain as app
|
|
|
|
|
|
def test_set_custom_domain(
|
|
seeds,
|
|
dynamodb_persistence_layer: DynamoDBPersistenceLayer,
|
|
lambda_context: LambdaContext,
|
|
):
|
|
event = {
|
|
'detail': {
|
|
'new_image': {
|
|
'id': '5OxmMjL-ujoR5IMGegQz',
|
|
'sk': 'CUSTOM_DOMAIN',
|
|
'hostname': 'app.eduseg.com.br',
|
|
},
|
|
},
|
|
}
|
|
|
|
assert app.lambda_handler(event, lambda_context) # type: ignore
|