Skip to content

Commit

Permalink
Remove TestKnativeVersusKubeServicesInOneNamespace
Browse files Browse the repository at this point in the history
Testing k8s and knative service in one namespace is done elsewhere in
nearly all Eventing tests through deploying Ksvc forwarder.
  • Loading branch information
mgencur committed Jun 27, 2023
1 parent e72032c commit e8927b6
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 217 deletions.
12 changes: 0 additions & 12 deletions hack/lib/mesh_resources/authorization-policy-test-namespaces.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,3 @@ spec:
- from:
- source:
namespaces: ["serverless-tests", "knative-serving", "knative-eventing", "istio-system"]
---
apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
name: allow-traffic-to-serverless-tests2
namespace: serverless-tests2
spec:
action: ALLOW
rules:
- from:
- source:
namespaces: ["serverless-tests2", "knative-serving", "knative-eventing", "istio-system"]
5 changes: 0 additions & 5 deletions hack/lib/mesh_resources/namespace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ kind: Namespace
metadata:
name: serverless-tests
---
apiVersion: v1
kind: Namespace
metadata:
name: serverless-tests2
---
# Additional namespaces for upgrade tests
apiVersion: v1
kind: Namespace
Expand Down
1 change: 0 additions & 1 deletion hack/lib/mesh_resources/smmr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ spec:
- serving-tests
- serving-tests-alt
- serverless-tests
- serverless-tests2
- eventing-e2e0
- eventing-e2e1
- eventing-e2e2
Expand Down
3 changes: 1 addition & 2 deletions test/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ import (
)

const (
Namespace = "serverless-tests"
Namespace2 = "serverless-tests2"
Namespace = "serverless-tests"
)

// Flags holds the initialized test flags
Expand Down
2 changes: 1 addition & 1 deletion test/lib.bash
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ source "$(dirname "$(dirname "$(realpath "${BASH_SOURCE[0]}")")")/hack/lib/__sou
readonly TEARDOWN="${TEARDOWN:-on_exit}"
export TEST_NAMESPACE="${TEST_NAMESPACE:-serverless-tests}"
declare -a TEST_NAMESPACES
TEST_NAMESPACES=("${TEST_NAMESPACE}" "serverless-tests2" "serverless-tests-mesh")
TEST_NAMESPACES=("${TEST_NAMESPACE}" "serverless-tests-mesh")
export TEST_NAMESPACES

source "$(dirname "$(realpath "${BASH_SOURCE[0]}")")/serving.bash"
Expand Down
192 changes: 0 additions & 192 deletions test/servinge2e/kourier/deploy_kn_k8s_svc_in_same_namespace_test.go

This file was deleted.

5 changes: 1 addition & 4 deletions test/servinge2e/kourier/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ import (
)

const (
helloworldService = "helloworld-go"
helloworldService2 = "helloworld-go2"
kubeHelloworldService = "kube-helloworld-go"
helloworldText = "Hello World!"
helloworldText = "Hello World!"
)

func withDomainMappingReadyOrFail(ctx *test.Context, dm *servingv1alpha1.DomainMapping) *servingv1alpha1.DomainMapping {
Expand Down

0 comments on commit e8927b6

Please sign in to comment.