open-consul/agent/config
Daniel Nephin e6badb3129 config: make TestLoad_IntegrationWithFlags easier to work with
Replace the large table of tests with individual calls to run(). By using
runCase, failure messages will include the line number for the test case, as
well as a line number from the test functions.

Example:
=== FAIL: agent/config TestLoad_IntegrationWithFlags/failing_case (0.01s)
    runtime_test.go:4721: case: failing case
    runtime_test.go:4864: error "data_dir cannot be empty" does not contain "I expected this error"

Previous:
    runtime_test.go:4864: error "data_dir cannot be empty" does not contain "I expected this error"

Without the line number to the testCase data, debugging these tests is
difficult. It is impossible to jump directly to the test case, and
difficult to find the location because of many similarly named cases.
2021-02-16 14:40:16 -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: move testing shims to LoadOpts 2021-02-16 14:40:15 -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: move testing shims to LoadOpts 2021-02-16 14:40:15 -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 New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
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 TestLoad_IntegrationWithFlags easier to work with 2021-02-16 14:40:16 -05:00
segment_oss.go config: Unexport Builder and NewBuilder 2021-01-27 17:41:53 -05:00
segment_oss_test.go config: make TestLoad_IntegrationWithFlags easier to work with 2021-02-16 14:40:16 -05:00