# Raises an error if linkDetect config is missing uriTemplate
karma.bin-should-fail --config.file=karma.yaml
! stdout .
cmp stderr stderr.txt

-- stderr.txt --
level=info msg="Reading configuration file" path=karma.yaml
level=info msg="Version: dev"
level=error msg="Execution failed" error="invalid link detect rule, regex 'DEVOPS-[0-9]+' uriTemplate ''"
-- karma.yaml --
alertmanager:
  servers:
    - name: default
      uri: https://127.0.0.1:9093
silences:
  comments:
    linkDetect:
      rules:
        - regex: "DEVOPS-[0-9]+"
