From 4efa3426e36f3315f6d9eca177ef4c0c867f0391 Mon Sep 17 00:00:00 2001 From: Ryan Parman Date: Tue, 26 Mar 2024 14:28:38 -0600 Subject: [PATCH] test: Update testing script. --- bin/test.sh | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/bin/test.sh b/bin/test.sh index f7ad89e..8bf2db2 100755 --- a/bin/test.sh +++ b/bin/test.sh @@ -1,30 +1,10 @@ #!/usr/bin/env bash set -euo pipefail -export AWS_CSM_ENABLED=true -export AWS_CSM_HOST=127.0.0.1 -export AWS_CSM_PORT=10080 - -# Run background process to collect data from AWS tools. -IAMLIVE_PID=$( - iamlive \ - --provider=aws \ - --set-ini \ - --output-file "${PWD}/required-permissions.policy.json" \ - --background \ - --refresh-rate 1 \ - --sort-alphabetical \ - ; -) - # Run the tests. go test -v ./... -count 1 -timeout 30m -parallel 1 readonly TESTRESULT=${PIPESTATUS[0]} -# Disable IAMLIVE and write to disk. -kill "${IAMLIVE_PID}" -unset AWS_CSM_ENABLED AWS_CSM_HOST AWS_CSM_PORT IAMLIVE_PID ACCOUNT_ID - sleep 3 exit "${TESTRESULT}"