Signed-off-by: Madhu Venugopal <madhu@docker.com>
| ... | ... |
@@ -89,7 +89,7 @@ func (h *httpHandler) initRouter() {
|
| 89 | 89 |
{"/networks/" + nwID, nil, procGetNetwork},
|
| 90 | 90 |
{"/networks/" + nwID + "/endpoints", []string{"name", epName}, procGetEndpoints},
|
| 91 | 91 |
{"/networks/" + nwID + "/endpoints", []string{"partial-id", epPID}, procGetEndpoints},
|
| 92 |
- |
|
| 92 |
+ {"/networks/" + nwID + "/endpoints", nil, procGetEndpoints},
|
|
| 93 | 93 |
{"/networks/" + nwID + "/endpoints/" + epID, nil, procGetEndpoint},
|
| 94 | 94 |
}, |
| 95 | 95 |
"POST": {
|
| ... | ... |
@@ -1391,8 +1391,8 @@ func TestEndToEnd(t *testing.T) {
|
| 1391 | 1391 |
t.Fatal(err) |
| 1392 | 1392 |
} |
| 1393 | 1393 |
handleRequest(rsp, req) |
| 1394 |
- if rsp.statusCode != http.StatusNotFound {
|
|
| 1395 |
- t.Fatalf("Expected StatusNotFound. Got (%d): %s", rsp.statusCode, rsp.body)
|
|
| 1394 |
+ if rsp.statusCode != http.StatusOK {
|
|
| 1395 |
+ t.Fatalf("Expected StatusOK. Got (%d): %s", rsp.statusCode, rsp.body)
|
|
| 1396 | 1396 |
} |
| 1397 | 1397 |
|
| 1398 | 1398 |
req, err = http.NewRequest("GET", "/networks/"+nid+"/endpoints?name=bla", nil)
|