Skip to content

Add integration tests for jkube.java.version base image selection #412

Description

@ash-thakur-rh

Context

eclipse-jkube/jkube#3916 adds a jkube.java.version shared property that lets users explicitly select a JDK-specific base image (jkube-java-11/-17/-21/-25). The implementation PR is eclipse-jkube/jkube#3931.

Unit tests are included in the main repo. This issue tracks the integration tests called for in the acceptance criteria.

What to test

Verify that jkube.java.version is honored in generated manifests for at least Spring Boot and Quarkus, for both Maven and Gradle.

Test cases

  1. Maven + Spring Boot — set <jkube.java.version>21</jkube.java.version> in pom.xml properties, run k8s:resource, verify the generated Deployment uses jkube-java-21 as the base image.
  2. Maven + Quarkus — same as above with a Quarkus project.
  3. Gradle + Spring Boot — set jkube.java.version=21 in gradle.properties, run k8sResource, verify the generated Deployment uses jkube-java-21.
  4. Gradle + Quarkus — same as above with a Quarkus project.
  5. Unset — verify default jkube-java (latest) is used when the property is not set.

Blocked on

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions