Skip to content

QuarkusUnitTest: fix ignored overrideConfigKey() #1774

QuarkusUnitTest: fix ignored overrideConfigKey()

QuarkusUnitTest: fix ignored overrideConfigKey() #1774

GitHub Actions / Build summary for f9cda55c049d194e20650fb47fb3a81cf2d7c4e9 completed Sep 11, 2024 in 0s

Build summary for f9cda55c049d194e20650fb47fb3a81cf2d7c4e9

Failing Jobs - Building f9cda55 - Back to Workflow run summary

Status Name Step Failures Logs Raw logs Build scan
JVM Tests - JDK 17 Build Failures Logs Raw logs 🚧
JVM Tests - JDK 17 Windows Build Failures Logs Raw logs 🚧
JVM Tests - JDK 21 Build Failures Logs Raw logs 🚧
Native Tests - Data3 Download .m2/repository/io/quarkus ⚠️ Check → Logs Raw logs 🚧

Details

Test Failures

⚙️ JVM Tests - JDK 17 #

- Failing: integration-tests/kubernetes-client 

📦 integration-tests/kubernetes-client

# Tests:    12
+ Success:  11
- Failures: 1
- Errors:   0
! Skipped:  0

io.quarkus.it.kubernetes.client.AbsentConfigMapPropertiesPMT.startUpShouldFail - Source on GitHub - 🠅

java.lang.AssertionError: 

Expecting actual:
  "Sep 11, 2024 10:34:52 AM io.quarkus.runtime.ApplicationLifecycleManager run
ERROR: Failed to start application
java.lang.RuntimeException: Failed to start quarkus
	at io.quarkus.runner.ApplicationImpl.doStart(Unknown Source)
	at io.quarkus.runtime.Application.start(Application.java:101)

⚙️ JVM Tests - JDK 17 Windows #

- Failing: integration-tests/kubernetes-client 

📦 integration-tests/kubernetes-client

# Tests:    12
+ Success:  11
- Failures: 1
- Errors:   0
! Skipped:  0

io.quarkus.it.kubernetes.client.AbsentConfigMapPropertiesPMT.startUpShouldFail - Source on GitHub - 🠅

java.lang.AssertionError: 

Expecting actual:
  "Sep 11, 2024 11:14:41 AM io.quarkus.runtime.ApplicationLifecycleManager run
ERROR: Failed to start application
java.lang.RuntimeException: Failed to start quarkus
	at io.quarkus.runner.ApplicationImpl.doStart(Unknown Source)
	at io.quarkus.runtime.Application.start(Application.java:101)

⚙️ JVM Tests - JDK 21 #

- Failing: integration-tests/kubernetes-client 

📦 integration-tests/kubernetes-client

# Tests:    12
+ Success:  11
- Failures: 1
- Errors:   0
! Skipped:  0

io.quarkus.it.kubernetes.client.AbsentConfigMapPropertiesPMT.startUpShouldFail - Source on GitHub - 🠅

java.lang.AssertionError: 

Expecting actual:
  "Sep 11, 2024 10:34:40 AM io.quarkus.runtime.ApplicationLifecycleManager run
ERROR: Failed to start application
java.lang.RuntimeException: Failed to start quarkus
	at io.quarkus.runner.ApplicationImpl.doStart(Unknown Source)
	at io.quarkus.runtime.Application.start(Application.java:101)

Annotations

Check failure on line 1 in integration-tests/kubernetes-client/src/test/java/io/quarkus/it/kubernetes/client/AbsentConfigMapPropertiesPMT.java

See this annotation in the file changed.

@github-actions github-actions / Build summary for f9cda55c049d194e20650fb47fb3a81cf2d7c4e9

JVM Tests - JDK 17

java.lang.AssertionError: 

Expecting actual:
Raw output
java.lang.AssertionError: 

Expecting actual:
  "Sep 11, 2024 10:34:52 AM io.quarkus.runtime.ApplicationLifecycleManager run
