Skip to content

Commit

Permalink
api,app: add fake router to test configs
Browse files Browse the repository at this point in the history
  • Loading branch information
cezarsa committed Mar 20, 2015
1 parent 0a0b3b9 commit 09f5c3d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/plan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ func (s *S) TestRoutersList(c *check.C) {
defer config.Unset("routers:router2:type")
recorder := httptest.NewRecorder()
expected := []router.PlanRouter{
{Name: "fake", Type: "fake"},
{Name: "router1", Type: "foo"},
{Name: "router2", Type: "bar"},
}
Expand Down
3 changes: 3 additions & 0 deletions api/testdata/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ auth:
queue: fake
admin-team: admin
repo-manager: fake
routers:
fake:
type: fake
3 changes: 3 additions & 0 deletions app/testdata/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ auth:
queue: fake
admin-team: admin
repo-manager: fake
routers:
fake:
type: fake

0 comments on commit 09f5c3d

Please sign in to comment.