From 49e38a74a2c07fece74d3180744f7606a371de28 Mon Sep 17 00:00:00 2001 From: Paul Bonser Date: Thu, 2 Feb 2017 19:09:19 -0600 Subject: [PATCH] Status endpoint is gone from 2.0 on --- goes_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/goes_test.go b/goes_test.go index a0b9e25..e776b5b 100644 --- a/goes_test.go +++ b/goes_test.go @@ -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{}{