From 202a7aec2c659d565ffca982c491b6708eebed4c Mon Sep 17 00:00:00 2001 From: Calvin Leung Huang Date: Mon, 8 Jan 2018 15:03:36 -0500 Subject: [PATCH] Fix sys/health tests (#3762) * Fix sys/health tests * Fix sys/health tests * Fix sys/health tests --- http/sys_health_test.go | 42 +++++++++++++++++++++++------------------ 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/http/sys_health_test.go b/http/sys_health_test.go index 056ea5f341..e035891104 100644 --- a/http/sys_health_test.go +++ b/http/sys_health_test.go @@ -23,9 +23,10 @@ func TestSysHealth_get(t *testing.T) { var actual map[string]interface{} expected := map[string]interface{}{ - "initialized": false, - "sealed": true, - "standby": true, + "replication_dr_secondary": false, + "initialized": false, + "sealed": true, + "standby": true, } testResponseStatus(t, resp, 501) testResponseBody(t, resp, &actual) @@ -53,9 +54,10 @@ func TestSysHealth_get(t *testing.T) { actual = map[string]interface{}{} expected = map[string]interface{}{ - "initialized": true, - "sealed": true, - "standby": true, + "replication_dr_secondary": false, + "initialized": true, + "sealed": true, + "standby": true, } testResponseStatus(t, resp, 503) testResponseBody(t, resp, &actual) @@ -87,9 +89,10 @@ func TestSysHealth_get(t *testing.T) { actual = map[string]interface{}{} expected = map[string]interface{}{ - "initialized": true, - "sealed": false, - "standby": false, + "replication_dr_secondary": false, + "initialized": true, + "sealed": false, + "standby": false, } testResponseStatus(t, resp, 200) testResponseBody(t, resp, &actual) @@ -127,9 +130,10 @@ func TestSysHealth_customcodes(t *testing.T) { var actual map[string]interface{} expected := map[string]interface{}{ - "initialized": false, - "sealed": true, - "standby": true, + "replication_dr_secondary": false, + "initialized": false, + "sealed": true, + "standby": true, } testResponseStatus(t, resp, 581) testResponseBody(t, resp, &actual) @@ -158,9 +162,10 @@ func TestSysHealth_customcodes(t *testing.T) { actual = map[string]interface{}{} expected = map[string]interface{}{ - "initialized": true, - "sealed": true, - "standby": true, + "replication_dr_secondary": false, + "initialized": true, + "sealed": true, + "standby": true, } testResponseStatus(t, resp, 523) testResponseBody(t, resp, &actual) @@ -193,9 +198,10 @@ func TestSysHealth_customcodes(t *testing.T) { actual = map[string]interface{}{} expected = map[string]interface{}{ - "initialized": true, - "sealed": false, - "standby": false, + "replication_dr_secondary": false, + "initialized": true, + "sealed": false, + "standby": false, } testResponseStatus(t, resp, 202) testResponseBody(t, resp, &actual)