ERROR: Failed to start application
java.lang.RuntimeException: Failed to start quarkus
	at io.quarkus.runner.ApplicationImpl.doStart(Unknown Source)
	at io.quarkus.runtime.Application.start(Application.java:101)
	at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:119)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:71)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:44)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:124)
	at io.quarkus.runner.GeneratedMain.main(Unknown Source)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at io.quarkus.bootstrap.runner.QuarkusEntryPoint.doRun(QuarkusEntryPoint.java:62)
	at io.quarkus.bootstrap.runner.QuarkusEntryPoint.main(QuarkusEntryPoint.java:33)
Caused by: java.lang.RuntimeException: Unable to obtain configuration for ConfigMap objects from Kubernetes API Server at: http://localhost:58985/
	at io.quarkus.kubernetes.config.runtime.KubernetesConfigSourceFactory.getConfigMapConfigSources(KubernetesConfigSourceFactory.java:126)
	at io.quarkus.kubernetes.config.runtime.KubernetesConfigSourceFactory.getConfigSources(KubernetesConfigSourceFactory.java:72)
	at io.quarkus.kubernetes.config.runtime.KubernetesConfigSourceFactory.getConfigSources(KubernetesConfigSourceFactory.java:61)
	at io.quarkus.kubernetes.config.runtime.KubernetesConfigSourceFactoryBuilder$KubernetesConfigFactory.getConfigSources(KubernetesConfigSourceFactoryBuilder.java:32)
	at io.quarkus.kubernetes.config.runtime.KubernetesConfigSourceFactoryBuilder$KubernetesConfigFactory.getConfigSources(KubernetesConfigSourceFactoryBuilder.java:22)
	at io.smallrye.config.ConfigSourceFactory$ConfigurableConfigSourceFactory.getConfigSources(ConfigSourceFactory.java:59)
	at io.smallrye.config.ConfigurableConfigSource.getConfigSources(ConfigurableConfigSource.java:50)
	at io.smallrye.config.SmallRyeConfig$ConfigSources.mapLateSources(SmallRyeConfig.java:935)
	at io.smallrye.config.SmallRyeConfig$ConfigSources.<init>(SmallRyeConfig.java:802)
	at io.smallrye.config.SmallRyeConfig.<init>(SmallRyeConfig.java:86)
	at io.smallrye.config.SmallRyeConfigBuilder.build(SmallRyeConfigBuilder.java:736)
	at io.quarkus.runtime.generated.Config.readConfig(Unknown Source)
	at io.quarkus.runtime.generated.Config.createRunTimeConfig(Unknown Source)
	at io.quarkus.deployment.steps.RuntimeConfigSetup.deploy(Unknown Source)
	... 13 more
Caused by: java.lang.RuntimeException: ConfigMap 'cmap1' not found in namespace 'demo'
	at io.quarkus.kubernetes.config.runtime.KubernetesConfigSourceFactory.logMissingOrFail(KubernetesConfigSourceFactory.java:174)
	at io.quarkus.kubernetes.config.runtime.KubernetesConfigSourceFactory.getConfigMapConfigSources(KubernetesConfigSourceFactory.java:115)
	... 26 more

"
to contain:
  "ConfigMap 'cmap4' not found in namespace 'demo'" 
	at io.quarkus.it.kubernetes.client.AbsentConfigMapPropertiesPMT.startUpShouldFail(AbsentConfigMapPropertiesPMT.java:27)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at io.quarkus.test.QuarkusProdModeTest.doIntercept(QuarkusProdModeTest.java:753)
	at io.quarkus.test.QuarkusProdModeTest.interceptTestMethod(QuarkusProdModeTest.java:746)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)

Check failure on line 1 in integration-tests/kubernetes-client/src/test/java/io/quarkus/it/kubernetes/client/AbsentConfigMapPropertiesPMT.java

See this annotation in the file changed.

@github-actions github-actions / Build summary for f9cda55c049d194e20650fb47fb3a81cf2d7c4e9

JVM Tests - JDK 17 Windows

java.lang.AssertionError: 

Expecting actual:
Raw output
java.lang.AssertionError: 

