Skip to content

Commit 3c1153a

Browse files
authored
fix(tests): accept '/' in durable execution ARN regex (#9038)
DurableIntegBase.assert_invoke_output parsed the ARN line of sam local invoke output with [a-f0-9-]+, which truncates at the first '/'. After aws-durable-execution-sdk-python-testing#216 the emulator returns <uuid>/<invocation-id>, so subsequent sam local execution history|stop|get calls in the same test received only the leading UUID and 404'd, failing every test_local_invoke_durable_function_* test plus test_execution_stop_already_completed with AssertionError: 1 != 0. Switching to \S+ captures the full ARN as printed and stays backwards-compatible with the old UUID-only form. Fixes #9037
1 parent f46d86e commit 3c1153a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/integration/durable_integ_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def assert_invoke_output(
152152

153153
self.assertIn("Execution Summary:", stdout_str, f"Expected execution summary in output: {stdout_str}")
154154

155-
arn_match = re.search(r"ARN:\s+([a-f0-9-]+)", stdout_str)
155+
arn_match = re.search(r"ARN:\s+(\S+)", stdout_str)
156156
self.assertIsNotNone(arn_match, f"Could not find ARN in output: {stdout_str}")
157157
execution_arn = arn_match.group(1) if arn_match else ""
158158

0 commit comments

Comments
 (0)