Skip to content

Commit

Permalink
Merge pull request #26146 from openshift-cherrypick-robot/cherry-pick…
Browse files Browse the repository at this point in the history
…-26132-to-release-4.6

[release-4.6] Bug 1958969: test/extended/router/idle: Only run on OVNKubernetes or OpenShiftSDN
  • Loading branch information
openshift-merge-robot committed May 21, 2021
2 parents c2cad46 + 580512b commit e5ba6c7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/extended/router/idle.go
Expand Up @@ -39,6 +39,13 @@ var _ = g.Describe("[sig-network-edge][Conformance][Area:Networking][Feature:Rou

g.Describe("The HAProxy router", func() {
g.It("should be able to connect to a service that is idled because a GET on the route will unidle it", func() {
network, err := oc.AdminConfigClient().ConfigV1().Networks().Get(context.Background(), "cluster", metav1.GetOptions{})
o.Expect(err).NotTo(o.HaveOccurred(), "failed to get cluster network configuration")
if !(network.Status.NetworkType == "OVNKubernetes" || network.Status.NetworkType == "OpenShiftSDN") {
g.Skip("idle feature only supported on OVNKubernetes or OpenShiftSDN")
return
}

infra, err := oc.AdminConfigClient().ConfigV1().Infrastructures().Get(context.Background(), "cluster", metav1.GetOptions{})
o.Expect(err).NotTo(o.HaveOccurred(), "failed to get cluster-wide infrastructure")
switch infra.Status.PlatformStatus.Type {
Expand Down

0 comments on commit e5ba6c7

Please sign in to comment.