Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properties wiremock.server.* aren't kept when configuring Options #2136

Open
alexisgayte opened this issue Oct 10, 2024 · 0 comments
Open

Properties wiremock.server.* aren't kept when configuring Options #2136

alexisgayte opened this issue Oct 10, 2024 · 0 comments

Comments

@alexisgayte
Copy link

alexisgayte commented Oct 10, 2024

Describe the bug

It seems that the change provided in this #1920 led to undesired behaviour by defaulting the server port always to 8080 after setting.

The wiremock.server.port property even if it has been already set will be overidden.
If some options are set :
for example :

@AutoConfigureWireMock
@Configuration
public class WiremockConfig {

    @Bean
    public Options wireMockOptions() {
        return WireMockSpring.options()
                .notifier(new Slf4jNotifier(true));
    }
}
wiremock:
  server:
    files: classpath:/__files
    stubs: classpath:/mappings
    port: 8082

Thanks in Advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants