Skip to content

Commit 49f9a3c

Browse files
committed
chore: remove local runner
1 parent 201eecf commit 49f9a3c

File tree

6 files changed

+9
-27
lines changed

6 files changed

+9
-27
lines changed

src/aws_durable_execution_sdk_python_testing/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ def get_durable_execution_history_command(self, args: argparse.Namespace) -> int
457457
def _create_boto3_client(
458458
self, endpoint_url: str | None = None, region_name: str | None = None
459459
) -> Any:
460-
"""Create boto3 client for lambdainternal-local service.
460+
"""Create boto3 client for lambdainternal service.
461461
462462
Args:
463463
endpoint_url: Optional endpoint URL override
@@ -481,7 +481,7 @@ def _create_boto3_client(
481481

482482
# Create client with local endpoint - no AWS access keys required
483483
return boto3.client(
484-
"lambdainternal-local",
484+
"lambdainternal",
485485
endpoint_url=final_endpoint,
486486
region_name=final_region,
487487
)

src/aws_durable_execution_sdk_python_testing/invoker.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ def create_invocation_input(
8585
operations=execution.operations,
8686
next_marker="",
8787
),
88-
is_local_runner=False,
8988
service_client=self.service_client,
9089
)
9190

@@ -135,7 +134,6 @@ def create_invocation_input(
135134
operations=execution.operations,
136135
next_marker="",
137136
),
138-
is_local_runner=False,
139137
)
140138

141139
def invoke(

src/aws_durable_execution_sdk_python_testing/runner.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -850,13 +850,13 @@ def stop(self) -> None:
850850
self._executor = None
851851

852852
def _create_boto3_client(self) -> Any:
853-
"""Create boto3 client for lambdainternal-local service.
853+
"""Create boto3 client for lambdainternal service.
854854
855855
Configures AWS data path and creates a boto3 client with the
856856
local runner endpoint and region from configuration.
857857
858858
Returns:
859-
Configured boto3 client for lambdainternal-local service
859+
Configured boto3 client for lambdainternal service
860860
861861
Raises:
862862
Exception: If client creation fails - exceptions propagate naturally
@@ -869,7 +869,7 @@ def _create_boto3_client(self) -> Any:
869869

870870
# Create client with Lambda endpoint configuration
871871
return boto3.client(
872-
"lambdainternal-local",
872+
"lambdainternal",
873873
endpoint_url=self._config.lambda_endpoint,
874874
region_name=self._config.local_runner_region,
875875
)

tests/cli_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ def test_create_boto3_client_sets_up_aws_data_path() -> None:
10041004

10051005
# Verify boto3 client is created with correct parameters
10061006
mock_boto3_client.assert_called_once_with(
1007-
"lambdainternal-local",
1007+
"lambdainternal",
10081008
endpoint_url=app.config.local_runner_endpoint,
10091009
region_name=app.config.local_runner_region,
10101010
)

tests/invoker_test.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ def test_in_process_invoker_create_invocation_input():
6969
assert invocation_input.durable_execution_arn == execution.durable_execution_arn
7070
assert invocation_input.checkpoint_token is not None
7171
assert isinstance(invocation_input.initial_execution_state, InitialExecutionState)
72-
assert invocation_input.is_local_runner is False
7372
assert invocation_input.service_client is service_client
7473

7574

@@ -86,7 +85,6 @@ def test_in_process_invoker_invoke():
8685
durable_execution_arn="test-arn",
8786
checkpoint_token="test-token", # noqa: S106
8887
initial_execution_state=InitialExecutionState(operations=[], next_marker=""),
89-
is_local_runner=False,
9088
)
9189

9290
result = invoker.invoke("test-function", input_data)
@@ -149,7 +147,6 @@ def test_lambda_invoker_create_invocation_input():
149147
assert invocation_input.durable_execution_arn == execution.durable_execution_arn
150148
assert invocation_input.checkpoint_token is not None
151149
assert isinstance(invocation_input.initial_execution_state, InitialExecutionState)
152-
assert invocation_input.is_local_runner is False
153150

154151

155152
def test_lambda_invoker_invoke_success():
@@ -173,7 +170,6 @@ def test_lambda_invoker_invoke_success():
173170
durable_execution_arn="test-arn",
174171
checkpoint_token="test-token", # noqa: S106
175172
initial_execution_state=InitialExecutionState(operations=[], next_marker=""),
176-
is_local_runner=False,
177173
)
178174

179175
result = invoker.invoke("test-function", input_data)
@@ -211,7 +207,6 @@ def test_lambda_invoker_invoke_failure():
211207
durable_execution_arn="test-arn",
212208
checkpoint_token="test-token", # noqa: S106
213209
initial_execution_state=InitialExecutionState(operations=[], next_marker=""),
214-
is_local_runner=False,
215210
)
216211

217212
with pytest.raises(
@@ -286,7 +281,6 @@ def test_lambda_invoker_invoke_empty_function_name():
286281
durable_execution_arn="test-arn",
287282
checkpoint_token="test-token",
288283
initial_execution_state=InitialExecutionState(operations=[], next_marker=""),
289-
is_local_runner=False,
290284
)
291285

292286
with pytest.raises(
@@ -308,7 +302,6 @@ def test_lambda_invoker_invoke_whitespace_function_name():
308302
durable_execution_arn="test-arn",
309303
checkpoint_token="test-token",
310304
initial_execution_state=InitialExecutionState(operations=[], next_marker=""),
311-
is_local_runner=False,
312305
)
313306

314307
with pytest.raises(
@@ -337,7 +330,6 @@ def test_lambda_invoker_invoke_status_202():
337330
durable_execution_arn="test-arn",
338331
checkpoint_token="test-token",
339332
initial_execution_state=InitialExecutionState(operations=[], next_marker=""),
340-
is_local_runner=False,
341333
)
342334

343335
result = invoker.invoke("test-function", input_data)
@@ -367,7 +359,6 @@ def test_lambda_invoker_invoke_function_error():
367359
durable_execution_arn="test-arn",
368360
checkpoint_token="test-token",
369361
initial_execution_state=InitialExecutionState(operations=[], next_marker=""),
370-
is_local_runner=False,
371362
)
372363

373364
with pytest.raises(
@@ -446,7 +437,6 @@ class MockResourceNotFoundException(Exception):
446437
durable_execution_arn="test-arn",
447438
checkpoint_token="test-token",
448439
initial_execution_state=InitialExecutionState(operations=[], next_marker=""),
449-
is_local_runner=False,
450440
)
451441

452442
with pytest.raises(
@@ -481,7 +471,6 @@ class MockInvalidParameterValueException(Exception):
481471
durable_execution_arn="test-arn",
482472
checkpoint_token="test-token",
483473
initial_execution_state=InitialExecutionState(operations=[], next_marker=""),
484-
is_local_runner=False,
485474
)
486475

487476
with pytest.raises(InvalidParameterValueException, match="Invalid parameter"):
@@ -510,7 +499,6 @@ class MockServiceException(Exception):
510499
durable_execution_arn="test-arn",
511500
checkpoint_token="test-token",
512501
initial_execution_state=InitialExecutionState(operations=[], next_marker=""),
513-
is_local_runner=False,
514502
)
515503

516504
with pytest.raises(DurableFunctionsTestError, match="Lambda invocation failed"):
@@ -539,7 +527,6 @@ class MockEC2Exception(Exception):
539527
durable_execution_arn="test-arn",
540528
checkpoint_token="test-token",
541529
initial_execution_state=InitialExecutionState(operations=[], next_marker=""),
542-
is_local_runner=False,
543530
)
544531

545532
with pytest.raises(DurableFunctionsTestError, match="Lambda infrastructure error"):
@@ -568,7 +555,6 @@ class MockKMSException(Exception):
568555
durable_execution_arn="test-arn",
569556
checkpoint_token="test-token",
570557
initial_execution_state=InitialExecutionState(operations=[], next_marker=""),
571-
is_local_runner=False,
572558
)
573559

574560
with pytest.raises(DurableFunctionsTestError, match="Lambda KMS error"):
@@ -600,7 +586,6 @@ class MockDurableExecutionAlreadyStartedException(Exception):
600586
durable_execution_arn="test-arn",
601587
checkpoint_token="test-token",
602588
initial_execution_state=InitialExecutionState(operations=[], next_marker=""),
603-
is_local_runner=False,
604589
)
605590

606591
with pytest.raises(
@@ -624,7 +609,6 @@ def test_lambda_invoker_invoke_unexpected_exception():
624609
durable_execution_arn="test-arn",
625610
checkpoint_token="test-token",
626611
initial_execution_state=InitialExecutionState(operations=[], next_marker=""),
627-
is_local_runner=False,
628612
)
629613

630614
with pytest.raises(

tests/runner_web_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ def test_should_handle_boto3_client_creation_with_custom_config():
417417

418418
# Assert - Verify boto3 client was called with correct parameters
419419
mock_boto3_client.assert_called_once_with(
420-
"lambdainternal-local",
420+
"lambdainternal",
421421
endpoint_url="http://custom-endpoint:8080",
422422
region_name="eu-west-1",
423423
)
@@ -442,7 +442,7 @@ def test_should_handle_boto3_client_creation_with_defaults():
442442

443443
# Assert - Verify boto3 client was called with default parameters
444444
mock_boto3_client.assert_called_once_with(
445-
"lambdainternal-local",
445+
"lambdainternal",
446446
endpoint_url="http://127.0.0.1:3001", # Default lambda_endpoint value
447447
region_name="us-west-2", # Default value
448448
)
@@ -773,7 +773,7 @@ def test_should_pass_correct_boto3_client_to_lambda_invoker():
773773

774774
# Assert - Verify boto3 client was created with correct parameters
775775
mock_boto3_client.assert_called_once_with(
776-
"lambdainternal-local",
776+
"lambdainternal",
777777
endpoint_url="http://test-endpoint:7777",
778778
region_name="ap-southeast-2",
779779
)

0 commit comments

Comments
 (0)