Skip to content

Commit

Permalink
chore: fix multi-svc-app e2e test by using a better string sep (#5354)
Browse files Browse the repository at this point in the history
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.
  • Loading branch information
Lou1415926 authored Oct 5, 2023
1 parent 6a3620b commit 7a22b02
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions e2e/multi-svc-app/multi_svc_app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ var _ = Describe("Multiple Service App", func() {

routeURL = route.URL
if svcName == "front-end" {
// route.URL is of the form `https://example-alb.elb.us-west-2.amazonaws.com or example-nlb.elb.us-west-2.amazonaws.com, so we split to retrieve just one valid url`
routeURLs := strings.Split(route.URL, "or")
// route.URL is of the form `https://exampleor-alb.elb.us-west-2.amazonaws.com or exampleor-nlb.elb.us-west-2.amazonaws.com, so we split to retrieve just one valid url`
routeURLs := strings.Split(route.URL, " or")
Expect(len(routeURLs)).To(BeNumerically(">", 1))
routeURL = strings.TrimSpace(routeURLs[0])

Expand Down Expand Up @@ -335,8 +335,8 @@ var _ = Describe("Multiple Service App", func() {
route := svc.Routes[0]
Expect(route.Environment).To(Equal("test"))

// route.URL is of the form `https://example-alb.elb.us-west-2.amazonaws.com or example-nlb.elb.us-west-2.amazonaws.com, so we split to retrieve just one valid url`
routeURLs := strings.Split(route.URL, "or")
// route.URL is of the form `https://exampleor-alb.elb.us-west-2.amazonaws.com or exampleor-nlb.elb.us-west-2.amazonaws.com, so we split to retrieve just one valid url`
routeURLs := strings.Split(route.URL, " or")
Expect(len(routeURLs)).To(BeNumerically(">", 1))

routeURL = strings.TrimSpace(routeURLs[0])
Expand Down Expand Up @@ -413,8 +413,8 @@ var _ = Describe("Multiple Service App", func() {
route := svc.Routes[0]
Expect(route.Environment).To(Equal("test"))

// route.URL is of the form `https://example-alb.elb.us-west-2.amazonaws.com or example-nlb.elb.us-west-2.amazonaws.com, so we split to retrieve just one valid url`
routeURLs := strings.Split(route.URL, "or")
// route.URL is of the form `https://exampleor-alb.elb.us-west-2.amazonaws.com or exampleor-nlb.elb.us-west-2.amazonaws.com, so we split to retrieve just one valid url`
routeURLs := strings.Split(route.URL, " or")
Expect(len(routeURLs)).To(BeNumerically(">", 1))

routeURL = strings.TrimSpace(routeURLs[0])
Expand Down Expand Up @@ -467,8 +467,8 @@ var _ = Describe("Multiple Service App", func() {
// Calls the front end's magicwords endpoint
route := svc.Routes[0]

// route.URL is of the form `https://example-alb.elb.us-west-2.amazonaws.com or example-nlb.elb.us-west-2.amazonaws.com, so we split to retrieve just one valid url`
routeURLs := strings.Split(route.URL, "or")
// route.URL is of the form `https://exampleor-alb.elb.us-west-2.amazonaws.com or exampleor-nlb.elb.us-west-2.amazonaws.com, so we split to retrieve just one valid url`
routeURLs := strings.Split(route.URL, " or")
Expect(len(routeURLs)).To(BeNumerically(">", 1))

routeURL = strings.TrimSpace(routeURLs[0])
Expand Down

0 comments on commit 7a22b02

Please sign in to comment.