Skip to content

Commit

Permalink
chore(tests): fix e2e tests in Idempotency utility (#5280)
Browse files Browse the repository at this point in the history
Fix e2e tests
  • Loading branch information
leandrodamascena authored Oct 1, 2024
1 parent b538224 commit 3b11cee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/e2e/idempotency_redis/handlers/response_hook.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import os

from aws_lambda_powertools.utilities.idempotency import (
DynamoDBPersistenceLayer,
IdempotencyConfig,
idempotent,
)
from aws_lambda_powertools.utilities.idempotency.persistence.datarecord import (
DataRecord,
)
from aws_lambda_powertools.utilities.idempotency.persistence.redis import RedisCachePersistenceLayer

TABLE_NAME = os.getenv("IdempotencyTable", "")
persistence_layer = DynamoDBPersistenceLayer(table_name=TABLE_NAME)
REDIS_HOST = os.getenv("RedisEndpoint", "")
persistence_layer = RedisCachePersistenceLayer(host=REDIS_HOST, port=6379)


def my_response_hook(response: dict, idempotent_data: DataRecord) -> dict:
Expand Down

0 comments on commit 3b11cee

Please sign in to comment.