Skip to content

Commit

Permalink
fix some bats tests (#2775)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabban committed Jan 24, 2024
1 parent 8c75efd commit 3f9e8e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions test/bats/01_cscli.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion test/bats/04_capi.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 3f9e8e8

Please sign in to comment.