[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

@@ -5,6 +5,7 @@
################################################################################
source $HELPER_SCRIPTS/install.sh
source $HELPER_SCRIPTS/invoke-tests.sh
# Determine latest ORAS CLI version
ORAS_CLI_LATEST_VERSION_URL=https://api.github.com/repos/deislabs/oras/releases/latest
@@ -16,9 +17,4 @@ cd /tmp
download_with_retries $ORAS_CLI_DOWNLOAD_URL
tar -zxvf $ORAS_CLI_ARCHIVE -C /usr/local/bin oras
# Run tests to determine that the software installed as expected
echo "Testing to make sure that script performed as expected, and basic scenarios work"
if ! oras version; then
echo "ORAS CLI was not installed"
exit 1
fi
invoke_tests "CLI.Tools" "Oras CLI"