Skip to content

[Enhancement]: Alternative waiting strategy for MockServer #6647

@nils-christian

Description

@nils-christian

Module

MockServer

Proposal

Hi,

Currently the MockServer uses the waiting strategy

waitingFor(Wait.forHttp("/mockserver/status").withMethod("PUT").forStatusCode(200));

While this might work for the default case, it breaks as soon as SSL is enabled (which might not be an unusual scenario for testing with mockserver). In this case, at least forHttps would have to be used. It gets worse when you use certificates to authenticate the access, as you cannot easily use forHttps with a trust store.

I suggest to change the waiting strategy to something like

Wait.forLogMessage( ".*started on port: 1080.*", 1 )

I assume this would work in other scenarios as well.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions