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

Moved Storage rules integration tests under scripts/ #4309

Merged
merged 1 commit into from
Mar 16, 2022

Conversation

tohhsinpei
Copy link
Member

Description

Follow up to #4297 (and #3233). Previously, we disabled the Storage rules unit tests because they were failing on deploy. This is because our deploy pipeline doesn't support java, which is needed to run the rules JAR. However, unit tests should not be downloading and spinning up a JAR in the first place. We therefore move them to scripts/, where integration tests live.

Sample Commands

npm run test:storage-emulator-integration will run these tests before storage-emulator-integration/tests.ts.

Copy link
Contributor

@bkendall bkendall 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 doing this!

scripts/storage-emulator-integration/run.sh Show resolved Hide resolved
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!

@tohhsinpei tohhsinpei enabled auto-merge (squash) March 16, 2022 18:09
@tohhsinpei tohhsinpei force-pushed the hsinpei/temp-skip-manager-test-2 branch from f185e4f to 48c5d2c Compare March 16, 2022 18:22
@tohhsinpei tohhsinpei merged commit 4a3c102 into master Mar 16, 2022
@tohhsinpei tohhsinpei deleted the hsinpei/temp-skip-manager-test-2 branch March 16, 2022 18:39
tohhsinpei added a commit that referenced this pull request Mar 16, 2022
…rgets (#4281)

* Address PR feedback; add JSDocs for new method

* Make StorageRulesManager an interface; add StorageRulesManagerRegistry

* Modify RulesetProvider to take resource parameter

* Rebase; fix lint error

* Change emulator arg to take SourceFile only

* PR feedback, mostly re: API usage

* Don't delete source file or ruleset on stop(); add CHANGELOG

* Address PR feedback

* Moved Storage rules integration tests under scripts/ (#4309)

* Make StorageRulesManager an interface; add StorageRulesManagerRegistry

* Modify RulesetProvider to take resource parameter

* Change emulator arg to take SourceFile only

* PR feedback, mostly re: API usage

* Don't delete source file or ruleset on stop(); add CHANGELOG

* Address PR feedback

* Fix lint

* Add test for failing to find rules for given resource
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

4 participants