microcks / microcks-quarkus

Quarkus extension that enables embedding Microcks as a DevService managing mocks for dependencies and contract-testing your API endpoints
https://microcks.io
Apache License 2.0
15 stars 3 forks source link

Adding separate properties for http host and port #14

Closed edeandrea closed 11 months ago

edeandrea commented 11 months ago

As I was incorporating this into a quarkus application that uses Stork I noticed I could not simply re-use the full http URL because it had the scheme applied (http://host:port).

For static service discovery stork requires the host:port combo without the scheme, like this:

quarkus.stork.hero-service.service-discovery.address-list=localhost:8083

So I need to be able to do this:

quarkus.stork.hero-service.service-discovery.address-list=${quarkus.microcks.default.http.host}:${quarkus.microcks.default.http.port}