consul/agent/config
Daniel Nephin 1dcafa51a4 config: make config.TestLoad_FullConfig use config.Load
This commit makes a number of changes that should make
TestLoad_FullConfig easier to work with, and make the test more like
real world scenarios.

* use separate files in testdata/ dir to store the config source.
  Separate files are much easier to edit because editors can syntax
  highlight json/hcl, and it makes strings easier to find. Previously
  trying to find strings would match strings used in other tests.
* use the exported config.Load interface instead of internal NewBuilder
  and BuildAndValidate.
* remove the tail config overrides, which are only necessary with
  nonZero works.
2021-01-27 17:51:53 -05:00
..
testdata config: make config.TestLoad_FullConfig use config.Load 2021-01-27 17:51:53 -05:00
agent_limits.go config: validate system limits against limits.http_max_conns_per_client (#7434) 2020-04-02 09:22:17 +02:00
builder.go config: Unexport Builder and NewBuilder 2021-01-27 17:41:53 -05:00
builder_oss.go config: Unexport Builder and NewBuilder 2021-01-27 17:41:53 -05:00
builder_oss_test.go config: Use config fields to warn about enterprise settings 2021-01-07 19:31:39 -05:00
builder_test.go config: Unexport Builder and NewBuilder 2021-01-27 17:41:53 -05:00
config.go Merge pull request #9250 from hashicorp/dnephin/config-tags-2 2021-01-08 14:08:34 -05:00
config_oss.go agent/config: add auditing config to OSS and add to enterpriseConfigMap exclusions 2020-05-11 13:27:35 -07:00
default.go config: replace calls to config.NewBuilder with config.Load 2021-01-27 17:34:43 -05:00
default_oss.go config: Use LiteralSource for some defaults 2020-11-20 18:14:17 -05:00
doc.go Metrics service prefix (#3498) 2017-09-26 17:49:55 -07:00
flags.go config: make config.TestLoad_FullConfig use config.Load 2021-01-27 17:51:53 -05:00
flags_test.go config: improve the interface of Load 2021-01-27 17:34:43 -05:00
flagset.go
golden_test.go config: Use golden for TestRuntimeConfig_Sanitize 2021-01-11 14:34:03 -05:00
limits.go Add unconvert linter 2020-05-12 13:47:25 -04:00
limits_windows.go config: validate system limits against limits.http_max_conns_per_client (#7434) 2020-04-02 09:22:17 +02:00
merge.go Agent Auto Configuration: Configuration Syntax Updates (#8003) 2020-06-16 15:03:22 -04:00
merge_test.go Agent Auto Configuration: Configuration Syntax Updates (#8003) 2020-06-16 15:03:22 -04:00
runtime.go agent/consuk: Rename RPCRate -> RPCRateLimit 2021-01-14 17:26:00 -05:00
runtime_oss.go Sync of OSS changes to support namespaces (#6909) 2019-12-09 21:26:41 -05:00
runtime_oss_test.go config: make config.TestLoad_FullConfig use config.Load 2021-01-27 17:51:53 -05:00
runtime_test.go config: make config.TestLoad_FullConfig use config.Load 2021-01-27 17:51:53 -05:00
segment_oss.go config: Unexport Builder and NewBuilder 2021-01-27 17:41:53 -05:00
segment_oss_test.go testing: Remove all the defer os.Removeall 2020-08-14 19:58:53 -04:00