mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-05 13:28:49 +08:00
50a78b682e
issue: #30680 also let the parameter item to be refreshable Signed-off-by: PowderLi <min.li@zilliz.com>
19 lines
477 B
Go
19 lines
477 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(), "true")
|
|
assert.Equal(t, cfg.EnablePprof.GetAsBool(), true)
|
|
}
|