mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 02:02:43 +00:00
config test fix
This commit is contained in:
@@ -1245,7 +1245,6 @@ func TestLdapAuthBackend_ConfigUpgrade(t *testing.T) {
|
||||
DerefAliases: "never",
|
||||
MaximumPageSize: 1000,
|
||||
},
|
||||
RotationSchedule: "",
|
||||
}
|
||||
|
||||
configEntry, err := b.Config(ctx, configReq)
|
||||
|
||||
@@ -120,13 +120,14 @@ func (b *backend) Config(ctx context.Context, req *logical.Request) (*ldapConfig
|
||||
persistNeeded = true
|
||||
}
|
||||
|
||||
if result.RotationSchedule == "" {
|
||||
result.RotationSchedule = "0 0 0 0 0"
|
||||
}
|
||||
// leave these blank if unset, which would mean no rotation at all
|
||||
//if result.RotationSchedule == "" {
|
||||
// result.RotationSchedule = "0 0 0 0 0"
|
||||
//}
|
||||
|
||||
if result.RotationWindow == 0 {
|
||||
// default rotation windoe
|
||||
}
|
||||
//if result.RotationWindow == 0 {
|
||||
// // default rotation windoe
|
||||
//}
|
||||
|
||||
if persistNeeded && (b.System().LocalMount() || !b.System().ReplicationState().HasState(consts.ReplicationPerformanceSecondary|consts.ReplicationPerformanceStandby)) {
|
||||
entry, err := logical.StorageEntryJSON("config", result)
|
||||
|
||||
Reference in New Issue
Block a user