Expecting actual:
  "Sep 11, 2024 11:14:41 AM io.quarkus.runtime.ApplicationLifecycleManager run
ERROR: Failed to start application
java.lang.RuntimeException: Failed to start quarkus
	at io.quarkus.runner.ApplicationImpl.doStart(Unknown Source)
	at io.quarkus.runtime.Application.start(Application.java:101)
	at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:119)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:71)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:44)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:124)
	at io.quarkus.runner.GeneratedMain.main(Unknown Source)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at io.quarkus.bootstrap.runner.QuarkusEntryPoint.doRun(QuarkusEntryPoint.java:62)
	at io.quarkus.bootstrap.runner.QuarkusEntryPoint.main(QuarkusEntryPoint.java:33)
Caused by: java.lang.RuntimeException: Unable to obtain configuration for ConfigMap objects from Kubernetes API Server at: http://127.0.0.1:58106/
	at io.quarkus.kubernetes.config.runtime.KubernetesConfigSourceFactory.getConfigMapConfigSources(KubernetesConfigSourceFactory.java:126)
	at io.quarkus.kubernetes.config.runtime.KubernetesConfigSourceFactory.getConfigSources(KubernetesConfigSourceFactory.java:72)
	at io.quarkus.kubernetes.config.runtime.KubernetesConfigSourceFactory.getConfigSources(KubernetesConfigSourceFactory.java:61)
	at io.quarkus.kubernetes.config.runtime.KubernetesConfigSourceFactoryBuilder$KubernetesConfigFactory.getConfigSources(KubernetesConfigSourceFactoryBuilder.java:32)
	at io.quarkus.kubernetes.config.runtime.KubernetesConfigSourceFactoryBuilder$KubernetesConfigFactory.getConfigSources(KubernetesConfigSourceFactoryBuilder.java:22)
	at io.smallrye.config.ConfigSourceFactory$ConfigurableConfigSourceFactory.getConfigSources(ConfigSourceFactory.java:59)
	at io.smallrye.config.ConfigurableConfigSource.getConfigSources(ConfigurableConfigSource.java:50)
	at io.smallrye.config.SmallRyeConfig$ConfigSources.mapLateSources(SmallRyeConfig.java:935)
	at io.smallrye.config.SmallRyeConfig$ConfigSources.<init>(SmallRyeConfig.java:802)
	at io.smallrye.config.SmallRyeConfig.<init>(SmallRyeConfig.java:86)
	at io.smallrye.config.SmallRyeConfigBuilder.build(SmallRyeConfigBuilder.java:736)
	at io.quarkus.runtime.generated.Config.readConfig(Unknown Source)
	at io.quarkus.runtime.generated.Config.createRunTimeConfig(Unknown Source)
	at io.quarkus.deployment.steps.RuntimeConfigSetup.deploy(Unknown Source)
	... 13 more
Caused by: java.lang.RuntimeException: ConfigMap 'cmap1' not found in namespace 'demo'
	at io.quarkus.kubernetes.config.runtime.KubernetesConfigSourceFactory.logMissingOrFail(KubernetesConfigSourceFactory.java:174)
	at io.quarkus.kubernetes.config.runtime.KubernetesConfigSourceFactory.getConfigMapConfigSources(KubernetesConfigSourceFactory.java:115)
	... 26 more

"
to contain:
  "ConfigMap 'cmap4' not found in namespace 'demo'" 
	at io.quarkus.it.kubernetes.client.AbsentConfigMapPropertiesPMT.startUpShouldFail(AbsentConfigMapPropertiesPMT.java:27)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at io.quarkus.test.QuarkusProdModeTest.doIntercept(QuarkusProdModeTest.java:753)
	at io.quarkus.test.QuarkusProdModeTest.interceptTestMethod(QuarkusProdModeTest.java:746)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)

Check failure on line 1 in integration-tests/kubernetes-client/src/test/java/io/quarkus/it/kubernetes/client/AbsentConfigMapPropertiesPMT.java

See this annotation in the file changed.

