vendredi 11 octobre 2019

Dynamic wiremock port is overriden in yml

I'm trying to figure out the most elegant way to have my yml file use a dynamic wiremock port. Currently I'm unable to set it via System.setpropery or ${wiremock.server.port} in the yml since it is overridden after with a random port.

I unfortunately cannot use cloud contract right now due to a conflict with a library I have no control over otherwise that'd be the perfect solution. Anyone have another way to get this property set in the yml without it being overridden?

Edit: I see examples of people using findAvailableTcpPort() and then using ${wiremock.server.port} in the yml. Not sure why my property is overridden afterwards..

Aucun commentaire:

Enregistrer un commentaire