use Prometheus COnfig instead of Plugin

This commit is contained in:
sabban 2024-01-22 18:44:59 +01:00
parent 6508965192
commit 977d904b94

View file

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