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

Add protodefinition and refer it from mapping #1249

Open
GomesNayagam opened this issue Jan 29, 2025 · 0 comments
Open

Add protodefinition and refer it from mapping #1249

GomesNayagam opened this issue Jan 29, 2025 · 0 comments
Assignees
Labels

Comments

@GomesNayagam
Copy link

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

var server = WireMockServer.Start() 
server.AddProtoDefinition(id, protoDefinitionText)

var wireMockContainer = new WireMockContainerBuilder()
    .WithAutoRemove(true)
    .WithCleanUp(true)
   // .WithBindMount(TestHelper.GetAbsolutePath(@"mocks\greet"), "/home/wiremock")
   // .AddProtoDefinition(id, protoDefinitionText)
    .WithCommand("--UseHttp2")
    .AddUrl("grpc://*:9090")
    .AddUrl("http://*:8080")
    .Build();

Describe alternatives you've considered

  var result = await httpClient.PostAsync("/__admin/mappings", new StringContent(mappingsJson, Encoding.UTF8, "application/json"));
  result.EnsureSuccessStatusCode();

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
#1239

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