Skip to content
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

Add integration test for multiple storage targets #4296

Merged
merged 7 commits into from
Mar 17, 2022

Conversation

tohhsinpei
Copy link
Member

Description

This PR adds an integration test for #4281, verifying that #3390 is indeed fixed. The test does the following:

  • Apply the targets main and other to two different Storage buckets
  • Run the Storage emulator with different rules files configured for the targets (storage.main.rules and storage.other.rules respectively)
  • Check that different rules are applied for the same request to different buckets

Sample Commands

npm run test:storage-emulator-integration will run the usual integration test scripts/storage-emulator-integration/tests.ts as well as this new integration test.

@tohhsinpei tohhsinpei force-pushed the hsinpei/storage-emulator-multiple-targets-4 branch from 2e57dd6 to be7c23c Compare March 14, 2022 21:58
@tohhsinpei tohhsinpei force-pushed the hsinpei/storage-emulator-multiple-targets-4 branch from be7c23c to 4c7d74c Compare March 14, 2022 22:04
Copy link
Contributor

@tonyjhuang tonyjhuang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the tests! Some left some small comments

@tohhsinpei tohhsinpei force-pushed the hsinpei/storage-emulator-multiple-targets-4 branch from 2f40f04 to 6c3d628 Compare March 17, 2022 18:37
@tohhsinpei tohhsinpei force-pushed the hsinpei/storage-emulator-multiple-targets-4 branch from 6c3d628 to a479aee Compare March 17, 2022 18:43
Copy link
Contributor

@tonyjhuang tonyjhuang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the change!

@tohhsinpei tohhsinpei force-pushed the hsinpei/storage-emulator-multiple-targets-4 branch from c81d3f2 to a479aee Compare March 17, 2022 19:26
@tohhsinpei tohhsinpei merged commit a95694f into master Mar 17, 2022
@tohhsinpei tohhsinpei deleted the hsinpei/storage-emulator-multiple-targets-4 branch March 17, 2022 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants