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

Read name from metadata as backup for gcs upload #4832

Merged
merged 7 commits into from
Aug 4, 2022

Conversation

Yuangwang
Copy link
Contributor

Description

Uses metadata.name as a backup to query.name in gcs uploads, this makes the storage emulator compliant with gcs api spec, fixes #3953

Scenarios Tested

Tested via the python gcs sdk and also by adding two new integration tests here.

@Yuangwang Yuangwang requested review from tonyjhuang and abhis3 August 4, 2022 19:13
scripts/storage-emulator-integration/tests.ts Outdated Show resolved Hide resolved
scripts/storage-emulator-integration/tests.ts Outdated Show resolved Hide resolved
src/emulator/storage/apis/gcloud.ts Outdated Show resolved Hide resolved
src/emulator/storage/apis/gcloud.ts Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Aug 4, 2022

Codecov Report

Merging #4832 (aa8b54c) into master (bfc1a54) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #4832      +/-   ##
==========================================
- Coverage   57.70%   57.69%   -0.02%     
==========================================
  Files         287      287              
  Lines       18749    18753       +4     
  Branches     3701     3703       +2     
==========================================
  Hits        10819    10819              
- Misses       7043     7047       +4     
  Partials      887      887              
Impacted Files Coverage Δ
src/emulator/storage/apis/gcloud.ts 6.41% <0.00%> (-0.15%) ⬇️
src/emulator/storage/metadata.ts 46.66% <ø> (ø)

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

src/emulator/storage/apis/gcloud.ts Outdated Show resolved Hide resolved
src/emulator/storage/apis/gcloud.ts Outdated Show resolved Hide resolved
src/emulator/storage/apis/gcloud.ts Outdated 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 for the fix!

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.

Storage Emulator does not match Google Cloud Storage library API
3 participants