Skip to content

Commit

Permalink
PN-13230: Removed sensitive info and externalized variables in PresaI…
Browse files Browse the repository at this point in the history
…nCarico.sh script. (#556)
  • Loading branch information
michelescara authored Nov 11, 2024
1 parent 353b6d9 commit 32b3f5c
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions scripts/jmeter/PresaInCarico.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ fi

if [ x$sendSMS == x1 ] ; then

SMSSender="+393293707683"
SMSReceiver="+393293707683"
if [ -z "$SMSSender" ] || [ -z "$SMSReceiver" ]; then
echo "Error: SMSSender and SMSReceiver variables must be set to send an SMS."
exit 1
fi

SMSRequestId="TestSMS-"$(date +%s)

Expand All @@ -53,8 +55,10 @@ fi

if [ x$sendEmail == x1 ] ; then

EmailSender="[email protected]"
EmailReceiver="[email protected]"
if [ -z "$EmailSender" ] || [ -z "$EmailReceiver" ]; then
echo "Error: EmailSender and EmailReceiver variables must be set to send an Email."
exit 1
fi

EmailRequestId="TestEmail-"$(date +%s)

Expand All @@ -69,8 +73,10 @@ fi

if [ x$sendPEC == x1 ] ; then

PECSender="[email protected]"
PECReceiver="[email protected]"
if [ -z "$PECSender" ] || [ -z "$PECReceiver" ]; then
echo "Error: PECSender and PECReceiver variables must be set to send a PEC."
exit 1
fi

PECRequestId="TestPEC-"$(date +%s)

Expand Down

0 comments on commit 32b3f5c

Please sign in to comment.