78b02663e9
A golden file makes the expected value easier to work with. This change also removes a number of shims for enterprise and replaces them with a single one for the golden filename.
23 lines
1 KiB
Go
23 lines
1 KiB
Go
// +build !consulent
|
|
|
|
package config
|
|
|
|
var testRuntimeConfigSanitizeExpectedFilename = "TestRuntimeConfig_Sanitize.golden"
|
|
|
|
func entFullRuntimeConfig(rt *RuntimeConfig) {}
|
|
|
|
var enterpriseReadReplicaWarnings = []string{enterpriseConfigKeyError{key: "read_replica (or the deprecated non_voting_server)"}.Error()}
|
|
|
|
var enterpriseConfigKeyWarnings = []string{
|
|
enterpriseConfigKeyError{key: "read_replica (or the deprecated non_voting_server)"}.Error(),
|
|
enterpriseConfigKeyError{key: "segment"}.Error(),
|
|
enterpriseConfigKeyError{key: "segments"}.Error(),
|
|
enterpriseConfigKeyError{key: "autopilot.redundancy_zone_tag"}.Error(),
|
|
enterpriseConfigKeyError{key: "autopilot.upgrade_version_tag"}.Error(),
|
|
enterpriseConfigKeyError{key: "autopilot.disable_upgrade_migration"}.Error(),
|
|
enterpriseConfigKeyError{key: "dns_config.prefer_namespace"}.Error(),
|
|
enterpriseConfigKeyError{key: "acl.msp_disable_bootstrap"}.Error(),
|
|
enterpriseConfigKeyError{key: "acl.tokens.managed_service_provider"}.Error(),
|
|
enterpriseConfigKeyError{key: "audit"}.Error(),
|
|
}
|