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: fix rest unit test #1074

Merged
merged 2 commits into from Nov 5, 2021
Merged

fix: fix rest unit test #1074

merged 2 commits into from Nov 5, 2021

Conversation

vam-google
Copy link
Contributor

In some cases hostname:port format was expected.

In some cases `hostname:port` format was expected.
@vam-google vam-google requested review from a team as code owners November 5, 2021 22:43
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 5, 2021
@vam-google vam-google merged commit 3b2918e into googleapis:master Nov 5, 2021
@@ -1293,7 +1293,7 @@ def test_{{ method.name|snake_case }}_rest_flattened(transport: str = 'rest'):
assert len(req.mock_calls) == 1
_, args, _ = req.mock_calls[0]
{% with uri = method.http_options[0].uri %}
assert path_template.validate("https://{{ service.host }}{{ uri }}", args[1])
assert path_template.validate("https://%s{{ uri }}" % client.transport._host, args[1])
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we not have a "golden" example for a REST API?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No we do not, but I think we should.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No we do not, but I think it is a good idea to have one.

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.

None yet

3 participants