Skip to content

test(s3): add integration test for s3 mrap #3764

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 30, 2022

Conversation

AllanZhengYP
Copy link
Contributor

Issue

Ref: JS-3415

Description

Integration test to create MRAP and make request from Node.js and browsers. This test asserts the correct error to be thrown in browsers and the MRAP API call succeeds in Node.js

Testing

Integration test:

lerna info run Ran npm script 'test:e2e' in '@aws-sdk/client-s3' in 31.2s:
$ ts-mocha test/**/*.ispec.ts && karma start karma.conf.js


  @aws-sdk/client-s3
    PutObject
      ✔ should succeed with Node.js readable stream body (557ms)
    GetObject
      ✔ should succeed with valid body payload (2450ms)
    ListObjects
      ✔ should succeed with valid bucket (150ms)
      ✔ should throw with invalid bucket (273ms)
    MultipartUpload
      ✔ should successfully create, upload list and complete (563ms)
      ✔ should successfully create, abort, and list upload (214ms)
    selectObjectContent
      ✔ should succeed (156ms)
    Multi-region access point
      ✔ should succeed with valid bucket (443ms)


  8 passing (6s)

Webpack bundling...
asset commons.js 5.21 MiB [emitted] (name: commons) (id hint: commons)
asset runtime.js 14.9 KiB [emitted] (name: runtime)
asset S3.ispec.1790576619.js 471 bytes [emitted] (name: S3.ispec.1790576619)
Entrypoint S3.ispec.1790576619 5.23 MiB = runtime.js 14.9 KiB commons.js 5.21 MiB S3.ispec.1790576619.js 471 bytes
webpack 5.73.0 compiled successfully in 13793 ms
WARN: 'Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.'
Firefox 91.0 (Mac OS 10.15) WARN: 'Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.'
Chrome Headless 103.0.5060.53 (Mac OS 10.15.7): Executed 10 of 10 SUCCESS (6.915 secs / 5.144 secs)
Firefox 91.0 (Mac OS 10.15): Executed 10 of 10 SUCCESS (6.868 secs / 5.246 secs)
TOTAL: 20 SUCCESS

Additional context

Add any other context about the PR here.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@AllanZhengYP AllanZhengYP requested a review from a team as a code owner June 30, 2022 00:58
@AllanZhengYP AllanZhengYP merged commit c59b7f5 into aws:main Jun 30, 2022
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants