Skip to content

Add transformation for s3 createPresignedPost #2048

Add transformation for s3 createPresignedPost

Add transformation for s3 createPresignedPost #2048

Triggered via pull request April 16, 2024 15:57
Status Failure
Total duration 1m 18s
Artifacts

pull_request.yml

on: pull_request
Matrix: call-build / build
Fit to window
Zoom out
Zoom in

Annotations

5 errors
src/transforms/v2-to-v3/transformer.spec.ts > v2-to-v3 > s3-presigned-post > transforms: callback.js: src/transforms/v2-to-v3/transformer.spec.ts#L53
AssertionError: expected 'import { S3 } from "@aws-sdk/client-s…' to deeply equal 'import AWS from "aws-sdk";\n\nconst s…' - Expected + Received - import AWS from "aws-sdk"; + import { S3 } from "@aws-sdk/client-s3"; - const s3 = new AWS.S3(); + const s3 = new S3(); const params = { Bucket: "bucket", Fields: { key: "key" } }; - // S3 createPresignedPost with callbacks are not supported in AWS SDK for JavaScript (v3). - // Please convert to 'client.createPresignedPost(params)', and re-run aws-sdk-js-codemod. s3.createPresignedPost(params, function (err, data) { console.log('The URL is', data.url); }); ❯ src/transforms/v2-to-v3/transformer.spec.ts:53:31
call-build / build (20.x)
Process completed with exit code 1.
call-build / build (18.x)
The job was canceled because "_20_x" failed.
src/transforms/v2-to-v3/transformer.spec.ts > v2-to-v3 > s3-presigned-post > transforms: callback.js: src/transforms/v2-to-v3/transformer.spec.ts#L53
AssertionError: expected 'import { S3 } from "@aws-sdk/client-s…' to deeply equal 'import AWS from "aws-sdk";\n\nconst s…' - Expected + Received - import AWS from "aws-sdk"; + import { S3 } from "@aws-sdk/client-s3"; - const s3 = new AWS.S3(); + const s3 = new S3(); const params = { Bucket: "bucket", Fields: { key: "key" } }; - // S3 createPresignedPost with callbacks are not supported in AWS SDK for JavaScript (v3). - // Please convert to 'client.createPresignedPost(params)', and re-run aws-sdk-js-codemod. s3.createPresignedPost(params, function (err, data) { console.log('The URL is', data.url); }); ❯ src/transforms/v2-to-v3/transformer.spec.ts:53:31
call-build / build (18.x)
The operation was canceled.