Fix up error detection regression to return correct status codes

This commit is contained in:
Jeff Mitchell
2016-06-22 17:47:05 -04:00
parent 10ee35e7fc
commit ebbcc170c8
2 changed files with 37 additions and 40 deletions

View File

@@ -30,8 +30,11 @@ func TestLogical(t *testing.T) {
testResponseStatus(t, resp, 204)
// READ
resp = testHttpGet(t, token, addr+"/v1/secret/foo")
// Bad token should return a 403
resp = testHttpGet(t, token+"bad", addr+"/v1/secret/foo")
testResponseStatus(t, resp, 403)
resp = testHttpGet(t, token, addr+"/v1/secret/foo")
var actual map[string]interface{}
var nilWarnings interface{}
expected := map[string]interface{}{