You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(dsl): have dsl pass port for mock server instead of mock server
In order to be friendly with Docker and Jenkins pipelines by exposing
specified ports the Pact struct will have an optional field for mock
service ports.
The default action is to use the exact same function to find a free
port. But if the field `AllowedMockServicePorts` is passed then it will
limit the ports to those specified
Breaking Changes:
- Changed signature of `daemon.NewService()`. It no longer returns a port as it is
now determined before `daemon.NewService()` is called.
- Changed signature of `client.StartServer()` to accept port. Previously it got the
port from the return of `daemon.NewService()` but the DSL desides the port now
0 commit comments