Skip to content

Commit

Permalink
Update format
Browse files Browse the repository at this point in the history
  • Loading branch information
dkphm committed Aug 29, 2024
1 parent 3f0c733 commit f622d66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion samcli/local/layers/layer_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def download(self, layer: LayerVersion, force=False) -> LayerVersion:
return layer

current_thread_id = str(threading.get_ident())
layer_zip_path = f'{layer.codeuri}_{current_thread_id}.zip'
layer_zip_path = f"{layer.codeuri}_{current_thread_id}.zip"
layer_zip_uri = self._fetch_layer_uri(layer)
unzip_from_uri(
layer_zip_uri,
Expand Down
2 changes: 2 additions & 0 deletions tests/integration/local/start_api/test_start_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3219,6 +3219,7 @@ def test_can_invoke_lambda_layer_successfully(self):
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content.decode("utf-8"), '"Layer1"')


class TestWarmContainersMultipleRemoteLayersInvoke(WarmContainersWithRemoteLayersBase):
template_path = "/testdata/start_api/template-warm-containers-multi-layers.yaml"
container_mode = ContainersInitializationMode.EAGER.value
Expand All @@ -3232,6 +3233,7 @@ def test_can_invoke_lambda_layer_successfully(self):
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content.decode("utf-8"), '"Layer1"')


class TestDisableAuthorizer(StartApiIntegBaseClass):
# integration test for scenario: 'sam local start-api --disable-authorizer'
template_path = "/testdata/start_api/lambda_authorizers/serverless-api-props.yaml"
Expand Down

0 comments on commit f622d66

Please sign in to comment.