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: remove broken test cases in compliance #1151

Conversation

viacheslav-rostovtsev
Copy link
Member

@viacheslav-rostovtsev viacheslav-rostovtsev commented Jul 22, 2022

Removing RPCs that should not be able to transcode the request given in the test suite.
The test gives the following value for the info.fString field: "first/hello/second/greetings".

In their respective single http binding uri templates:

  • RepeatDataSimplePath RPC has a binding {info.f_string} which is a shorthand for {info.f_string=*}, the pattern * does not allow slashes and will not match the value.
  • RepeatDataPathResource and RepeatDataPathTrailingResource RPCs have the same binding {info.f_string=first/*} which does not allow more slashes after the first/ part and will not match the value.

Copy link
Contributor

@vchudnov-g vchudnov-g left a comment

Choose a reason for hiding this comment

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

Oh, good catch! Thanks for fixing this. I'll take an AI to figure out why this wasn't failing in Showcase or in Go; we probably weren't executing this test case, which is a bit troubling.

@viacheslav-rostovtsev viacheslav-rostovtsev merged commit a56df9a into googleapis:main Jul 27, 2022
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

2 participants