milvus/internal/util/paramtable/http_param_test.go
PowderLi ab188dccae
Add a new configuration item: proxy.http.port (#25923)
user define the port for high-level restful api by themselves
    user can only use the default port same as grcp only while tlsMode == 0
fix need authenticate only while authorizationEnable: true
restful api allow origin: *
support insert a single row and an array whose length is 1 at the same time
http response code: 401-incorrect username & password; 403-user has no permission
create collection with default index: vector_idx
while field.DataType == varchar, show it's max_length
check the required parameter

Signed-off-by: PowderLi <min.li@zilliz.com>
2023-08-08 10:17:09 +08:00

16 lines
266 B
Go

package paramtable
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestHTTPConfig_Init(t *testing.T) {
cf := new(HTTPConfig)
cf.InitOnce()
assert.Equal(t, cf.Enabled, true)
assert.Equal(t, cf.DebugMode, false)
assert.Equal(t, cf.Port, -1)
}