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