Create configutil and move some common config and setup functions there (#8362)

This commit is contained in:
Jeff Mitchell
2020-05-14 09:19:27 -04:00
committed by GitHub
parent 8813dc7363
commit 91b09c09b5
57 changed files with 2067 additions and 1781 deletions

View File

@@ -230,28 +230,28 @@ func TestServer(t *testing.T) {
{
"bad_listener_read_header_timeout_config",
testBaseHCL(t, badListenerReadHeaderTimeout) + inmemHCL,
"Could not parse a time value for http_read_header_timeout",
"unknown unit km in duration 12km",
1,
"-test-server-config",
},
{
"bad_listener_read_timeout_config",
testBaseHCL(t, badListenerReadTimeout) + inmemHCL,
"Could not parse a time value for http_read_timeout",
"parsing \"34日\": invalid syntax",
1,
"-test-server-config",
},
{
"bad_listener_write_timeout_config",
testBaseHCL(t, badListenerWriteTimeout) + inmemHCL,
"Could not parse a time value for http_write_timeout",
"unknown unit lbs in duration 56lbs",
1,
"-test-server-config",
},
{
"bad_listener_idle_timeout_config",
testBaseHCL(t, badListenerIdleTimeout) + inmemHCL,
"Could not parse a time value for http_idle_timeout",
"unknown unit gophers in duration 78gophers",
1,
"-test-server-config",
},