mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-05 22:08:27 +00:00
etcd: fix db config and test
fix unit test for adapted config file
This commit is contained in:
@@ -40,7 +40,6 @@ type ConfigStructure struct { // nolint: maligned
|
|||||||
LogLevel string `json:"logLevel"`
|
LogLevel string `json:"logLevel"`
|
||||||
LogFormat string `json:"logFormat"`
|
LogFormat string `json:"logFormat"`
|
||||||
ServeInAPIMode bool `json:"serveInAPIMode"`
|
ServeInAPIMode bool `json:"serveInAPIMode"`
|
||||||
DatabaseEtcd string `json:"databaseEtcd"`
|
|
||||||
DatabaseBackend DBConfig `json:"databaseBackend"`
|
DatabaseBackend DBConfig `json:"databaseBackend"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -144,10 +144,10 @@ func (s *ConfigSuite) TestSaveConfig(c *C) {
|
|||||||
" \"logLevel\": \"info\",\n"+
|
" \"logLevel\": \"info\",\n"+
|
||||||
" \"logFormat\": \"json\",\n"+
|
" \"logFormat\": \"json\",\n"+
|
||||||
" \"serveInAPIMode\": false,\n"+
|
" \"serveInAPIMode\": false,\n"+
|
||||||
" \"databaseEtcd\": \"\",\n"+
|
|
||||||
" \"databaseBackend\": {\n"+
|
" \"databaseBackend\": {\n"+
|
||||||
" \"type\": \"\",\n"+
|
" \"type\": \"\",\n"+
|
||||||
" \"url\": \"\"\n"+
|
" \"url\": \"\",\n"+
|
||||||
|
" \"dbPath\": \"\"\n" +
|
||||||
" }\n"+
|
" }\n"+
|
||||||
"}")
|
"}")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user