# Raises an error if --authorization.acl points to a file that cannot be parsed
karma.bin-should-fail --check-config
! stdout .
cmp stderr stderr.txt

-- stderr.txt --
level=info msg="Reading configuration file" path=karma.yaml
level=info msg="Version: dev"
level=info msg="Configured Alertmanager source" name=default proxy=false readonly=false uri=https://127.0.0.1:9093
level=info msg="Reading silence ACL config file" path=acl.yaml
level=error msg="Execution failed" error="failed to parse silence ACL configuration file \"acl.yaml\": yaml: unmarshal errors:\n  line 1: cannot unmarshal !!str `This Is...` into config.silencesACLSchema"
-- karma.yaml --
authentication:
  header:
    name: "X-User"
    value_re: "(.+)"
authorization:
  groups:
    - name: admins
      members:
        - alice
        - bob
    - name: users
      members:
        - john
  acl:
    silences: acl.yaml
alertmanager:
  servers:
    - name: default
      uri: https://127.0.0.1:9093

-- acl.yaml --
This Is Not yaml
