@@ -36,33 +36,35 @@ func TestCtlV1RadonConfig(t *testing.T) {
3636 handler := api .MakeHandler ()
3737
3838 type radonParams1 struct {
39- MaxConnections int `json:"max-connections"`
40- MaxResultSize int `json:"max-result-size"`
41- MaxJoinRows int `json:"max-join-rows"`
42- DDLTimeout int `json:"ddl-timeout"`
43- QueryTimeout int `json:"query-timeout"`
44- TwoPCEnable bool `json:"twopc-enable"`
45- LoadBalance int `json:"load-balance"`
46- AllowIP []string `json:"allowip,omitempty"`
47- AuditMode string `json:"audit-mode"`
48- StreamBufferSize int `json:"stream-buffer-size"`
49- Blocks int `json:"blocks-readonly"`
39+ MaxConnections int `json:"max-connections"`
40+ MaxResultSize int `json:"max-result-size"`
41+ MaxJoinRows int `json:"max-join-rows"`
42+ DDLTimeout int `json:"ddl-timeout"`
43+ QueryTimeout int `json:"query-timeout"`
44+ TwoPCEnable bool `json:"twopc-enable"`
45+ LoadBalance int `json:"load-balance"`
46+ AllowIP []string `json:"allowip,omitempty"`
47+ AuditMode string `json:"audit-mode"`
48+ StreamBufferSize int `json:"stream-buffer-size"`
49+ Blocks int `json:"blocks-readonly"`
50+ LowerCaseTableNames int `json:"lower-case-table-names"`
5051 }
5152
5253 // 200.
5354 {
5455 // client
5556 p := & radonParams1 {
56- MaxConnections : 1023 ,
57- MaxResultSize : 1073741823 ,
58- MaxJoinRows : 32767 ,
59- QueryTimeout : 33 ,
60- TwoPCEnable : true ,
61- LoadBalance : 1 ,
62- AllowIP : []string {"127.0.0.1" , "127.0.0.2" },
63- AuditMode : "A" ,
64- StreamBufferSize : 16777216 ,
65- Blocks : 128 ,
57+ MaxConnections : 1023 ,
58+ MaxResultSize : 1073741823 ,
59+ MaxJoinRows : 32767 ,
60+ QueryTimeout : 33 ,
61+ TwoPCEnable : true ,
62+ LoadBalance : 1 ,
63+ AllowIP : []string {"127.0.0.1" , "127.0.0.2" },
64+ AuditMode : "A" ,
65+ StreamBufferSize : 16777216 ,
66+ Blocks : 128 ,
67+ LowerCaseTableNames : 1 ,
6668 }
6769 recorded := test .RunRequest (t , handler , test .MakeSimpleRequest ("PUT" , "http://localhost/v1/radon/config" , p ))
6870 recorded .CodeIs (200 )
@@ -79,6 +81,7 @@ func TestCtlV1RadonConfig(t *testing.T) {
7981 assert .Equal (t , "A" , radonConf .Audit .Mode )
8082 assert .Equal (t , 16777216 , radonConf .Proxy .StreamBufferSize )
8183 assert .Equal (t , 128 , radonConf .Router .Blocks )
84+ assert .Equal (t , 1 , radonConf .Proxy .LowerCaseTableNames )
8285 }
8386
8487 // Unset AllowIP.
0 commit comments