Skip to content

Commit f04995d

Browse files
author
Davide Schiera
authored
Disable failing test (#108)
1 parent 88b49a7 commit f04995d

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

test/test_secure_apis.sh

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,23 @@ $SCRIPTDIR/../examples/set_secure_user_falco_rules.py $PYTHON_SDC_TEST_API_TOKEN
3737
$SCRIPTDIR/../examples/get_secure_user_falco_rules.py $PYTHON_SDC_TEST_API_TOKEN > /tmp/falco_rules.yaml
3838
diff /tmp/falco_rules.yaml /tmp/test_apis_user_rules.yaml
3939

40-
# Delete all policies and then get them. There should be none.
41-
$SCRIPTDIR/../examples/delete_all_policies.py $PYTHON_SDC_TEST_API_TOKEN
42-
OUT=`$SCRIPTDIR/../examples/list_policies.py $PYTHON_SDC_TEST_API_TOKEN`
43-
if [[ $OUT != *"[]"* ]]; then
44-
echo "Unexpected output after deleting all policies"
45-
exit 1
46-
fi
47-
48-
# Create the default set of policies and then fetch them. There should
49-
# be 1, corresponding to the system falco rule.
50-
$SCRIPTDIR/../examples/create_default_policies.py $PYTHON_SDC_TEST_API_TOKEN
51-
OUT=`$SCRIPTDIR/../examples/list_policies.py $PYTHON_SDC_TEST_API_TOKEN`
52-
if [[ $OUT != *"\"Write below binary dir\""* ]]; then
53-
echo "Unexpected output after creating default policies"
54-
exit 1
55-
fi
40+
# Temporarily disabled while the Secure API is being reviewed
41+
# # Delete all policies and then get them. There should be none.
42+
# $SCRIPTDIR/../examples/delete_all_policies.py $PYTHON_SDC_TEST_API_TOKEN
43+
# OUT=`$SCRIPTDIR/../examples/list_policies.py $PYTHON_SDC_TEST_API_TOKEN`
44+
# if [[ $OUT != *"[]"* ]]; then
45+
# echo "Unexpected output after deleting all policies"
46+
# exit 1
47+
# fi
48+
49+
# # Create the default set of policies and then fetch them. There should
50+
# # be 1, corresponding to the system falco rule.
51+
# $SCRIPTDIR/../examples/create_default_policies.py $PYTHON_SDC_TEST_API_TOKEN
52+
# OUT=`$SCRIPTDIR/../examples/list_policies.py $PYTHON_SDC_TEST_API_TOKEN`
53+
# if [[ $OUT != *"\"Write below binary dir\""* ]]; then
54+
# echo "Unexpected output after creating default policies"
55+
# exit 1
56+
# fi
5657

5758
# Get that policy, change the name, and create a new duplicate policy.
5859
OUT=`$SCRIPTDIR/../examples/get_policy.py $PYTHON_SDC_TEST_API_TOKEN "Write below binary dir"`

0 commit comments

Comments
 (0)