diff options
author | Samruddhi Khandale <skhandale@microsoft.com> | 2022-07-14 22:16:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-14 22:16:55 +0300 |
commit | 27e63203fa96543d287128b91fa02766fe687069 (patch) | |
tree | adfcf051b7d82ba7f77943c8162c2c130566cbef /test-scenarios | |
parent | 330429ebb3b858e73f458dea9f43b6f89065826b (diff) |
Java: Install additional versions (#62)
* Java: Install additional versions
* nit
* tweak: to unblock git merge
* nit
Diffstat (limited to 'test-scenarios')
-rw-r--r-- | test-scenarios/install_additional_java.sh | 13 | ||||
-rw-r--r-- | test-scenarios/scenarios.json | 9 |
2 files changed, 22 insertions, 0 deletions
diff --git a/test-scenarios/install_additional_java.sh b/test-scenarios/install_additional_java.sh new file mode 100644 index 0000000..a796fee --- /dev/null +++ b/test-scenarios/install_additional_java.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +set -e + +# Optional: Import test library +source dev-container-features-test-lib + +check "java version 17 installed as default" java --version | grep 17 +check "java version 11 installed" ls /usr/local/sdkman/candidates/java | grep 11 +check "java version 8 installed" ls /usr/local/sdkman/candidates/java | grep 8 + +# Report result +reportResults diff --git a/test-scenarios/scenarios.json b/test-scenarios/scenarios.json index 8b2572f..c6291e2 100644 --- a/test-scenarios/scenarios.json +++ b/test-scenarios/scenarios.json @@ -1,4 +1,13 @@ { + "install_additional_java": { + "image": "ubuntu:focal", + "features": { + "java": { + "version": "17", + "additional_versions": "11,8" + } + } + }, "install_jupyterlab": { "image": "mcr.microsoft.com/vscode/devcontainers/base:focal", "remoteUser": "vscode", |