use Prometheus COnfig instead of Plugin
This commit is contained in:
parent
6508965192
commit
977d904b94
1 changed files with 11 additions and 4 deletions
|
@ -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}")
|
||||||
|
|
Loading…
Reference in a new issue