# Raises an error if we cors.credentials value is incorrect
! exec karma --config.file karma.yaml
! stdout .
cmp stderr stderr.txt

-- stderr.txt --
level=ERROR msg="Execution failed" error="invalid cors.credentials value 'foo' for alertmanager 'am1', allowed options: omit, include, same-origin"
-- karma.yaml --
alertmanager:
  servers:
    - name: am1
      uri: https://127.0.0.1:9093
      cors:
        credentials: foo
