Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion command/v7/apps_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (cmd AppsCommand) Execute(args []string) error {
func getURLs(routes []resources.Route) string {
var routeURLs []string
for _, route := range routes {
routeURLs = append(routeURLs, route.URL+route.FormattedOptions())
routeURLs = append(routeURLs, route.URL)
}

return strings.Join(routeURLs, ", ")
Expand Down
2 changes: 1 addition & 1 deletion command/v7/apps_command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ var _ = Describe("apps Command", func() {
Expect(testUI.Out).To(Say(`Getting apps in org some-org / space some-space as steve\.\.\.`))

Expect(testUI.Out).To(Say(`name\s+requested state\s+processes\s+routes`))
Expect(testUI.Out).To(Say(`some-app-1\s+started\s+web:2/2, console:0/0, worker:0/1\s+some-app-1.some-other-domain {loadbalancing=least-connection}, some-app-1.some-domain`))
Expect(testUI.Out).To(Say(`some-app-1\s+started\s+web:2/2, console:0/0, worker:0/1\s+some-app-1.some-other-domain, some-app-1.some-domain`))

Expect(testUI.Err).To(Say("warning-1"))
Expect(testUI.Err).To(Say("warning-2"))
Expand Down
2 changes: 1 addition & 1 deletion command/v7/shared/app_summary_displayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (display AppSummaryDisplayer) AppDisplay(summary v7action.DetailedApplicati
func routeSummary(rs []resources.Route) string {
formattedRoutes := []string{}
for _, route := range rs {
formattedRoutes = append(formattedRoutes, route.URL+route.FormattedOptions())
formattedRoutes = append(formattedRoutes, route.URL)
}
return strings.Join(formattedRoutes, ", ")
}
Expand Down
4 changes: 2 additions & 2 deletions command/v7/shared/app_summary_displayer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,8 @@ var _ = Describe("app summary displayer", func() {
}
})

It("displays routes", func() {
Expect(testUI.Out).To(Say(`routes:\s+%s, %s`, "route1.example.com {loadbalancing=least-connection}", "route2.example.com"))
It("displays routes without their options", func() {
Expect(testUI.Out).To(Say(`routes:\s+%s, %s`, "route1.example.com", "route2.example.com"))
})
})

Expand Down
Loading