Skip to content

Commit 4404b3d

Browse files
committed
chore: rename baseinfrav2 to baseinfra
1 parent 127b093 commit 4404b3d

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

tests/e2e/logger/infrastructure.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from pathlib import Path
22

3-
from tests.e2e.utils.infrastructure import BaseInfrastructureV2
3+
from tests.e2e.utils.infrastructure import BaseInfrastructure
44

55

6-
class LoggerStack(BaseInfrastructureV2):
6+
class LoggerStack(BaseInfrastructure):
77
FEATURE_NAME = "logger"
88

99
def __init__(self, handlers_dir: Path, feature_name: str = FEATURE_NAME, layer_arn: str = "") -> None:

tests/e2e/metrics/infrastructure.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from pathlib import Path
22

3-
from tests.e2e.utils.infrastructure import BaseInfrastructureV2
3+
from tests.e2e.utils.infrastructure import BaseInfrastructure
44

55

6-
class MetricsStack(BaseInfrastructureV2):
6+
class MetricsStack(BaseInfrastructure):
77
FEATURE_NAME = "metrics"
88

99
def __init__(self, handlers_dir: Path, feature_name: str = FEATURE_NAME, layer_arn: str = "") -> None:

tests/e2e/tracer/infrastructure.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
from pathlib import Path
22

33
from tests.e2e.utils.data_builder import build_service_name
4-
from tests.e2e.utils.infrastructure import BaseInfrastructureV2
4+
from tests.e2e.utils.infrastructure import BaseInfrastructure
55

66

7-
class TracerStack(BaseInfrastructureV2):
7+
class TracerStack(BaseInfrastructure):
88
# Maintenance: Tracer doesn't support dynamic service injection (tracer.py L310)
99
# we could move after handler response or adopt env vars usage in e2e tests
1010
SERVICE_NAME: str = build_service_name()

tests/e2e/utils/infrastructure.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class PythonVersion(Enum):
3838
V39 = {"runtime": Runtime.PYTHON_3_9, "image": Runtime.PYTHON_3_9.bundling_image.image}
3939

4040

41-
class BaseInfrastructureV2(ABC):
41+
class BaseInfrastructure(ABC):
4242
def __init__(self, feature_name: str, handlers_dir: Path, layer_arn: str = "") -> None:
4343
self.feature_name = feature_name
4444
self.stack_name = f"test-{feature_name}-{uuid4()}"
@@ -214,7 +214,7 @@ def add_cfn_output(self, name: str, value: str, arn: str = ""):
214214

215215

216216
def deploy_once(
217-
stack: Type[BaseInfrastructureV2],
217+
stack: Type[BaseInfrastructure],
218218
request: pytest.FixtureRequest,
219219
tmp_path_factory: pytest.TempPathFactory,
220220
worker_id: str,
@@ -224,7 +224,7 @@ def deploy_once(
224224
225225
Parameters
226226
----------
227-
stack : Type[BaseInfrastructureV2]
227+
stack : Type[BaseInfrastructure]
228228
stack class to instantiate and deploy, for example MetricStack.
229229
Not to be confused with class instance (MetricStack()).
230230
request : pytest.FixtureRequest
@@ -265,7 +265,7 @@ def deploy_once(
265265
stack.delete()
266266

267267

268-
class LambdaLayerStack(BaseInfrastructureV2):
268+
class LambdaLayerStack(BaseInfrastructure):
269269
FEATURE_NAME = "lambda-layer"
270270

271271
def __init__(self, handlers_dir: Path, feature_name: str = FEATURE_NAME, layer_arn: str = "") -> None:

0 commit comments

Comments
 (0)