Skip to content

Commit 1f33462

Browse files
author
Davide Schiera
authored
uncomment python sdc client test (#117)
1 parent 6732489 commit 1f33462

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

test/test_secure_apis.sh

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -115,25 +115,24 @@ if [[ $OUT = *"\"Another Copy Of Write below binary dir\""* ]]; then
115115
fi
116116

117117
# Trigger some events
118-
# should be able to uncomment after SSPROD-2580 is addressed
119-
#FOUND=0
118+
FOUND=0
120119

121-
#for i in $(seq 10); do
122-
# sudo cat /etc/shadow
123-
# sleep 10
120+
for i in $(seq 10); do
121+
sudo cat /etc/shadow
122+
sleep 10
124123

125-
# EVTS=`$SCRIPTDIR/../examples/get_secure_policy_events.py $PYTHON_SDC_TEST_API_TOKEN 60`
124+
EVTS=`$SCRIPTDIR/../examples/get_secure_policy_events.py $PYTHON_SDC_TEST_API_TOKEN 60`
126125

127-
# if [[ "$EVTS" != "" ]]; then
128-
# FOUND=1
129-
# break;
130-
# fi
131-
#done
126+
if [[ "$EVTS" != "" ]]; then
127+
FOUND=1
128+
break;
129+
fi
130+
done
132131

133-
#if [[ $FOUND == 0 ]]; then
134-
# echo "Did not find any policy events after 10 attempts..."
135-
# exit 1
136-
#fi
132+
if [[ $FOUND == 0 ]]; then
133+
echo "Did not find any policy events after 10 attempts..."
134+
exit 1
135+
fi
137136

138137

139138
#

0 commit comments

Comments
 (0)