[Ubuntu] Implement first Pester tests (#2270)

* implement first pester tests

* add comment for azcopy test

* remove extra importing and old function

* resolve comments

* fix typo
This commit is contained in:
Dibir Magomedsaygitov
2020-12-17 09:52:09 +03:00
committed by GitHub
parent be672cb22c
commit 2b93b03377
14 changed files with 262 additions and 137 deletions

View File

@@ -4,6 +4,8 @@
## Desc: Installs AzCopy
################################################################################
source $HELPER_SCRIPTS/invoke-tests.sh
# Install AzCopy7
wget -O azcopy.tar.gz https://aka.ms/downloadazcopylinux64
tar -xf azcopy.tar.gz
@@ -17,13 +19,4 @@ mv /tmp/azcopy /usr/local/bin/azcopy10
chmod +x /usr/local/bin/azcopy10
# 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 ! command -v azcopy; then
echo "azcopy7 was not installed"
exit 1
fi
if ! command -v azcopy10; then
echo "azcopy10 was not installed"
exit 1
fi
invoke_tests "Tools" "azcopy"