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

Added status header for query upload requests #5425

Merged
merged 7 commits into from
Jan 18, 2023

Conversation

maneesht
Copy link
Contributor

Fixes #5412

@codecov-commenter
Copy link

codecov-commenter commented Jan 13, 2023

Codecov Report

Base: 56.32% // Head: 56.32% // Decreases project coverage by -0.01% ⚠️

Coverage data is based on head (1c2b1cf) compared to base (1756213).
Patch coverage: 75.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5425      +/-   ##
==========================================
- Coverage   56.32%   56.32%   -0.01%     
==========================================
  Files         315      315              
  Lines       21324    21325       +1     
  Branches     4349     4349              
==========================================
  Hits        12011    12011              
- Misses       8272     8273       +1     
  Partials     1041     1041              
Impacted Files Coverage Δ
src/emulator/storage/apis/firebase.ts 4.49% <0.00%> (-0.02%) ⬇️
src/emulator/storage/server.ts 14.06% <ø> (ø)
src/emulator/storage/upload.ts 66.12% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.


expect(uploadStatus).to.equal("final");

queryUploadStatus = await supertest(firebaseHost)
Copy link
Contributor

Choose a reason for hiding this comment

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

please create a new test, go/refactoring/test-one-thing-at-a-time

@@ -390,6 +425,17 @@ describe("Firebase Storage endpoint conformance tests", () => {
})
.expect(200);

const queryUploadStatus = await supertest(firebaseHost)
Copy link
Contributor

Choose a reason for hiding this comment

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

please create a new test, go/refactoring/test-one-thing-at-a-time


expect(uploadStatus).to.equal("final");

queryUploadStatus = await supertest(firebaseHost)
.put(uploadURL.pathname + uploadURL.search)
// No Authorization required in finalize
Copy link
Contributor

Choose a reason for hiding this comment

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

remove

@@ -162,6 +165,17 @@ describe("Firebase Storage endpoint conformance tests", () => {
.expect(200)
.then((res) => new URL(res.header["x-goog-upload-url"]));

let queryUploadStatus = await supertest(firebaseHost)
.put(uploadURL.pathname + uploadURL.search)
// No Authorization required in finalize
Copy link
Contributor

Choose a reason for hiding this comment

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

remove

@@ -162,6 +165,17 @@ describe("Firebase Storage endpoint conformance tests", () => {
.expect(200)
.then((res) => new URL(res.header["x-goog-upload-url"]));

let queryUploadStatus = await supertest(firebaseHost)
Copy link
Contributor

Choose a reason for hiding this comment

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

please create a new test, go/refactoring/test-one-thing-at-a-time

"x-goog-upload-url",
"x-goog-upload-status",
Copy link
Contributor

Choose a reason for hiding this comment

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

why are we removing this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's a duplicate :-)

@maneesht maneesht merged commit c52ae18 into master Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants