Skip to content

Commit

Permalink
Use Gingko spec labels in E2E tests
Browse files Browse the repository at this point in the history
...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 <[email protected]>
  • Loading branch information
tpantelis authored and sridhargaddam committed Oct 17, 2023
1 parent cb93f64 commit d4193c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/e2e/discovery/headless_services.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
5 changes: 3 additions & 2 deletions test/e2e/discovery/service_discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/discovery/statefulsets.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit d4193c3

Please sign in to comment.