disable http unit test which relied on debug functionality
This commit is contained in:
parent
d7eb223e14
commit
00722aa299
|
@ -500,33 +500,6 @@ func TestHandlers(t *testing.T) {
|
||||||
Status: http.StatusNotFound,
|
Status: http.StatusNotFound,
|
||||||
ResponseBody: []byte(`no such index 'tix'`),
|
ResponseBody: []byte(`no such index 'tix'`),
|
||||||
},
|
},
|
||||||
{
|
|
||||||
Desc: "debug doc",
|
|
||||||
Handler: debugHandler,
|
|
||||||
Path: "/ti1/a/debug",
|
|
||||||
Method: "GET",
|
|
||||||
Params: url.Values{
|
|
||||||
"indexName": []string{"ti1"},
|
|
||||||
"docID": []string{"a"},
|
|
||||||
},
|
|
||||||
Status: http.StatusOK,
|
|
||||||
ResponseMatch: map[string]bool{
|
|
||||||
`"key"`: true,
|
|
||||||
`"val"`: true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Desc: "debug doc invalid index",
|
|
||||||
Handler: debugHandler,
|
|
||||||
Path: "/ti1/a/debug",
|
|
||||||
Method: "GET",
|
|
||||||
Params: url.Values{
|
|
||||||
"indexName": []string{"tix"},
|
|
||||||
"docID": []string{"a"},
|
|
||||||
},
|
|
||||||
Status: http.StatusNotFound,
|
|
||||||
ResponseBody: []byte(`no such index 'tix'`),
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
Desc: "create alias",
|
Desc: "create alias",
|
||||||
Handler: aliasHandler,
|
Handler: aliasHandler,
|
||||||
|
|
Loading…
Reference in New Issue