diff --git a/deployment/src/main/java/io/quarkiverse/wiremock/devservice/WireMockServerConfig.java b/deployment/src/main/java/io/quarkiverse/wiremock/devservice/WireMockServerConfig.java index 7323894..b7eb6c7 100644 --- a/deployment/src/main/java/io/quarkiverse/wiremock/devservice/WireMockServerConfig.java +++ b/deployment/src/main/java/io/quarkiverse/wiremock/devservice/WireMockServerConfig.java @@ -10,11 +10,6 @@ @ConfigMapping(prefix = PREFIX) @ConfigRoot(phase = ConfigPhase.BUILD_TIME) public interface WireMockServerConfig { - /** - * Name of the WireMock Dev Service. - */ - @WithDefault("wiremock-server") - String serviceName(); /** * If Dev Services for WireMock has been explicitly enabled or disabled. diff --git a/deployment/src/main/java/io/quarkiverse/wiremock/devservice/WireMockServerProcessor.java b/deployment/src/main/java/io/quarkiverse/wiremock/devservice/WireMockServerProcessor.java index c9ef5c3..f26ff57 100644 --- a/deployment/src/main/java/io/quarkiverse/wiremock/devservice/WireMockServerProcessor.java +++ b/deployment/src/main/java/io/quarkiverse/wiremock/devservice/WireMockServerProcessor.java @@ -24,6 +24,7 @@ class WireMockServerProcessor { private static final Logger LOGGER = Logger.getLogger(WireMockServerProcessor.class); private static final String FEATURE_NAME = "wiremock"; + private static final String DEV_SERVICE_NAME = "wiremock-server"; private static final String CONFIG_TEMPLATE = "%%dev,test.%s.%s"; static volatile RunningDevService devService; @@ -62,7 +63,7 @@ private static RunningDevService startWireMockDevService(WireMockServerConfig co final WireMockServer server = new WireMockServer(configuration); server.start(); - return new RunningDevService(config.serviceName(), null, server::shutdown, getPropertyKey(PORT), + return new RunningDevService(DEV_SERVICE_NAME, null, server::shutdown, getPropertyKey(PORT), String.valueOf(config.port())); } diff --git a/docs/modules/ROOT/pages/includes/quarkus-wiremock.adoc b/docs/modules/ROOT/pages/includes/quarkus-wiremock.adoc index 1a5d828..ee8701c 100644 --- a/docs/modules/ROOT/pages/includes/quarkus-wiremock.adoc +++ b/docs/modules/ROOT/pages/includes/quarkus-wiremock.adoc @@ -24,22 +24,6 @@ endif::add-copy-button-to-env-var[] --|boolean |`true` -a|icon:lock[title=Fixed at build time] [[quarkus-wiremock_quarkus.wiremock.devservices.service-name]]`link:#quarkus-wiremock_quarkus.wiremock.devservices.service-name[quarkus.wiremock.devservices.service-name]` - -[.description] --- -Name of the WireMock Dev Service. - -ifdef::add-copy-button-to-env-var[] -Environment variable: env_var_with_copy_button:+++QUARKUS_WIREMOCK_DEVSERVICES_SERVICE_NAME+++[] -endif::add-copy-button-to-env-var[] -ifndef::add-copy-button-to-env-var[] -Environment variable: `+++QUARKUS_WIREMOCK_DEVSERVICES_SERVICE_NAME+++` -endif::add-copy-button-to-env-var[] ---|string -|`wiremock-server` - - a|icon:lock[title=Fixed at build time] [[quarkus-wiremock_quarkus.wiremock.devservices.port]]`link:#quarkus-wiremock_quarkus.wiremock.devservices.port[quarkus.wiremock.devservices.port]` [.description] diff --git a/docs/modules/ROOT/pages/index.adoc b/docs/modules/ROOT/pages/index.adoc index da2061f..f8292ba 100644 --- a/docs/modules/ROOT/pages/index.adoc +++ b/docs/modules/ROOT/pages/index.adoc @@ -31,7 +31,6 @@ Example (default) configuration for testing and local development: %dev,test.quarkus.wiremock.devservices.reload=false %dev,test.quarkus.wiremock.devservices.files-mapping=src/test/resources %dev,test.quarkus.wiremock.devservices.port=8089 -%dev,test.quarkus.wiremock.devservices.service-name=wiremock-server %dev,test.quarkus.wiremock.devservices.global-response-templating=false ----