add get /cleaner/option api
@@ -33,7 +33,7 @@ func Test_CheckBelong(t *testing.T) {
defer os.RemoveAll(logfiles)
c := conf.MapConf{}
c[reader.KeyMetaPath] = logfiles
- c[clean_enable] = "true"
+ c[KeyCleanEnable] = "true"
c[reader.KeyLogPath] = logfiles
c[reader.KeyMode] = "dir"
meta, err := reader.NewMetaWithConf(c)
@@ -120,10 +120,10 @@ func Test_clean(t *testing.T) {
c[reader.KeyMetaPath] = donefiles
c[reader.KeyLogPath] = donefiles + "/" + "log"
c[reader.KeyMode] = "dir"
- c[clean_enable] = "true"
- c[reservefileSize] = "15"
- c[reservefileNumber] = "1"
- c[clean_interval] = "1"
+ c[KeyCleanEnable] = "true"
+ c[KeyReserveFileSize] = "15"
+ c[KeyReserveFileNumber] = "1"
+ c[KeyCleanInterval] = "1"
meta, err := reader.NewMetaWithConf(c)
if err != nil {
t.Error(err)
