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

Grpc support for multiple proto files #1153

Closed
SushilMowade opened this issue Aug 8, 2024 · 5 comments
Closed

Grpc support for multiple proto files #1153

SushilMowade opened this issue Aug 8, 2024 · 5 comments
Assignees
Labels

Comments

@SushilMowade
Copy link

I have proto files

  1. ordres_services.proto
  2. orders_messages.proto
  3. orders_shared_messages.proto
  4. orders_enums.proto

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
Copy link
Collaborator

StefH commented 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
Copy link
Collaborator

StefH commented Aug 8, 2024

#1144

@SushilMowade
Copy link
Author

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

@StefH StefH self-assigned this Aug 9, 2024
@SushilMowade
Copy link
Author

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
Copy link
Collaborator

StefH commented 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.

@StefH StefH changed the title Wiremock.net Grpc Support for deep proto files Grpc support for multiple proto files Sep 5, 2024
@StefH StefH added feature and removed question labels Sep 23, 2024
@StefH StefH closed this as completed Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants