aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/azure-cli/install_extensions.sh17
-rw-r--r--test/azure-cli/scenarios.json12
2 files changed, 29 insertions, 0 deletions
diff --git a/test/azure-cli/install_extensions.sh b/test/azure-cli/install_extensions.sh
new file mode 100644
index 0000000..1e66e26
--- /dev/null
+++ b/test/azure-cli/install_extensions.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+set -e
+
+# Import test library for `check` command
+source dev-container-features-test-lib
+
+# Check to make sure the user is vscode
+check "user is vscode" whoami | grep vscode
+
+# Extension-specific tests
+check "aks-preview" az extension show --name aks-preview
+check "amg" az extension show --name amg
+check "containerapp" az extension show --name containerapp
+
+# Report result
+reportResults \ No newline at end of file
diff --git a/test/azure-cli/scenarios.json b/test/azure-cli/scenarios.json
new file mode 100644
index 0000000..aa21f72
--- /dev/null
+++ b/test/azure-cli/scenarios.json
@@ -0,0 +1,12 @@
+{
+ "install_extensions": {
+ "image": "ubuntu:focal",
+ "user": "vscode",
+ "features": {
+ "azure-cli": {
+ "version": "latest",
+ "extensions": "aks-preview,amg,containerapp"
+ }
+ }
+ }
+} \ No newline at end of file