Skip to content

Commit

Permalink
fix simulator urls
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Weil authored and smarterclayton committed Apr 10, 2015
1 parent ee831e7 commit 726d211
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions test/integration/router/router_http_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,14 @@ func (s *TestHttpService) Start() error {

func (s *TestHttpService) startMaster() error {
masterServer := http.NewServeMux()
masterServer.HandleFunc("/api/v1beta1/endpoints", s.handleEndpointList)
masterServer.HandleFunc("/api/v1beta1/watch/endpoints", s.handleEndpointWatch)
apis := []string{"v1beta1", "v1beta2", "v1beta3"}

masterServer.HandleFunc("/osapi/v1beta1/routes", s.handleRouteList)
masterServer.HandleFunc("/osapi/v1beta1/watch/routes", s.handleRouteWatch)
for _, version := range apis {
masterServer.HandleFunc(fmt.Sprintf("/api/%s/endpoints", version), s.handleEndpointList)
masterServer.HandleFunc(fmt.Sprintf("/api/%s/watch/endpoints", version), s.handleEndpointWatch)
masterServer.HandleFunc(fmt.Sprintf("/osapi/%s/routes", version), s.handleRouteList)
masterServer.HandleFunc(fmt.Sprintf("/osapi/%s/watch/routes", version), s.handleRouteWatch)
}

masterServer.HandleFunc("/", s.handleHelloMaster)

Expand Down

0 comments on commit 726d211

Please sign in to comment.