Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 21 additions & 15 deletions .project_automation/functional_tests/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,28 +34,34 @@ run_test() {
.project_automation/functional_tests/scoutsuite/scoutsuite.sh
}

run_ash_tests() {
echo "Downloading the ASH tool"
git clone https://github.com/aws-samples/automated-security-helper.git /tmp/ash

# Set the repo path in your shell for easier access
export PATH=$PATH:/tmp/ash

echo "Executing the ASH tool"
ash --source-dir .
pwd
ls -lrt

cat ${PROJECT_PATH}/ash_output/aggregated_results.txt
}

run_ash_tests

acct_id=$(aws sts get-caller-identity --output text --query 'Account')

# if account id is xxxx do this
if account id is xxxx do this
if [ "$acct_id" == ${NON_CT_ENV} ]; then
run_test "launch-partner-solution-nonct"
else
run_test "launch-partner-solution"
run_test "launch-partner-solution"
fi
# Run taskcat e2e test
#run_test "launch-partner-solution"

#run_test "launch-partner-solution-nonct"

## Executing ash tool

#find ${PROJECT_PATH} -name lambda.zip -exec rm -rf {} \;

#git clone https://github.com/aws-samples/automated-security-helper.git /tmp/ash
run_test "launch-partner-solution"

# Set the repo path in your shell for easier access
#export PATH=$PATH:/tmp/ash
run_test "launch-partner-solution-nonct"

#ash --source-dir .
#cat aggregated_results.txt