Skip to content

Commit

Permalink
delete CORS tests from serving (#15249)
Browse files Browse the repository at this point in the history
  • Loading branch information
izabelacg committed May 24, 2024
1 parent 94c040d commit 79da324
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 103 deletions.
9 changes: 0 additions & 9 deletions test/e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,6 @@ immediate_gc
go_test_e2e -timeout=2m ./test/e2e/gc ${E2E_TEST_FLAGS} || failed=1
kubectl replace cm "config-gc" -n ${SYSTEM_NAMESPACE} -f "${TMP_DIR}"/config-gc.yaml

# Run tests with CORS policy enabled for Contour
if [[ "${INGRESS_CLASS}" == *"contour"* ]]; then
toggle_feature cors-policy "allowOrigin:\n - '*'\nallowMethods:\n - GET\n - OPTIONS\n" config-contour || fail_test
go_test_e2e -timeout=5m ./test/e2e/corspolicy ${E2E_TEST_FLAGS} || failed=1
kubectl patch cm config-contour -n "${SYSTEM_NAMESPACE}" --type=json -p '[{"op": "remove", "path": "/data/cors-policy"}]' || fail_test
echo "Waiting 30s for change to get picked up."
sleep 30
fi

# Run scale tests.
# Note that we use a very high -parallel because each ksvc is run as its own
# sub-test. If this is not larger than the maximum scale tested then the test
Expand Down
94 changes: 0 additions & 94 deletions test/e2e/corspolicy/cors_policy_test.go

This file was deleted.

0 comments on commit 79da324

Please sign in to comment.