Skip to content

Commit 8178b5d

Browse files
committed
cf apps output app summary
1 parent e8b9ed8 commit 8178b5d

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

command/v7/shared/app_summary_displayer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func (display AppSummaryDisplayer) AppDisplay(summary v7action.DetailedApplicati
5959
func routeSummary(rs []resources.Route) string {
6060
formattedRoutes := []string{}
6161
for _, route := range rs {
62-
formattedRoutes = append(formattedRoutes, route.URL+route.FormattedOptions())
62+
formattedRoutes = append(formattedRoutes, route.URL)
6363
}
6464
return strings.Join(formattedRoutes, ", ")
6565
}

command/v7/shared/app_summary_displayer_test.go

-16
Original file line numberDiff line numberDiff line change
@@ -605,22 +605,6 @@ var _ = Describe("app summary displayer", func() {
605605
})
606606
})
607607

608-
When("the application has routes with options", func() {
609-
BeforeEach(func() {
610-
lbLCVal := "least-connection"
611-
options := map[string]*string{"loadbalancing": &lbLCVal}
612-
613-
summary.Routes = []resources.Route{
614-
{Host: "route1", URL: "route1.example.com", Options: options},
615-
{Host: "route2", URL: "route2.example.com"},
616-
}
617-
})
618-
619-
It("displays routes", func() {
620-
Expect(testUI.Out).To(Say(`routes:\s+%s, %s`, "route1.example.com {loadbalancing=least-connection}", "route2.example.com"))
621-
})
622-
})
623-
624608
When("the application has a stack", func() {
625609
BeforeEach(func() {
626610
summary.CurrentDroplet.Stack = "some-stack"

0 commit comments

Comments
 (0)