From f3fe64b72631d0eb35acd8928d76b2d32fd77b98 Mon Sep 17 00:00:00 2001 From: Rostislav Svoboda Date: Wed, 21 Jun 2023 12:54:13 +0200 Subject: [PATCH] Kubernetes resource name no longer depends on container image name --- .../src/main/resources/application.properties | 2 ++ .../io/quarkus/qe/openshift/OpenShiftYamlHealthProbesIT.java | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/020-quarkus-http-non-application-endpoints/src/main/resources/application.properties b/020-quarkus-http-non-application-endpoints/src/main/resources/application.properties index c46ab04f..50bb1493 100644 --- a/020-quarkus-http-non-application-endpoints/src/main/resources/application.properties +++ b/020-quarkus-http-non-application-endpoints/src/main/resources/application.properties @@ -1,4 +1,6 @@ +quarkus.container-image.group=qe quarkus.container-image.name=demo +quarkus.container-image.tag=1.0.0 quarkus.application.name=non-application endpoints quarkus.http.root-path=/api quarkus.http.non-application-root-path=/q diff --git a/020-quarkus-http-non-application-endpoints/src/test/java/io/quarkus/qe/openshift/OpenShiftYamlHealthProbesIT.java b/020-quarkus-http-non-application-endpoints/src/test/java/io/quarkus/qe/openshift/OpenShiftYamlHealthProbesIT.java index 153b9709..c17d4f2c 100644 --- a/020-quarkus-http-non-application-endpoints/src/test/java/io/quarkus/qe/openshift/OpenShiftYamlHealthProbesIT.java +++ b/020-quarkus-http-non-application-endpoints/src/test/java/io/quarkus/qe/openshift/OpenShiftYamlHealthProbesIT.java @@ -37,7 +37,10 @@ public void testOpenShiftYamlHealthProbesWithCustomImageName() throws FileNotFou // finalMap.entrySet().forEach(System.out::println); - assertEquals("demo", finalMap.get("name"), "Deployment name is not expected 'demo'"); + assertEquals("non-application endpoints", finalMap.get("name"), + "Deployment name is different than expected 'non-application endpoints'"); + assertEquals("qe/demo:1.0.0", finalMap.get("image"), + "Deployment image is different than expected 'qe/demo:1.0.0'"); assertTrue(finalMap.containsKey("livenessProbe"), "livenessProbe is not defined"); assertTrue(finalMap.containsKey("readinessProbe"), "readinessProbe is not defined"); }