@github-actions github-actions / Build summary for f9cda55c049d194e20650fb47fb3a81cf2d7c4e9

JVM Tests - JDK 21

java.lang.AssertionError: 

Expecting actual:
Raw output
java.lang.AssertionError: 

Expecting actual:
  "Sep 11, 2024 10:34:40 AM io.quarkus.runtime.ApplicationLifecycleManager run
ERROR: Failed to start application
java.lang.RuntimeException: Failed to start quarkus
	at io.quarkus.runner.ApplicationImpl.doStart(Unknown Source)
	at io.quarkus.runtime.Application.start(Application.java:101)
	at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:119)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:71)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:44)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:124)
	at io.quarkus.runner.GeneratedMain.main(Unknown Source)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at io.quarkus.bootstrap.runner.QuarkusEntryPoint.doRun(QuarkusEntryPoint.java:62)
	at io.quarkus.bootstrap.runner.QuarkusEntryPoint.main(QuarkusEntryPoint.java:33)
Caused by: java.lang.RuntimeException: Unable to obtain configuration for ConfigMap objects from Kubernetes API Server at: http://localhost:37483/
	at io.quarkus.kubernetes.config.runtime.KubernetesConfigSourceFactory.getConfigMapConfigSources(KubernetesConfigSourceFactory.java:126)
	at io.quarkus.kubernetes.config.runtime.KubernetesConfigSourceFactory.getConfigSources(KubernetesConfigSourceFactory.java:72)
	at io.quarkus.kubernetes.config.runtime.KubernetesConfigSourceFactory.getConfigSources(KubernetesConfigSourceFactory.java:61)
	at io.quarkus.kubernetes.config.runtime.KubernetesConfigSourceFactoryBuilder$KubernetesConfigFactory.getConfigSources(KubernetesConfigSourceFactoryBuilder.java:32)
	at io.quarkus.kubernetes.config.runtime.KubernetesConfigSourceFactoryBuilder$KubernetesConfigFactory.getConfigSources(KubernetesConfigSourceFactoryBuilder.java:22)
	at io.smallrye.config.ConfigSourceFactory$ConfigurableConfigSourceFactory.getConfigSources(ConfigSourceFactory.java:59)
	at io.smallrye.config.ConfigurableConfigSource.getConfigSources(ConfigurableConfigSource.java:50)
	at io.smallrye.config.SmallRyeConfig$ConfigSources.mapLateSources(SmallRyeConfig.java:935)
	at io.smallrye.config.SmallRyeConfig$ConfigSources.<init>(SmallRyeConfig.java:802)
	at io.smallrye.config.SmallRyeConfig.<init>(SmallRyeConfig.java:86)
	at io.smallrye.config.SmallRyeConfigBuilder.build(SmallRyeConfigBuilder.java:736)
	at io.quarkus.runtime.generated.Config.readConfig(Unknown Source)
	at io.quarkus.runtime.generated.Config.createRunTimeConfig(Unknown Source)
	at io.quarkus.deployment.steps.RuntimeConfigSetup.deploy(Unknown Source)
	... 11 more
Caused by: java.lang.RuntimeException: ConfigMap 'cmap1' not found in namespace 'demo'
	at io.quarkus.kubernetes.config.runtime.KubernetesConfigSourceFactory.logMissingOrFail(KubernetesConfigSourceFactory.java:174)
	at io.quarkus.kubernetes.config.runtime.KubernetesConfigSourceFactory.getConfigMapConfigSources(KubernetesConfigSourceFactory.java:115)
	... 24 more

"
to contain:
  "ConfigMap 'cmap4' not found in namespace 'demo'" 
	at io.quarkus.it.kubernetes.client.AbsentConfigMapPropertiesPMT.startUpShouldFail(AbsentConfigMapPropertiesPMT.java:27)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at io.quarkus.test.QuarkusProdModeTest.doIntercept(QuarkusProdModeTest.java:753)
	at io.quarkus.test.QuarkusProdModeTest.interceptTestMethod(QuarkusProdModeTest.java:746)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)