fix some bats tests (#2775)
This commit is contained in:
parent
8c75efdb2a
commit
3f9e8e81e6
2 changed files with 8 additions and 5 deletions
|
@ -115,15 +115,18 @@ teardown() {
|
|||
assert_output "&false"
|
||||
|
||||
# complex type
|
||||
rune -0 cscli config show --key Config.PluginConfig
|
||||
rune -0 cscli config show --key Config.Prometheus
|
||||
assert_output - <<-EOT
|
||||
&csconfig.PluginCfg{
|
||||
User: "nobody",
|
||||
Group: "nogroup",
|
||||
&csconfig.PrometheusCfg{
|
||||
Enabled: true,
|
||||
Level: "full",
|
||||
ListenAddr: "127.0.0.1",
|
||||
ListenPort: 6060,
|
||||
}
|
||||
EOT
|
||||
}
|
||||
|
||||
|
||||
@test "cscli - required configuration paths" {
|
||||
config=$(cat "${CONFIG_YAML}")
|
||||
configdir=$(config_get '.config_paths.config_dir')
|
||||
|
|
|
@ -43,7 +43,7 @@ setup() {
|
|||
|
||||
config_set 'del(.api.server.online_client)'
|
||||
rune -1 cscli capi status
|
||||
assert_stderr --partial "no configuration for Central API (CAPI) in '$CONFIG_YAML'"
|
||||
assert_stderr --regexp "no configuration for Central API \(CAPI\) in '$(echo $CONFIG_YAML|sed s#//#/#g)'"
|
||||
}
|
||||
|
||||
@test "cscli capi status" {
|
||||
|
|
Loading…
Reference in a new issue