Skip to content

Docker or Podman required for tests since 3.0.0.Alpha6 #31893

@bulldog98

Description

@bulldog98

Describe the bug

Since 3.0.0.Alpha6 it's not possible to run tests that do not require testcontainers without having docker or podman installed. Instead you get:

SomeTest > initializationError FAILED
	    java.lang.NoClassDefFoundError at BasicLoggingEnabler.java:109
	        Caused by: java.lang.ExceptionInInitializerError at ContainerRuntimeUtil.java:86

Expected behavior

You should only need podman/docker if testcontainer needs to be startet

Actual behavior

You need podman/docker even if you only have unit tests without any interaction with services

How to Reproduce?

  1. Have a computer without docker or podman installed (or simply not in Path)
  2. Init a simple quarkus app with 3.0.0.Alpha6 without and extensions
  3. Try to run the tests

Output of uname -a or ver

5.19.0-35-generic

Output of java -version

openjdk version "17.0.6" 2023-01-17 LTS
OpenJDK Runtime Environment Corretto-17.0.6.10.1 (build 17.0.6+10-LTS)
OpenJDK 64-Bit Server VM Corretto-17.0.6.10.1 (build 17.0.6+10-LTS, mixed mode, sharing)

GraalVM version (if different from Java)

No response

Quarkus version or git rev

3.0.0.Alpha6

Build tool (ie. output of mvnw --version or gradlew --version)


Gradle 8.0.2

Build time: 2023-03-03 16:41:37 UTC
Revision: 7d6581558e226a580d91d399f7dfb9e3095c2b1d

Kotlin: 1.8.10
Groovy: 3.0.13
Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM: 11.0.18 (Ubuntu 11.0.18+10-post-Ubuntu-0ubuntu122.04)
OS: Linux 5.19.0-35-generic amd64

Additional information

Noticed it on the build server first, then tried uninstalling docker + podman locally and that let me reproduce it.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions