diff options
author | valentin v / vvval <[email protected]> | 2019-02-21 15:17:40 +0300 |
---|---|---|
committer | valentin v / vvval <[email protected]> | 2019-02-21 15:17:40 +0300 |
commit | 46a52a8691e83c81a6d12183eddf188b5d15f011 (patch) | |
tree | 5aa06af7b90be39f72559eb8500c591d2bc411c9 /service/http/config_test.go | |
parent | 3c1923606c7b5391678b7a760772c8e55f046025 (diff) |
Rename MaxRequest config param
Added MaxRequestSize param, previous one is marked as deprecated,
now they are merged
Diffstat (limited to 'service/http/config_test.go')
-rw-r--r-- | service/http/config_test.go | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/service/http/config_test.go b/service/http/config_test.go index 07901cb6..4cd2783f 100644 --- a/service/http/config_test.go +++ b/service/http/config_test.go @@ -31,8 +31,8 @@ func Test_Config_Hydrate_Error2(t *testing.T) { func Test_Config_Valid(t *testing.T) { cfg := &Config{ - Address: ":8080", - MaxRequest: 1024, + Address: ":8080", + MaxRequestSize: 1024, Uploads: &UploadsConfig{ Dir: os.TempDir(), Forbid: []string{".go"}, @@ -58,7 +58,7 @@ func Test_Config_Valid_SSL(t *testing.T) { Cert: "fixtures/server.crt", Key: "fixtures/server.key", }, - MaxRequest: 1024, + MaxRequestSize: 1024, Uploads: &UploadsConfig{ Dir: os.TempDir(), Forbid: []string{".go"}, @@ -87,7 +87,7 @@ func Test_Config_SSL_No_key(t *testing.T) { SSL: SSLConfig{ Cert: "fixtures/server.crt", }, - MaxRequest: 1024, + MaxRequestSize: 1024, Uploads: &UploadsConfig{ Dir: os.TempDir(), Forbid: []string{".go"}, @@ -112,7 +112,7 @@ func Test_Config_SSL_No_Cert(t *testing.T) { SSL: SSLConfig{ Key: "fixtures/server.key", }, - MaxRequest: 1024, + MaxRequestSize: 1024, Uploads: &UploadsConfig{ Dir: os.TempDir(), Forbid: []string{".go"}, @@ -133,8 +133,8 @@ func Test_Config_SSL_No_Cert(t *testing.T) { func Test_Config_NoUploads(t *testing.T) { cfg := &Config{ - Address: ":8080", - MaxRequest: 1024, + Address: ":8080", + MaxRequestSize: 1024, Workers: &roadrunner.ServerConfig{ Command: "php tests/client.php echo pipes", Relay: "pipes", @@ -151,8 +151,8 @@ func Test_Config_NoUploads(t *testing.T) { func Test_Config_NoWorkers(t *testing.T) { cfg := &Config{ - Address: ":8080", - MaxRequest: 1024, + Address: ":8080", + MaxRequestSize: 1024, Uploads: &UploadsConfig{ Dir: os.TempDir(), Forbid: []string{".go"}, @@ -164,8 +164,8 @@ func Test_Config_NoWorkers(t *testing.T) { func Test_Config_NoPool(t *testing.T) { cfg := &Config{ - Address: ":8080", - MaxRequest: 1024, + Address: ":8080", + MaxRequestSize: 1024, Uploads: &UploadsConfig{ Dir: os.TempDir(), Forbid: []string{".go"}, @@ -186,8 +186,8 @@ func Test_Config_NoPool(t *testing.T) { func Test_Config_DeadPool(t *testing.T) { cfg := &Config{ - Address: ":8080", - MaxRequest: 1024, + Address: ":8080", + MaxRequestSize: 1024, Uploads: &UploadsConfig{ Dir: os.TempDir(), Forbid: []string{".go"}, @@ -203,8 +203,8 @@ func Test_Config_DeadPool(t *testing.T) { func Test_Config_InvalidAddress(t *testing.T) { cfg := &Config{ - Address: "", - MaxRequest: 1024, + Address: "", + MaxRequestSize: 1024, Uploads: &UploadsConfig{ Dir: os.TempDir(), Forbid: []string{".go"}, |