mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-31 18:48:08 +00:00
Fix sys/health tests
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
|||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/hashicorp/vault/helper/consts"
|
||||||
"github.com/hashicorp/vault/vault"
|
"github.com/hashicorp/vault/vault"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -23,7 +24,8 @@ func TestSysHealth_get(t *testing.T) {
|
|||||||
|
|
||||||
var actual map[string]interface{}
|
var actual map[string]interface{}
|
||||||
expected := map[string]interface{}{
|
expected := map[string]interface{}{
|
||||||
"replication_dr_secondary": false,
|
"replication_perf_mode": consts.ReplicationDisabled.String(),
|
||||||
|
"replication_dr_mode": consts.ReplicationDisabled.String(),
|
||||||
"initialized": false,
|
"initialized": false,
|
||||||
"sealed": true,
|
"sealed": true,
|
||||||
"standby": true,
|
"standby": true,
|
||||||
@@ -54,7 +56,8 @@ func TestSysHealth_get(t *testing.T) {
|
|||||||
|
|
||||||
actual = map[string]interface{}{}
|
actual = map[string]interface{}{}
|
||||||
expected = map[string]interface{}{
|
expected = map[string]interface{}{
|
||||||
"replication_dr_secondary": false,
|
"replication_perf_mode": consts.ReplicationDisabled.String(),
|
||||||
|
"replication_dr_mode": consts.ReplicationDisabled.String(),
|
||||||
"initialized": true,
|
"initialized": true,
|
||||||
"sealed": true,
|
"sealed": true,
|
||||||
"standby": true,
|
"standby": true,
|
||||||
@@ -89,7 +92,8 @@ func TestSysHealth_get(t *testing.T) {
|
|||||||
|
|
||||||
actual = map[string]interface{}{}
|
actual = map[string]interface{}{}
|
||||||
expected = map[string]interface{}{
|
expected = map[string]interface{}{
|
||||||
"replication_dr_secondary": false,
|
"replication_perf_mode": consts.ReplicationDisabled.String(),
|
||||||
|
"replication_dr_mode": consts.ReplicationDisabled.String(),
|
||||||
"initialized": true,
|
"initialized": true,
|
||||||
"sealed": false,
|
"sealed": false,
|
||||||
"standby": false,
|
"standby": false,
|
||||||
@@ -130,7 +134,8 @@ func TestSysHealth_customcodes(t *testing.T) {
|
|||||||
|
|
||||||
var actual map[string]interface{}
|
var actual map[string]interface{}
|
||||||
expected := map[string]interface{}{
|
expected := map[string]interface{}{
|
||||||
"replication_dr_secondary": false,
|
"replication_perf_mode": consts.ReplicationDisabled.String(),
|
||||||
|
"replication_dr_mode": consts.ReplicationDisabled.String(),
|
||||||
"initialized": false,
|
"initialized": false,
|
||||||
"sealed": true,
|
"sealed": true,
|
||||||
"standby": true,
|
"standby": true,
|
||||||
@@ -162,7 +167,8 @@ func TestSysHealth_customcodes(t *testing.T) {
|
|||||||
|
|
||||||
actual = map[string]interface{}{}
|
actual = map[string]interface{}{}
|
||||||
expected = map[string]interface{}{
|
expected = map[string]interface{}{
|
||||||
"replication_dr_secondary": false,
|
"replication_perf_mode": consts.ReplicationDisabled.String(),
|
||||||
|
"replication_dr_mode": consts.ReplicationDisabled.String(),
|
||||||
"initialized": true,
|
"initialized": true,
|
||||||
"sealed": true,
|
"sealed": true,
|
||||||
"standby": true,
|
"standby": true,
|
||||||
@@ -198,7 +204,8 @@ func TestSysHealth_customcodes(t *testing.T) {
|
|||||||
|
|
||||||
actual = map[string]interface{}{}
|
actual = map[string]interface{}{}
|
||||||
expected = map[string]interface{}{
|
expected = map[string]interface{}{
|
||||||
"replication_dr_secondary": false,
|
"replication_perf_mode": consts.ReplicationDisabled.String(),
|
||||||
|
"replication_dr_mode": consts.ReplicationDisabled.String(),
|
||||||
"initialized": true,
|
"initialized": true,
|
||||||
"sealed": false,
|
"sealed": false,
|
||||||
"standby": false,
|
"standby": false,
|
||||||
|
|||||||
Reference in New Issue
Block a user