From 133b4cf23c6e4d6679940a8806f76877790c7f45 Mon Sep 17 00:00:00 2001 From: Paul Yu Date: Wed, 23 Nov 2022 12:18:22 -0800 Subject: Optionally install Azure Bicep as part of azure-cli feature (#305) * Adding azure-cli bicep installer to correctly install on arm64 containers * Adding a few updates following @joshspicer's review. --- test/azure-cli/install_bicep.sh | 16 ++++++++++++++++ test/azure-cli/scenarios.json | 12 +++++++++++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 test/azure-cli/install_bicep.sh (limited to 'test') diff --git a/test/azure-cli/install_bicep.sh b/test/azure-cli/install_bicep.sh new file mode 100644 index 0000000..955507f --- /dev/null +++ b/test/azure-cli/install_bicep.sh @@ -0,0 +1,16 @@ +#!/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 + +# Bicep-specific tests +check "bicep" bicep --version +check "az bicep" az bicep version + +# Report result +reportResults \ No newline at end of file diff --git a/test/azure-cli/scenarios.json b/test/azure-cli/scenarios.json index aa21f72..cc1fd75 100644 --- a/test/azure-cli/scenarios.json +++ b/test/azure-cli/scenarios.json @@ -1,6 +1,6 @@ { "install_extensions": { - "image": "ubuntu:focal", + "image": "mcr.microsoft.com/devcontainers/base:jammy", "user": "vscode", "features": { "azure-cli": { @@ -8,5 +8,15 @@ "extensions": "aks-preview,amg,containerapp" } } + }, + "install_bicep": { + "image": "mcr.microsoft.com/devcontainers/base:jammy", + "user": "vscode", + "features": { + "azure-cli": { + "version": "latest", + "installBicep": true + } + } } } \ No newline at end of file -- cgit v1.2.3