Skip to content

Commit

Permalink
chore(ci): enable Redis e2e tests (#3718)
Browse files Browse the repository at this point in the history
Enabling Redis e2e tests
  • Loading branch information
leandrodamascena authored Feb 6, 2024
1 parent 8e8fb27 commit ada8156
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 43 deletions.
60 changes: 19 additions & 41 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ typing-extensions = "^4.6.2"
datadog-lambda = { version = ">=4.77,<6.0", optional = true }
aws-encryption-sdk = { version = "^3.1.1", optional = true }
jsonpath-ng = { version = "^1.6.0", optional = true }
aws-cdk-lib = "^2.126.0"

[tool.poetry.dev-dependencies]
coverage = {extras = ["toml"], version = "^7.4"}
Expand Down
9 changes: 7 additions & 2 deletions tests/e2e/idempotency_redis/conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import pytest

from tests.e2e.idempotency_redis.infrastructure import IdempotencyRedisServerlessStack


@pytest.fixture(autouse=True, scope="package")
def infrastructure():
Expand All @@ -11,5 +13,8 @@ def infrastructure():
CloudFormation Outputs from deployed infrastructure
"""

# MAINTENANCE: Add the Stack constructor when Python 3.7 is dropped
return None
stack = IdempotencyRedisServerlessStack()
try:
yield stack.deploy()
finally:
stack.delete()

0 comments on commit ada8156

Please sign in to comment.