-
Notifications
You must be signed in to change notification settings - Fork 69
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: resolve unit test failure caused by differences in protobuf runtimes #1749
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is looking OK, but I have some questions as this is my first time digging into these tests.
gapic/templates/tests/unit/gapic/%name_%version/%sub/test_macros.j2
Outdated
Show resolved
Hide resolved
gapic/templates/tests/unit/gapic/%name_%version/%sub/test_macros.j2
Outdated
Show resolved
Hide resolved
Co-authored-by: Victor Chudnovsky <vchudnov@google.com>
gapic/templates/tests/unit/gapic/%name_%version/%sub/test_macros.j2
Outdated
Show resolved
Hide resolved
gapic/templates/tests/unit/gapic/%name_%version/%sub/test_macros.j2
Outdated
Show resolved
Hide resolved
Co-authored-by: Victor Chudnovsky <vchudnov@google.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do address the comments I left. They're mostly minor, except for the one manually verifying that the simpler test really does fail without your fixes. And a question about the Ads template.
gapic/templates/tests/unit/gapic/%name_%version/%sub/test_macros.j2
Outdated
Show resolved
Hide resolved
tests/integration/goldens/redis/tests/unit/gapic/redis_v1/test_cloud_redis.py
Show resolved
Hide resolved
tests/integration/goldens/redis/tests/unit/gapic/redis_v1/test_cloud_redis.py
Outdated
Show resolved
Hide resolved
tests/integration/goldens/redis/tests/unit/gapic/redis_v1/test_cloud_redis.py
Show resolved
Hide resolved
gapic/ads-templates/tests/unit/gapic/%name_%version/%sub/test_%service.py.j2
Outdated
Show resolved
Hide resolved
gapic/templates/tests/unit/gapic/%name_%version/%sub/test_macros.j2
Outdated
Show resolved
Hide resolved
Co-authored-by: Victor Chudnovsky <vchudnov@google.com>
Co-authored-by: Victor Chudnovsky <vchudnov@google.com>
Co-authored-by: Victor Chudnovsky <vchudnov@google.com>
This PR adds a fragment test which re-creates the issue described in #1748 . The fix was applied in 77da39a
Fixes #1748 🦕
Fixes #1750 🦕
Only
google/api/servicemanagement/v1
has a failing test because this is the only api which has field with typegoogle.protobuf.Type
via thegoogle.api.Service
message.See the return type
google.api.Service
here :https://github.com/googleapis/googleapis/blob/bc3c83b41b1589cca21f713a500f179ef86a7e18/google/api/servicemanagement/v1/servicemanager.proto#L158
See the message
google.api.Service
here which containsgoogle.protobuf.Type
:https://github.com/googleapis/googleapis/blob/bc3c83b41b1589cca21f713a500f179ef86a7e18/google/api/service.proto#L80