diff options
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", |