Skip to content

Commit 7aa7ed8

Browse files
authored
Fix e2e script to disable cors policy for Contour tests (#15235)
* fix command to disable cors policy for Contour tests * increase test timeout
1 parent e89957c commit 7aa7ed8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/e2e-tests.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,10 @@ kubectl replace cm "config-gc" -n ${SYSTEM_NAMESPACE} -f "${TMP_DIR}"/config-gc.
118118
# Run tests with CORS policy enabled for Contour
119119
if [[ "${INGRESS_CLASS}" == *"contour"* ]]; then
120120
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
123125
fi
124126

125127
# Run scale tests.

0 commit comments

Comments
 (0)