Skip to content

Add Storage Integration tests #3414

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 9 commits into from
Jul 17, 2020
Merged

Conversation

schmidt-sebastian
Copy link
Contributor

This adds a barebones integration test file for Storage. Requires anonymous auth in the test project.

@changeset-bot
Copy link

changeset-bot bot commented Jul 15, 2020

🦋 Changeset is good to go

Latest commit: 088b404

We got this.

This PR includes changesets to release 8 packages
Name Type
@firebase/storage Patch
firebase Patch
@firebase/testing Patch
firebase-browserify-test Patch
firebase-package-typings-test Patch
firebase-messaging-selenium-test Patch
firebase-typescript-test Patch
firebase-webpack-test Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@@ -54,7 +54,11 @@ export class FirebaseStorageError implements Error {
}

get message(): string {
return this.message_;
if (this.serverResponse_) {
return this.message_ + '\n' + this.serverResponse_;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added this so that the server response shows up in the error message for "unknown" errors.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jul 15, 2020

Binary Size Report

Affected SDKs

  • @firebase/analytics

    Type Base (b614546) Head (5a9ae02) Diff
    esm2017 8.68 kB 9.66 kB +975 B (+11.2%)
    main 9.69 kB 10.9 kB +1.20 kB (+12.3%)
    module 9.37 kB 10.6 kB +1.22 kB (+13.0%)
  • @firebase/firestore/exp

    Type Base (b614546) Head (5a9ae02) Diff
    main 400 kB 400 kB +638 B (+0.2%)
  • @firebase/firestore/lite

    Type Base (b614546) Head (5a9ae02) Diff
    main 124 kB 125 kB +638 B (+0.5%)
  • @firebase/storage

    Type Base (b614546) Head (5a9ae02) Diff
    esm2017 56.4 kB 56.4 kB +78 B (+0.1%)
    main 62.7 kB 62.8 kB +78 B (+0.1%)
    module 62.5 kB 62.6 kB +78 B (+0.1%)
  • @firebase/util

    Type Base (b614546) Head (5a9ae02) Diff
    browser 19.6 kB 20.5 kB +921 B (+4.7%)
    esm2017 17.5 kB 18.3 kB +786 B (+4.5%)
    main 19.6 kB 20.5 kB +921 B (+4.7%)
    module 18.7 kB 19.5 kB +832 B (+4.5%)
  • firebase

    Type Base (b614546) Head (5a9ae02) Diff
    firebase-analytics.js 26.6 kB 28.0 kB +1.37 kB (+5.1%)
    firebase-storage.js 40.9 kB 40.9 kB +61 B (+0.1%)
    firebase.js 819 kB 820 kB +1.43 kB (+0.2%)

Test Logs

@@ -16,6 +16,7 @@
*/

import { base64 } from '@firebase/util';
import { uint8ArrayFromBinaryString } from '../../util/byte_string';
Copy link
Contributor

Choose a reason for hiding this comment

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

I see Github Actions has inlined this ts error from the build log ('uint8ArrayFromBinaryString' is defined but never used) so that's cool.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed this line.

@schmidt-sebastian schmidt-sebastian merged commit ee33ebf into master Jul 17, 2020
@google-oss-bot google-oss-bot mentioned this pull request Jul 22, 2020
@firebase firebase locked and limited conversation to collaborators Aug 17, 2020
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt/storagetest branch November 9, 2020 22:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants