Skip to content

Allow getting partial mock URLs #141

Closed
@lbroudoux

Description

@lbroudoux

Reason/Context

When getting mock URLs from the MicrocksContainer, it returns the full URL (http://<host>:<mapped-port>/<microcks-path-for-mock).
This is convenient most of the time but there are situations when you running in a specific network and the host is different or you don't have to use the mapped port.

Description

Provide new methods like getRestMockEndpointPath(String service, String version) that just return the URL part after host and port. Additionally, we should also provide constants for the default network aliases that are used within an ensemble (microcks, microcks-postman-runtime and microcks-async-minion)

Implementation ideas

New constructors and with() methods must be added on MicrocksContainersEnsemble

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions