Skip to content

Commit ada8156

Browse files
chore(ci): enable Redis e2e tests (aws-powertools#3718)
Enabling Redis e2e tests
1 parent 8e8fb27 commit ada8156

File tree

3 files changed

+27
-43
lines changed

3 files changed

+27
-43
lines changed

poetry.lock

Lines changed: 19 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ typing-extensions = "^4.6.2"
4848
datadog-lambda = { version = ">=4.77,<6.0", optional = true }
4949
aws-encryption-sdk = { version = "^3.1.1", optional = true }
5050
jsonpath-ng = { version = "^1.6.0", optional = true }
51+
aws-cdk-lib = "^2.126.0"
5152

5253
[tool.poetry.dev-dependencies]
5354
coverage = {extras = ["toml"], version = "^7.4"}

tests/e2e/idempotency_redis/conftest.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import pytest
22

3+
from tests.e2e.idempotency_redis.infrastructure import IdempotencyRedisServerlessStack
4+
35

46
@pytest.fixture(autouse=True, scope="package")
57
def infrastructure():
@@ -11,5 +13,8 @@ def infrastructure():
1113
CloudFormation Outputs from deployed infrastructure
1214
"""
1315

14-
# MAINTENANCE: Add the Stack constructor when Python 3.7 is dropped
15-
return None
16+
stack = IdempotencyRedisServerlessStack()
17+
try:
18+
yield stack.deploy()
19+
finally:
20+
stack.delete()

0 commit comments

Comments
 (0)