aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJosh Spicer <joshspicer@github.com>2023-06-28 00:31:18 +0300
committerGitHub <noreply@github.com>2023-06-28 00:31:18 +0300
commitccce957d7e4bc1357559b361d4b219872ba57739 (patch)
treedcb4fe2a7ea07dcdea9d20e93ddf775d53c3e1d6 /test
parentde40074875b7add6b1a0d2ed3496ad05699a02c2 (diff)
Azure CLI: Compatibility with Debian `bookworm` (#578)feature_azure-cli_1.1.0
* add flag * try to install via apt version of pipx (will only work on bookworm) * _REMOTE_USER aware * dont change more than you need to,josh * increment azure-cli minor version (v1.1.0) * install globally * make sure env variables are in scope
Diffstat (limited to 'test')
-rw-r--r--test/azure-cli/install_bicep.sh2
-rw-r--r--test/azure-cli/install_extensions.sh2
-rw-r--r--test/azure-cli/install_extensions_bookworm.sh8
-rw-r--r--test/azure-cli/scenarios.json10
4 files changed, 22 insertions, 0 deletions
diff --git a/test/azure-cli/install_bicep.sh b/test/azure-cli/install_bicep.sh
index 955507f..0430c64 100644
--- a/test/azure-cli/install_bicep.sh
+++ b/test/azure-cli/install_bicep.sh
@@ -8,6 +8,8 @@ source dev-container-features-test-lib
# Check to make sure the user is vscode
check "user is vscode" whoami | grep vscode
+check "version" az --version
+
# Bicep-specific tests
check "bicep" bicep --version
check "az bicep" az bicep version
diff --git a/test/azure-cli/install_extensions.sh b/test/azure-cli/install_extensions.sh
index 1e66e26..58d1cff 100644
--- a/test/azure-cli/install_extensions.sh
+++ b/test/azure-cli/install_extensions.sh
@@ -8,6 +8,8 @@ source dev-container-features-test-lib
# Check to make sure the user is vscode
check "user is vscode" whoami | grep vscode
+check "version" az --version
+
# Extension-specific tests
check "aks-preview" az extension show --name aks-preview
check "amg" az extension show --name amg
diff --git a/test/azure-cli/install_extensions_bookworm.sh b/test/azure-cli/install_extensions_bookworm.sh
new file mode 100644
index 0000000..3c281e6
--- /dev/null
+++ b/test/azure-cli/install_extensions_bookworm.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+set -e
+
+# Import test library for `check` command
+source dev-container-features-test-lib
+
+./install_extensions.sh \ No newline at end of file
diff --git a/test/azure-cli/scenarios.json b/test/azure-cli/scenarios.json
index cc1fd75..2313452 100644
--- a/test/azure-cli/scenarios.json
+++ b/test/azure-cli/scenarios.json
@@ -9,6 +9,16 @@
}
}
},
+ "install_extensions_bookworm": {
+ "image": "mcr.microsoft.com/devcontainers/base:bookworm",
+ "user": "vscode",
+ "features": {
+ "azure-cli": {
+ "version": "latest",
+ "extensions": "aks-preview,amg,containerapp"
+ }
+ }
+ },
"install_bicep": {
"image": "mcr.microsoft.com/devcontainers/base:jammy",
"user": "vscode",