Skip to content

Commit

Permalink
Merge pull request knative#149 from navidshaikh/pr/fix-smmr-master
Browse files Browse the repository at this point in the history
Adds kn e2e test namespaces to ServiceMeshMemberRoll
  • Loading branch information
openshift-merge-robot authored Nov 1, 2019
2 parents a9f1e8a + 1033b37 commit 244533a
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions openshift/e2e-tests-openshift.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ source $(dirname $0)/../vendor/knative.dev/test-infra/scripts/e2e-tests.sh

set -x

readonly TEST_NAMESPACE="client-tests"
readonly TEST_NAMESPACE_ALT="client-tests-alt"
readonly SERVING_RELEASE="release-v0.8.1"
readonly KN_DEFAULT_TEST_IMAGE="gcr.io/knative-samples/helloworld-go"
readonly SERVING_NAMESPACE="knative-serving"
Expand Down Expand Up @@ -150,8 +148,12 @@ metadata:
spec:
members:
- ${SERVING_NAMESPACE}
- ${TEST_NAMESPACE}
- ${TEST_NAMESPACE_ALT}
- kne2etests0
- kne2etests1
- kne2etests2
- kne2etests3
- kne2etests4
- kne2etests5
EOF

# Wait for the ingressgateway pod to appear.
Expand Down Expand Up @@ -209,13 +211,6 @@ function enable_knative_interaction_with_registry() {
oc -n $SERVING_NAMESPACE set env deployment/controller SSL_CERT_FILE=$mount_path/$cert_name
}

function create_test_namespace(){
oc new-project $TEST_NAMESPACE
oc new-project $TEST_NAMESPACE_ALT
oc adm policy add-scc-to-user privileged -z default -n $TEST_NAMESPACE
oc adm policy add-scc-to-user privileged -z default -n $TEST_NAMESPACE_ALT
}

function build_knative_client() {
failed=0
./hack/build.sh -f || failed=1
Expand Down Expand Up @@ -271,8 +266,7 @@ function delete_knative_openshift() {

function delete_test_namespace(){
echo ">> Deleting test namespaces"
oc delete project $TEST_NAMESPACE
oc delete project $TEST_NAMESPACE_ALT
oc delete project --ignore-not-found=true kne2etests0 kne2etests1 kne2etests2 kne2etests3 kne2etests4 kne2etests5
}

function delete_service_mesh(){
Expand All @@ -299,8 +293,6 @@ cat /sys/fs/cgroup/cpu/cpu.cfs_quota_us

scale_up_workers || exit 1

create_test_namespace || exit 1

failed=0

(( !failed )) && build_knative_client || failed=1
Expand Down

0 comments on commit 244533a

Please sign in to comment.