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

feat(testbench): better emulation for XML requests #5083

Merged

Conversation

coryan
Copy link
Contributor

@coryan coryan commented Sep 18, 2020

Because I (coryan) did not know about host-based routing the XML
emulation has used a different subdirectory /xmlapi/. The production
service uses the Host: header to resolve the bucket for XML requests,
with this change the testbench does the same.

The old /xmlapi/ path is still working, I will remove it once the
tests pass without it.

Part of the work for #5072 only tested manually so far.


This change is Reviewable

Because I (coryan) did not know about host-based routing the XML
emulation has used a different subdirectory `/xmlapi/`. The production
service uses the `Host: ` header to resolve the bucket for XML requests,
with this change the testbench does the same.

The old `/xmlapi/` path is still working, I will remove it once the
tests pass without it.
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 18, 2020
@coryan coryan marked this pull request as ready for review September 18, 2020 18:04
@coryan coryan requested a review from a team as a code owner September 18, 2020 18:04
@codecov
Copy link

codecov bot commented Sep 18, 2020

Codecov Report

Merging #5083 into master will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5083      +/-   ##
==========================================
+ Coverage   95.81%   95.82%   +0.01%     
==========================================
  Files         983      985       +2     
  Lines       90069    90207     +138     
==========================================
+ Hits        86301    86443     +142     
+ Misses       3768     3764       -4     
Impacted Files Coverage Δ
generator/internal/descriptor_utils_test.cc 100.00% <0.00%> (ø)
generator/internal/logging_decorator_generator.h 100.00% <0.00%> (ø)
generator/internal/logging_decorator_generator.cc 100.00% <0.00%> (ø)
generator/internal/descriptor_utils.cc 93.03% <0.00%> (+0.47%) ⬆️
...or/integration_tests/generator_integration_test.cc 98.05% <0.00%> (+1.62%) ⬆️
generator/generator_test.cc 100.00% <0.00%> (+6.66%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c6a4f01...ce78b4f. Read the comment docs.

@coryan coryan merged commit 0e0f22f into googleapis:master Sep 18, 2020
@coryan coryan deleted the feat-testbench-better-xml-endpoints branch September 18, 2020 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants