microcks / microcks-testcontainers-java

Java lib for Testcontainers that enables embedding Microcks into your JUnit tests with lightweight, throwaway instance thanks to containers.
https://microcks.io
Apache License 2.0
18 stars 3 forks source link

Allows setting fixed ports for Http and gRPC endpoints #8

Closed lbroudoux closed 11 months ago

lbroudoux commented 11 months ago

Reason/Context

When used in the context of Quarkus Dev Services, it's easier to be able to set fixed ports for mock endpoints. That ways the application.properties configuration properties of REST or gRPC clients can point to locally defined endpoints handled by Microcks.

Description

We should provide setHttpExposedPort() and setGrpcExposedPort() methods. They must be called before the container is started otherwise they'll have no effects.

Implementation ideas

No response