mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 21:35:52 +00:00
a9734b69c5
Use go-cmp for better diffs in tests
28 lines
671 B
Go
28 lines
671 B
Go
// +build !consulent
|
|
|
|
package config
|
|
|
|
var authMethodEntFields = `{}`
|
|
|
|
var entMetaJSON = `{}`
|
|
|
|
var entRuntimeConfigSanitize = `{}`
|
|
|
|
var entTokenConfigSanitize = `"EnterpriseConfig": {},`
|
|
|
|
func entFullRuntimeConfig(rt *RuntimeConfig) {}
|
|
|
|
var enterpriseReadReplicaWarnings = []string{enterpriseConfigKeyError{key: "read_replica"}.Error()}
|
|
|
|
var enterpriseConfigKeyWarnings []string
|
|
|
|
func init() {
|
|
for k := range enterpriseConfigMap {
|
|
if k == "non_voting_server" {
|
|
// this is an alias for "read_replica" so we shouldn't see it in warnings
|
|
continue
|
|
}
|
|
enterpriseConfigKeyWarnings = append(enterpriseConfigKeyWarnings, enterpriseConfigKeyError{key: k}.Error())
|
|
}
|
|
}
|