|
@@ -115,15 +115,18 @@ teardown() {
|
|
assert_output "&false"
|
|
assert_output "&false"
|
|
|
|
|
|
# complex type
|
|
# complex type
|
|
- rune -0 cscli config show --key Config.PluginConfig
|
|
|
|
|
|
+ rune -0 cscli config show --key Config.Prometheus
|
|
assert_output - <<-EOT
|
|
assert_output - <<-EOT
|
|
- &csconfig.PluginCfg{
|
|
|
|
- User: "nobody",
|
|
|
|
- Group: "nogroup",
|
|
|
|
|
|
+ &csconfig.PrometheusCfg{
|
|
|
|
+ Enabled: true,
|
|
|
|
+ Level: "full",
|
|
|
|
+ ListenAddr: "127.0.0.1",
|
|
|
|
+ ListenPort: 6060,
|
|
}
|
|
}
|
|
EOT
|
|
EOT
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
@test "cscli - required configuration paths" {
|
|
@test "cscli - required configuration paths" {
|
|
config=$(cat "${CONFIG_YAML}")
|
|
config=$(cat "${CONFIG_YAML}")
|
|
configdir=$(config_get '.config_paths.config_dir')
|
|
configdir=$(config_get '.config_paths.config_dir')
|