From d4193c3e8a5f5233bed130801daf45d245ec8215 Mon Sep 17 00:00:00 2001 From: Tom Pantelis Date: Fri, 13 Oct 2023 09:43:47 -0400 Subject: [PATCH] Use Gingko spec labels in E2E tests ...to explicitly categorize them rather than prepending a string to the the spec description. Related to submariner-io/subctl#697 Signed-off-by: Tom Pantelis --- test/e2e/discovery/headless_services.go | 2 +- test/e2e/discovery/service_discovery.go | 5 +++-- test/e2e/discovery/statefulsets.go | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/test/e2e/discovery/headless_services.go b/test/e2e/discovery/headless_services.go index 989cd4d66..f742cc0d8 100644 --- a/test/e2e/discovery/headless_services.go +++ b/test/e2e/discovery/headless_services.go @@ -35,7 +35,7 @@ const ( opAre = "are" ) -var _ = Describe("[discovery] Test Headless Service Discovery Across Clusters", func() { +var _ = Describe("Test Headless Service Discovery Across Clusters", Label(TestLabel), func() { f := lhframework.NewFramework("discovery") When("a pod tries to resolve a headless service in a remote cluster", func() { diff --git a/test/e2e/discovery/service_discovery.go b/test/e2e/discovery/service_discovery.go index 5d4c2ef51..d983c4325 100644 --- a/test/e2e/discovery/service_discovery.go +++ b/test/e2e/discovery/service_discovery.go @@ -34,12 +34,13 @@ import ( ) const ( - not = " not" + not = " not" + TestLabel = "service-discovery" ) var checkedDomains = lhframework.CheckedDomains -var _ = Describe("[discovery] Test Service Discovery Across Clusters", func() { +var _ = Describe("Test Service Discovery Across Clusters", Label(TestLabel), func() { f := lhframework.NewFramework("discovery") When("a pod tries to resolve a service in a remote cluster", func() { diff --git a/test/e2e/discovery/statefulsets.go b/test/e2e/discovery/statefulsets.go index bb18493e2..225245efc 100644 --- a/test/e2e/discovery/statefulsets.go +++ b/test/e2e/discovery/statefulsets.go @@ -30,7 +30,7 @@ import ( discovery "k8s.io/api/discovery/v1" ) -var _ = Describe("[discovery] Test Stateful Sets Discovery Across Clusters", func() { +var _ = Describe("Test Stateful Sets Discovery Across Clusters", Label(TestLabel), func() { f := lhframework.NewFramework("discovery") When("a pod tries to resolve a podname from stateful set in a remote cluster", func() {