Skip to content

Commit 27aa8b1

Browse files
anthonytingParidelPooya
authored andcommitted
chore: update sdk to latest version (#87)
*Issue #, if available:* *Description of changes:* Updating Lambda Client based on latest changes. Using the real APIs instead of the one built manually. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
1 parent 092ab73 commit 27aa8b1

File tree

666 files changed

+21703
-44751
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

666 files changed

+21703
-44751
lines changed

package-lock.json

Lines changed: 84 additions & 72 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/aws-durable-execution-sdk-js-testing/src/test-runner/cloud/__tests__/cloud-durable-test-runner.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {
22
LambdaClient,
3-
Invoke20150331Command,
3+
InvokeCommand,
44
GetDurableExecutionCommand,
55
GetDurableExecutionHistoryCommand,
66
GetDurableExecutionHistoryResponse,
@@ -184,7 +184,7 @@ describe("CloudDurableTestRunner", () => {
184184
};
185185

186186
(mockLambdaClient.send as jest.Mock)
187-
.mockResolvedValueOnce(mockInvokeResult) // Invoke20150331Command
187+
.mockResolvedValueOnce(mockInvokeResult) // InvokeCommand
188188
.mockResolvedValueOnce(mockExecutionResult) // GetDurableExecutionCommand
189189
.mockResolvedValueOnce(mockHistoryResult); // GetDurableExecutionHistoryCommand
190190

@@ -193,7 +193,7 @@ describe("CloudDurableTestRunner", () => {
193193
expect(mockLambdaClient.send).toHaveBeenCalledTimes(3);
194194
expect(mockLambdaClient.send).toHaveBeenNthCalledWith(
195195
1,
196-
expect.any(Invoke20150331Command)
196+
expect.any(InvokeCommand)
197197
);
198198
expect(mockLambdaClient.send).toHaveBeenNthCalledWith(
199199
2,
@@ -245,8 +245,8 @@ describe("CloudDurableTestRunner", () => {
245245

246246
await runner.run({ payload: testPayload });
247247

248-
// Verify that Invoke20150331Command was called with correct parameters
249-
expect(Invoke20150331Command).toHaveBeenCalledWith({
248+
// Verify that InvokeCommand was called with correct parameters
249+
expect(InvokeCommand).toHaveBeenCalledWith({
250250
FunctionName: mockFunctionArn,
251251
Payload: JSON.stringify(testPayload),
252252
});
@@ -274,8 +274,8 @@ describe("CloudDurableTestRunner", () => {
274274

275275
await runner.run();
276276

277-
// Verify that Invoke20150331Command was called with correct parameters
278-
expect(Invoke20150331Command).toHaveBeenCalledWith({
277+
// Verify that InvokeCommand was called with correct parameters
278+
expect(InvokeCommand).toHaveBeenCalledWith({
279279
FunctionName: mockFunctionArn,
280280
Payload: undefined,
281281
});

packages/aws-durable-execution-sdk-js-testing/src/test-runner/cloud/cloud-durable-test-runner.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {
2-
Invoke20150331Command,
2+
InvokeCommand,
33
LambdaClientConfig,
44
LambdaClient,
55
GetDurableExecutionCommand,
@@ -47,7 +47,7 @@ export class CloudDurableTestRunner<ResultType>
4747

4848
async run(params?: InvokeRequest): Promise<TestResult<ResultType>> {
4949
const invokeResult = await this.client.send(
50-
new Invoke20150331Command({
50+
new InvokeCommand({
5151
FunctionName: this.functionArn,
5252
Payload: params?.payload ? JSON.stringify(params.payload) : undefined,
5353
})

0 commit comments

Comments
 (0)