[Ubuntu] Migrate tests for CLI tools to Pester (#2289)

* add tests for cli tools to pester

* small fix

* remove extra commenting

* resolve issues

* fix vercel test

* remove extra logging
This commit is contained in:
Dibir Magomedsaygitov
2020-12-21 23:35:22 +03:00
committed by GitHub
parent 7e4e97b9d9
commit 90ecf07404
12 changed files with 100 additions and 76 deletions

View File

@@ -4,6 +4,8 @@
## Desc: Installed Azure DevOps CLI (az devops)
################################################################################
source $HELPER_SCRIPTS/invoke-tests.sh
# AZURE_EXTENSION_DIR shell variable defines where modules are installed
# https://docs.microsoft.com/en-us/cli/azure/azure-cli-extensions-overview
export AZURE_EXTENSION_DIR=/opt/az/azcliextensions
@@ -12,11 +14,4 @@ echo "AZURE_EXTENSION_DIR=$AZURE_EXTENSION_DIR" | tee -a /etc/environment
# install azure devops Cli extension
az extension add -n azure-devops
# check to determine if extension was installed or not
if [ $? -eq 0 ]
then
echo "azure DevOps Cli extension was installed"
else
echo "azure DevOps Cli extension was not installed"
exit 1
fi
invoke_tests "CLI.Tools" "Azure DevOps CLI"