Skip to content

Commit

Permalink
Add test data for jdk21 jdk/slim
Browse files Browse the repository at this point in the history
  • Loading branch information
mrserb committed Sep 15, 2023
1 parent 9c03458 commit d77d158
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
22 changes: 22 additions & 0 deletions test/test-image-corretto21-jdk.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
schemaVersion: "2.0.0"

metadataTest:
envVars:
- key: LANG
value: C.UTF-8

commandTests:
- name: "java command is registered using alternatives."
command: "java"
args: ["-version"]
expectedError: ["OpenJDK Runtime Environment Corretto-21.*"]

- name: "javac command is registered using alternatives."
command: "javac"
args: ["-version"]
expectedOutput: ["javac 21*"]

- name: "JAVA_HOME points to the correct directory."
command: "$JAVA_HOME/bin/java"
args: ["-version"]
expectedError: ["OpenJDK Runtime Environment Corretto-21.*"]
22 changes: 22 additions & 0 deletions test/test-image-corretto21-slim.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
schemaVersion: "2.0.0"

metadataTest:
envVars:
- key: LANG
value: C.UTF-8

commandTests:
- name: "java command is registered using alternatives."
command: "java"
args: ["-version"]
expectedError: ["OpenJDK Runtime Environment Corretto-21.*"]

- name: "javac command is registered using alternatives."
command: "javac"
args: ["-version"]
expectedOutput: ["javac 21*"]

- name: "JAVA_HOME points to the correct directory."
command: "$JAVA_HOME/bin/java"
args: ["-version"]
expectedError: ["OpenJDK Runtime Environment Corretto-21.*"]

0 comments on commit d77d158

Please sign in to comment.