Add appfilter and tests (#337)

add appfilter and tests
This commit is contained in:
Pedro Nasser
2016-11-24 03:46:42 -02:00
committed by GitHub
parent c307c9375b
commit 01d5a81389
7 changed files with 67 additions and 19 deletions

View File

@@ -80,9 +80,7 @@ func (m *Mock) GetRoute(ctx context.Context, appName, routePath string) (*models
func (m *Mock) GetRoutes(ctx context.Context, routeFilter *models.RouteFilter) (routes []*models.Route, err error) {
for _, r := range m.Routes {
if models.ApplyRouteFilter(r, routeFilter) {
routes = append(routes, r)
}
routes = append(routes, r)
}
return
}