mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
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>
16 lines
266 B
Go
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)
|
|
}
|