From 8718b0e133eb160480b880bf5bcf5eeeeb1bc154 Mon Sep 17 00:00:00 2001 From: vishalnayak Date: Mon, 14 Mar 2016 18:40:12 -0400 Subject: [PATCH] Fix broken test case --- http/sys_audit_test.go | 3 ++- vault/logical_system_test.go | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/http/sys_audit_test.go b/http/sys_audit_test.go index 010f4bb06e..ec9557ecf0 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 633079dafc..375582bcde 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{