From aa21b57daf1bd0f1a0a3182a8d462225fe4423ec Mon Sep 17 00:00:00 2001 From: Aleksandar Todorov Date: Thu, 18 Mar 2021 12:39:02 +0200 Subject: [PATCH] tests: install awscli from EPEL. Fix #1037 --- test/cases/api.sh | 10 ++-------- test/cases/aws.sh | 9 ++------- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/test/cases/api.sh b/test/cases/api.sh index ee110043b..f38814329 100755 --- a/test/cases/api.sh +++ b/test/cases/api.sh @@ -159,14 +159,8 @@ trap cleanup EXIT # function installClientAWS() { if ! hash aws; then - mkdir "$WORKDIR/aws" - pushd "$WORKDIR/aws" - curl -Ls --retry 5 --output awscliv2.zip \ - https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip - unzip awscliv2.zip > /dev/null - sudo ./aws/install > /dev/null - aws --version - popd + sudo dnf install -y awscli + aws --version fi AWS_CMD="aws --region $AWS_REGION --output json --color on" diff --git a/test/cases/aws.sh b/test/cases/aws.sh index 72d4d742b..d270f0911 100755 --- a/test/cases/aws.sh +++ b/test/cases/aws.sh @@ -24,13 +24,8 @@ fi # We need awscli to talk to AWS. if ! hash aws; then greenprint "Installing awscli" - pushd /tmp - curl -Ls --retry 5 --output awscliv2.zip \ - https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip - unzip awscliv2.zip > /dev/null - sudo ./aws/install > /dev/null - aws --version - popd + sudo dnf install -y awscli + aws --version fi TEST_UUID=$(uuidgen)