Status endpoint is gone from 2.0 on

This commit is contained in:
Paul Bonser 2017-02-02 19:09:19 -06:00
parent 6c0739bec7
commit 49e38a74a2

View File

@ -817,6 +817,12 @@ func (s *GoesTestSuite) TestCount(c *C) {
func (s *GoesTestSuite) TestIndexStatus(c *C) {
indexName := "testindexstatus"
conn := NewClient(ESHost, ESPort)
// _status endpoint was removed in ES 2.0
if version, _ := conn.Version(); version > "2" {
return
}
conn.DeleteIndex(indexName)
mapping := map[string]interface{}{