mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
Add protodefinition and refer it from mapping #668
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 @GomesNayagam on GitHub (Jan 30, 2025).
Originally assigned to: @StefH on GitHub.
Feature Request
I am planning to use grpc mock using docker container via WireMockContainerBuilder() like standalone WIreMock.Start() server. While doing that i noticed i am missing .AddProtoDefinition(id, protoDefinitionText) signatue for Container way.
Describe the solution you'd like
Prefer to as close as possible like
Describe alternatives you've considered
Is your feature request supported by WireMock (java version)? Please provide details.
Verified with WireMock.Net author and it is possible to include this feature.
Additional context
More discussion here
https://github.com/WireMock-Net/WireMock.Net/issues/1239
@StefH commented on GitHub (Feb 7, 2025):
https://github.com/WireMock-Net/WireMock.Net/pull/1250
@StefH commented on GitHub (Feb 8, 2025):
@GomesNayagam
A new preview version from WireMock.Net + Docker container is created: 1.7.2-preview-01
This example should work now:
@GomesNayagam commented on GitHub (Feb 11, 2025):
@StefH it throws method not allowed error:
Code used using these files
a) https://github.com/WireMock-Net/WireMock.Net/blob/master/test/WireMock.Net.Tests/__admin/mappings/protobuf-mapping-3.json
b)https://github.com/WireMock-Net/WireMock.Net/blob/master/test/WireMock.Net.Tests/Grpc/greet.proto
@StefH commented on GitHub (Feb 11, 2025):
Are you sure you have the correct docker container version?
Best is to delete all local docker containers for WireMock.Net Linux / Alpine Linux and then try again.
BTW I used protobug-mapping-4 as test.
See
https://github.com/WireMock-Net/WireMock.Net/pull/1250/files
@GomesNayagam commented on GitHub (Feb 11, 2025):
thats the good point let me delete the image and retry and let u know
@GomesNayagam commented on GitHub (Feb 11, 2025):
apologies for my silly mistake, it works. great work once again. @StefH pls tag me when it is publicly available.
hope u tag new version for those docker image as well besides client version.
@StefH commented on GitHub (Feb 12, 2025):