Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ash tool to the functional tests #92

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
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