# Raises an error if basic auth username is missing
! exec karma --config.file=karma.yaml
! stdout .
cmp stderr stderr.txt

-- stderr.txt --
level=ERROR msg="Execution failed" error="authentication.basicAuth.users require both username and password to be set"
-- karma.yaml --
alertmanager:
  servers:
    - name: default
      uri: https://127.0.0.1:9093
authentication:
  basicAuth:
    users:
      - password: foo
