mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 21:10:32 +01:00
Grpc support for multiple proto files #622
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SushilMowade on GitHub (Aug 8, 2024).
Originally assigned to: @StefH on GitHub.
I have proto files
orders_services.proto imports orders_messages.proto
orders_messages.proto imports orders_shared_messages and orders_enum.proto
also orders_messages.proto and orders_shared_shared.proto have multiple import of google protobufs e..g timestamp and more others.
also each proto file has package and namespace.
Does wiremock.net support such level of hiararchy. I always get Unimplemented exception.?
If i go with simple 2 files with no inner level import for other proto and goole probuff it works but not with complex hiarachy or more than 2 files.
Is wiremock.net fully compatible with grpc for .net.? Or are there any limitation for Grpc currently.
I am talking for .Net core.
@StefH commented on GitHub (Aug 8, 2024):
I don't think that multiple proto files are supported yet.
Did you try combining all files to 1 proto file?
@StefH commented on GitHub (Aug 8, 2024):
https://github.com/WireMock-Net/WireMock.Net/issues/1144
@SushilMowade commented on GitHub (Aug 9, 2024):
We can not combine protos in one single file.. As we have existing code with many protos. So you are sure multiple proto file not supported by wiremock.net.
Also i observed when Package and namespace both are present in proto even single proto file greet example gives exception Unimplemented
@SushilMowade commented on GitHub (Aug 13, 2024):
Hi Stef, Yes it works after combining all protos in single file. Thanks
But when i pushed this changes to azure CI pipeline. I am getting error as
"Service start failed with error: Unable to configure https endpoint. No server certificate was specified and the default developer cert could not be found"
@StefH commented on GitHub (Aug 13, 2024):
Are you using Azure Web App?
Maybe this link helps:
https://github.com/WireMock-Net/WireMock.Net/wiki/Settings#certificatesettings
Or checkout other chapters on the wiki.