fix some bats tests (#2775)

This commit is contained in:
Manuel Sabban 2024-01-24 19:51:55 +01:00 committed by GitHub
parent 8c75efdb2a
commit 3f9e8e81e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 5 deletions

View file

@ -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')

View file

@ -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" {