mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 11:29:48 +08:00
7029797452
/kind improvement issue: #27653 Signed-off-by: PowderLi <min.li@zilliz.com>
19 lines
478 B
Go
19 lines
478 B
Go
package paramtable
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestHTTPConfig_Init(t *testing.T) {
|
|
params := ComponentParam{}
|
|
params.Init(NewBaseTable(SkipRemote(true)))
|
|
cfg := ¶ms.HTTPCfg
|
|
assert.Equal(t, cfg.Enabled.GetAsBool(), true)
|
|
assert.Equal(t, cfg.DebugMode.GetAsBool(), false)
|
|
assert.Equal(t, cfg.Port.GetValue(), "")
|
|
assert.Equal(t, cfg.AcceptTypeAllowInt64.GetValue(), "false")
|
|
assert.Equal(t, cfg.EnablePprof.GetAsBool(), true)
|
|
}
|