Skip to content

Commit

Permalink
Merge pull request openshift#2400 from AkashKanni/fix-7521o
Browse files Browse the repository at this point in the history
OCM-10712 | tests: fix id:75210
  • Loading branch information
openshift-merge-bot[bot] authored Aug 30, 2024
2 parents c1a459c + 7d71d73 commit a3f69c8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/e2e/test_rosacli_cluster_post.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"fmt"
"io"
nets "net/http"
"net/url"
"strings"

"github.com/aws/aws-sdk-go-v2/aws"
Expand Down Expand Up @@ -574,13 +573,13 @@ var _ = Describe("Post-Check testing for cluster deletion",
oidcConfigC = clusterConfig.Aws.Sts.OidcConfigID

By("Get oidc endpoint URL from cluster detail json file")
clusterDetail, err := profilehandler.ParserClusterDetail()
output, err := clusterService.DescribeCluster(clusterID)
Expect(err).To(BeNil())
clusterDetail, err := clusterService.ReflectClusterDescription(output)
Expect(err).To(BeNil())
oidcEndpointUrlC = clusterDetail.OIDCEndpointURL
parsedUrl, err := url.Parse(oidcEndpointUrlC)
Expect(err).To(BeNil())
oidcEndpointUrl := parsedUrl.String()
_, err = common.ExtractOIDCProviderFromOidcUrl(oidcEndpointUrl)
_, err = common.ExtractOIDCProviderFromOidcUrl(oidcEndpointUrlC)
Expect(err).To(BeNil())

By("Check the cluster is deleted")
Expand Down

0 comments on commit a3f69c8

Please sign in to comment.