diff options
author | Pablo Ulloa <pablo.ulloac@usach.cl> | 2023-09-27 19:26:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-27 19:26:53 +0300 |
commit | 9852ca8888b613daff741b3f26fd7d3b0387b42d (patch) | |
tree | 9ce1ebf2899b55a7637db1f7a3fbd036925b9350 /test | |
parent | 3a22c419403b5c099c71a74c7079cde813e269d8 (diff) |
[java] fix version regex to support graalce jdk 21 (#701)feature_java_1.2.2
* [java] fixed feature test scenario check
* [java] support for non conentional version
* Update src/java/install.sh to not include whitespaces
Co-authored-by: Samruddhi Khandale <samruddhikhandale@github.com>
* bumped patch version
---------
Co-authored-by: Samruddhi Khandale <samruddhikhandale@github.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/java/install_from_non_default_distro.sh | 2 | ||||
-rw-r--r-- | test/java/install_non_conventional_version.sh | 11 | ||||
-rw-r--r-- | test/java/scenarios.json | 9 |
3 files changed, 21 insertions, 1 deletions
diff --git a/test/java/install_from_non_default_distro.sh b/test/java/install_from_non_default_distro.sh index d4f5381..021a72a 100644 --- a/test/java/install_from_non_default_distro.sh +++ b/test/java/install_from_non_default_distro.sh @@ -5,7 +5,7 @@ set -e # Optional: Import test library source dev-container-features-test-lib -check "java version openjdk 11 installed" grep "openjdk 11." <(java --version) +check "java version openjdk 19 installed" grep "openjdk 19." <(java --version) # Report result reportResults diff --git a/test/java/install_non_conventional_version.sh b/test/java/install_non_conventional_version.sh new file mode 100644 index 0000000..3ab648c --- /dev/null +++ b/test/java/install_non_conventional_version.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +set -e + +# Optional: Import test library +source dev-container-features-test-lib + +check "java version openjdk 21 installed" grep "openjdk 21." <(java --version) + +# Report result +reportResults diff --git a/test/java/scenarios.json b/test/java/scenarios.json index 11fb7ba..5d7e684 100644 --- a/test/java/scenarios.json +++ b/test/java/scenarios.json @@ -56,5 +56,14 @@ "mavenVersion": "3.6.3" } } + }, + "install_non_conventional_version": { + "image": "ubuntu:focal", + "features":{ + "java": { + "version": "21", + "jdkDistro": "graalce" + } + } } } |