File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -118,8 +118,10 @@ kubectl replace cm "config-gc" -n ${SYSTEM_NAMESPACE} -f "${TMP_DIR}"/config-gc.
118
118
# Run tests with CORS policy enabled for Contour
119
119
if [[ " ${INGRESS_CLASS} " == * " contour" * ]]; then
120
120
toggle_feature cors-policy " allowOrigin:\n - '*'\nallowMethods:\n - GET\n - OPTIONS\n" config-contour || fail_test
121
- go_test_e2e -timeout=2m ./test/e2e/corspolicy ${E2E_TEST_FLAGS} || failed=1
122
- toggle_feature cors-policy " " config-contour || fail_test
121
+ go_test_e2e -timeout=5m ./test/e2e/corspolicy ${E2E_TEST_FLAGS} || failed=1
122
+ kubectl patch cm config-contour -n " ${SYSTEM_NAMESPACE} " --type=json -p ' [{"op": "remove", "path": "/data/cors-policy"}]' || fail_test
123
+ echo " Waiting 30s for change to get picked up."
124
+ sleep 30
123
125
fi
124
126
125
127
# Run scale tests.
You can’t perform that action at this time.
0 commit comments