Skip to content

Commit

Permalink
Fix helper - remove a route option
Browse files Browse the repository at this point in the history
  • Loading branch information
Dariquest committed Jan 30, 2025
1 parent 3e1d55e commit 5be9eba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions integration/helpers/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,10 @@ func NewTCPRoute(space string, domain string, port int, options map[string]*stri

// Create creates a route using the 'cf create-route' command.
func (r Route) Create() {
r.Options = make(map[string]*string)
if r.Port != 0 {
Eventually(CF("create-route", r.Space, r.Domain, "--port", fmt.Sprint(r.Port), "--option", fmt.Sprint(r.Options))).Should(Exit(0))
Eventually(CF("create-route", r.Space, r.Domain, "--port", fmt.Sprint(r.Port))).Should(Exit(0))
} else {
Eventually(CF("create-route", r.Space, r.Domain, "--hostname", r.Host, "--path", r.Path, "--option", fmt.Sprint(r.Options))).Should(Exit(0))
Eventually(CF("create-route", r.Space, r.Domain, "--hostname", r.Host, "--path", r.Path)).Should(Exit(0))
}
}

Expand Down

0 comments on commit 5be9eba

Please sign in to comment.