Browse Source

Status endpoint is gone from 2.0 on

tags/v1.2.2
Paul Bonser 7 years ago
parent
commit
49e38a74a2
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      goes_test.go

+ 6
- 0
goes_test.go 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{}{


Loading…
Cancel
Save