Skip to content

Commit

Permalink
add provided.al2023 to runtimeLookup (#471)
Browse files Browse the repository at this point in the history
* add provided.al2023 to runtimeLookup

* format
  • Loading branch information
zARODz11z authored Feb 28, 2024
1 parent 434b361 commit 445238a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/layer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ describe("findHandlers", () => {
"java21-function": { handler: "myfile.handler", runtime: "java21" },
"dotnet6-function": { handler: "myfile.handler", runtime: "dotnet6" },
"provided-function": { handler: "myfile.handler", runtime: "provided" },
"provided.al2023-function": { handler: "myfile.handler", runtime: "provided.al2023" },
});

const result = findHandlers(mockService, []);
Expand Down Expand Up @@ -171,6 +172,12 @@ describe("findHandlers", () => {
type: RuntimeType.CUSTOM,
runtime: "provided",
},
{
name: "provided.al2023-function",
handler: { handler: "myfile.handler", runtime: "provided.al2023" },
type: RuntimeType.CUSTOM,
runtime: "provided.al2023",
},
]);
});
});
Expand Down
1 change: 1 addition & 0 deletions src/layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export const runtimeLookup: { [key: string]: RuntimeType } = {
"java8.al2": RuntimeType.JAVA,
java8: RuntimeType.JAVA,
"provided.al2": RuntimeType.CUSTOM,
"provided.al2023": RuntimeType.CUSTOM,
provided: RuntimeType.CUSTOM,
"ruby3.2": RuntimeType.RUBY,
"go1.x": RuntimeType.GO,
Expand Down

0 comments on commit 445238a

Please sign in to comment.