aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJP Ungaretti <git@jungaretti.com>2023-03-01 10:34:31 +0300
committerJP Ungaretti <git@jungaretti.com>2023-03-01 10:34:31 +0300
commit018003a29157534319297c6d55355e54333637d1 (patch)
tree33f4369beff1f0c2f529e093e2df415e8ca29173
parent7d4845e677edd34f036f99279864e72da78d2bab (diff)
Update additional version test
-rw-r--r--test/dotnet/install_additional_dotnet.sh12
-rw-r--r--test/dotnet/scenarios.json4
2 files changed, 8 insertions, 8 deletions
diff --git a/test/dotnet/install_additional_dotnet.sh b/test/dotnet/install_additional_dotnet.sh
index e69c7dc..6a0eb96 100644
--- a/test/dotnet/install_additional_dotnet.sh
+++ b/test/dotnet/install_additional_dotnet.sh
@@ -5,13 +5,13 @@ set -e
# Optional: Import test library
source dev-container-features-test-lib
-check "dotnet version 6.0.301 installed as default" bash -c "dotnet --version | grep 6.0.301"
-check "dotnet version 5.0 installed" bash -c "ls -l /usr/local/dotnet | grep 5.0"
-check "dotnet version 3.1.420 installed" bash -c "ls -l /usr/local/dotnet | grep 3.1.420"
+./test.sh
-# Verify current symlink exists and works
-check "current link dotnet" /usr/local/dotnet/current/dotnet --info
-check "current link sdk" ls -l /usr/local/dotnet/current/sdk
+check "version 6.0.405 installed" bash -c 'dotnet --list-sdks | grep 6.0.405'
+check "version 3.1.416 installed" bash -c 'dotnet --list-sdks | grep 3.1.416'
+
+# primary version plus 2 additional versions
+check "latest version installed" bash -c 'test "$(dotnet --list-sdks | wc -l)" -eq 3'
# Report result
reportResults
diff --git a/test/dotnet/scenarios.json b/test/dotnet/scenarios.json
index 720e1e3..b52e9af 100644
--- a/test/dotnet/scenarios.json
+++ b/test/dotnet/scenarios.json
@@ -3,8 +3,8 @@
"image": "ubuntu:focal",
"features": {
"dotnet": {
- "version": "6.0.301",
- "additionalVersions": "5.0,3.1.420"
+ "version": "latest",
+ "additionalVersions": "6.0.405, 3.1.416"
}
}
},