diff --git a/http/sys_audit_test.go b/http/sys_audit_test.go index 010f4bb06..ec9557ecf 100644 --- a/http/sys_audit_test.go +++ b/http/sys_audit_test.go @@ -23,6 +23,7 @@ func TestSysAudit(t *testing.T) { var actual map[string]interface{} expected := map[string]interface{}{ "noop/": map[string]interface{}{ + "path": "noop/", "type": "noop", "description": "", "options": map[string]interface{}{}, @@ -31,7 +32,7 @@ func TestSysAudit(t *testing.T) { testResponseStatus(t, resp, 200) testResponseBody(t, resp, &actual) if !reflect.DeepEqual(actual, expected) { - t.Fatalf("bad: %#v", actual) + t.Fatalf("bad: expected:\n%#v actual:\n%#v\n", expected, actual) } } diff --git a/vault/logical_system_test.go b/vault/logical_system_test.go index 633079daf..375582bcd 100644 --- a/vault/logical_system_test.go +++ b/vault/logical_system_test.go @@ -635,6 +635,7 @@ func TestSystemBackend_auditTable(t *testing.T) { exp := map[string]interface{}{ "foo/": map[string]interface{}{ + "path": "foo/", "type": "noop", "description": "testing", "options": map[string]string{