From c3ee1bdfec982fbbca3abfd8a3ea1afb2c24c5fc Mon Sep 17 00:00:00 2001 From: Pascal Grimaud Date: Thu, 6 Jan 2022 18:54:57 +0100 Subject: [PATCH] Spring Cloud Consul: fix tests --- .../springcloud/consul/application/ConsulAssert.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/test/java/tech/jhipster/lite/generator/server/springboot/springcloud/consul/application/ConsulAssert.java b/src/test/java/tech/jhipster/lite/generator/server/springboot/springcloud/consul/application/ConsulAssert.java index 14e39561763..a662c3e9e16 100644 --- a/src/test/java/tech/jhipster/lite/generator/server/springboot/springcloud/consul/application/ConsulAssert.java +++ b/src/test/java/tech/jhipster/lite/generator/server/springboot/springcloud/consul/application/ConsulAssert.java @@ -73,8 +73,10 @@ public static void assertProperties(Project project) { "spring.cloud.consul.discovery.health-check-path=/management/health", "spring.cloud.consul.discovery.tags[0]=version=@project.version@", "spring.cloud.consul.discovery.tags[1]=context-path=${server.servlet.context-path:}", - "spring.cloud.consul.host=localhost", - "spring.cloud.consul.port=8500" + "spring.cloud.consul.discovery.tags[2]=profile=${spring.profiles.active:}", + "spring.cloud.consul.discovery.tags[3]=git-version=${git.commit.id.describe:}", + "spring.cloud.consul.discovery.tags[4]=git-commit=${git.commit.id.abbrev:}", + "spring.cloud.consul.discovery.tags[5]=git-branch=${git.branch:}" ) );