diff --git a/tests/integration/sync/test_sync_adl.py b/tests/integration/sync/test_sync_adl.py index 2d109ddb0d2..41fa7ec35c4 100644 --- a/tests/integration/sync/test_sync_adl.py +++ b/tests/integration/sync/test_sync_adl.py @@ -2,6 +2,8 @@ import os.path from unittest import skipIf +import pytest + from samcli.commands._utils.experimental import set_experimental, ExperimentalFlag from samcli.lib.utils.resources import AWS_LAMBDA_FUNCTION, AWS_LAMBDA_LAYERVERSION from tests.integration.sync.sync_integ_base import SyncIntegBase @@ -16,6 +18,8 @@ class TestSyncAdlCasesWithCodeParameter(TestSyncCodeBase): folder = "code" dependency_layer = True + # Not rerun-safe: it edits test data in place and the class-scoped infra sync is not redone. + @pytest.mark.flaky(reruns=0) def test_sync_code_function_without_dependencies(self): # CFN Api call here to collect all the stack resources self.stack_resources = self._get_stacks(TestSyncCode.stack_name) diff --git a/tests/integration/validate/test_validate_command.py b/tests/integration/validate/test_validate_command.py index dc1d1f415fe..990d13473e5 100644 --- a/tests/integration/validate/test_validate_command.py +++ b/tests/integration/validate/test_validate_command.py @@ -162,6 +162,7 @@ def test_lint_template(self, relative_folder: str, expected_file: TemplateFileTy ("ruby3.2",), ("dotnet6",), ("nodejs20.x"), + ("provided.al2",), ] ) def test_lint_deprecated_runtimes(self, runtime): @@ -215,7 +216,6 @@ def test_lint_supported_runtimes(self): "java8.al2", "nodejs22.x", "nodejs24.x", - "provided.al2", "provided.al2023", "python3.10", "python3.11",