Status endpoint is gone from 2.0 on
This commit is contained in:
parent
6c0739bec7
commit
49e38a74a2
@ -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{}{
|
||||
|
Loading…
Reference in New Issue
Block a user