etcd: fix db config and test

fix unit test for adapted config file
This commit is contained in:
André Roth
2024-07-27 17:55:07 +02:00
parent 5b74f82edb
commit f10acb3df8
2 changed files with 2 additions and 3 deletions

View File

@@ -40,7 +40,6 @@ type ConfigStructure struct { // nolint: maligned
LogLevel string `json:"logLevel"`
LogFormat string `json:"logFormat"`
ServeInAPIMode bool `json:"serveInAPIMode"`
DatabaseEtcd string `json:"databaseEtcd"`
DatabaseBackend DBConfig `json:"databaseBackend"`
}

View File

@@ -144,10 +144,10 @@ func (s *ConfigSuite) TestSaveConfig(c *C) {
" \"logLevel\": \"info\",\n"+
" \"logFormat\": \"json\",\n"+
" \"serveInAPIMode\": false,\n"+
" \"databaseEtcd\": \"\",\n"+
" \"databaseBackend\": {\n"+
" \"type\": \"\",\n"+
" \"url\": \"\"\n"+
" \"url\": \"\",\n"+
" \"dbPath\": \"\"\n" +
" }\n"+
"}")
}