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

Fix storage emulator tests #727

Merged
merged 2 commits into from
Mar 17, 2022
Merged

Fix storage emulator tests #727

merged 2 commits into from
Mar 17, 2022

Conversation

tonyjhuang
Copy link
Contributor

@tonyjhuang tonyjhuang commented Mar 15, 2022

Since firebase/firebase-tools#3647 was merged, the list endpoint now exhibits different (more correct) behavior than what the integration tests in this repo was testing against. This PR fixes the assertions in the integration tests to match the new live version of the storage
emulator.

Note: firebase/firebase-tools#3647 introduces a new visual bug in the emulator wherein zero-byte files that denote empty folders are now shown in the file browser.

Screen Shot 2022-03-16 at 9 20 21 PM

The behavior of the storage emulator is correct in this case, but the view logic of the UI needs to filter out these files before rendering. Files #728 to track.

Copy link
Member

@yuchenshi yuchenshi left a comment

Choose a reason for hiding this comment

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

Approved, but other tests still seem flaky on CI

@tonyjhuang tonyjhuang changed the title skip timing out storage test Fix storage emulator tests Mar 17, 2022
Copy link

@abhis3 abhis3 left a comment

Choose a reason for hiding this comment

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

LGTM

@tonyjhuang tonyjhuang merged commit d6a4b46 into master Mar 17, 2022
@tonyjhuang tonyjhuang deleted the tonyjhuang/fix-test branch March 17, 2022 03:04
tjlav5 added a commit that referenced this pull request Mar 17, 2022
* Fix development demo-project reference (#715)

* Fix development demo-project reference

Project ID for demo-configuration is "demo-exmaple"

* Fix package lock

* fix(npm run bundle): clean bundle every time

* chore(deps): bump url-parse from 1.5.3 to 1.5.10 (#718)

Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.3 to 1.5.10.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](unshiftio/url-parse@1.5.3...1.5.10)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix Firestore viewer UI (#721)

* Fix firestore styles

* Add CollectionList.scss

* Fix storage emulator tests (#727)

* skip timing out test

* fix tests

Co-authored-by: Yuchen Shi <yuchenshi@google.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yuki Tanabe <tanabee1986@gmail.com>
Co-authored-by: Tony Huang <tony.huang.jun@gmail.com>
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

3 participants