# Raises an error if linkDetect config is missing regex rule
! exec karma --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 '' uriTemplate 'https://jira.example.com/'"
-- karma.yaml --
alertmanager:
  servers:
    - name: default
      uri: https://127.0.0.1:9093
silences:
  comments:
    linkDetect:
      rules:
        - uriTemplate: https://jira.example.com/
