Be more general about error to support ES 5.x
This commit is contained in:
parent
a9196feea3
commit
28784db09c
@ -151,9 +151,10 @@ func (s *GoesTestSuite) TestDeleteIndexInexistantIndex(c *C) {
|
||||
conn := NewClient(ESHost, ESPort)
|
||||
resp, err := conn.DeleteIndex("foobar")
|
||||
|
||||
c.Assert(err.Error(), Equals, "[404] IndexMissingException[[foobar] missing]")
|
||||
c.Assert(err.Error(), Matches, "\\[404\\] .*foobar.*")
|
||||
resp.Raw = nil // Don't make us have to duplicate this.
|
||||
c.Assert(resp, DeepEquals, &Response{Status: 404, Error: "IndexMissingException[[foobar] missing]"})
|
||||
c.Assert(resp.Status, Equals, uint64(404))
|
||||
c.Assert(resp.Error, Matches, ".*foobar.*")
|
||||
}
|
||||
|
||||
func (s *GoesTestSuite) TestDeleteIndexExistingIndex(c *C) {
|
||||
|
Loading…
Reference in New Issue
Block a user