# Check if proxy_url is set correctly on server configuration
karma.bin-should-work --log.config=true --config.file=karma.yaml --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="Parsed configuration:"
level=info msg="authentication:"
level=info msg="  header:"
level=info msg="    name: \"\""
level=info msg="    value_re: \"\""
level=info msg="    group_name: \"\""
level=info msg="    group_value_re: \"\""
level=info msg="    group_value_separator: ' '"
level=info msg="  basicAuth:"
level=info msg="    users: []"
level=info msg="authorization:"
level=info msg="  groups: []"
level=info msg="  acl:"
level=info msg="    silences: \"\""
level=info msg="alertmanager:"
level=info msg="  interval: 1m0s"
level=info msg="  servers:"
level=info msg="    - cluster: \"\""
level=info msg="      name: socks5_proxy"
level=info msg="      uri: http://127.0.0.1"
level=info msg="      external_uri: \"\""
level=info msg="      proxy_url: socks5://local.proxy:1080"
level=info msg="      timeout: 40s"
level=info msg="      proxy: false"
level=info msg="      readonly: false"
level=info msg="      tls:"
level=info msg="        ca: \"\""
level=info msg="        cert: \"\""
level=info msg="        key: \"\""
level=info msg="        insecureSkipVerify: false"
level=info msg="      headers: {}"
level=info msg="      cors:"
level=info msg="        credentials: include"
level=info msg="      healthcheck:"
level=info msg="        visible: false"
level=info msg="        filters: {}"
level=info msg="alertAcknowledgement:"
level=info msg="  enabled: false"
level=info msg="  duration: 15m0s"
level=info msg="  author: karma"
level=info msg="  comment: ACK! This alert was acknowledged using karma on %NOW%"
level=info msg="annotations:"
level=info msg="  default:"
level=info msg="    hidden: false"
level=info msg="  hidden: []"
level=info msg="  visible: []"
level=info msg="  keep: []"
level=info msg="  strip: []"
level=info msg="  order: []"
level=info msg="  actions: []"
level=info msg="  enableInsecureHTML: false"
level=info msg="custom:"
level=info msg="  css: \"\""
level=info msg="  js: \"\""
level=info msg="debug: false"
level=info msg="filters:"
level=info msg="  default: []"
level=info msg="grid:"
level=info msg="  sorting:"
level=info msg="    order: startsAt"
level=info msg="    reverse: true"
level=info msg="    label: alertname"
level=info msg="    customValues:"
level=info msg="      labels: {}"
level=info msg="  auto:"
level=info msg="    ignore: []"
level=info msg="    order: []"
level=info msg="  groupLimit: 40"
level=info msg="history:"
level=info msg="  enabled: true"
level=info msg="  workers: 30"
level=info msg="  timeout: 20s"
level=info msg="  rewrite: []"
level=info msg="karma:"
level=info msg="  name: karma"
level=info msg="labels:"
level=info msg="  order: []"
level=info msg="  keep: []"
level=info msg="  keep_re: []"
level=info msg="  strip: []"
level=info msg="  strip_re: []"
level=info msg="  valueOnly: []"
level=info msg="  valueOnly_re: []"
level=info msg="  color:"
level=info msg="    custom: {}"
level=info msg="    static: []"
level=info msg="    unique: []"
level=info msg="listen:"
level=info msg="  address: \"\""
level=info msg="  timeout:"
level=info msg="    read: 10s"
level=info msg="    write: 20s"
level=info msg="  tls:"
level=info msg="    cert: \"\""
level=info msg="    key: \"\""
level=info msg="  port: 8080"
level=info msg="  prefix: /"
level=info msg="log:"
level=info msg="  level: info"
level=info msg="  format: text"
level=info msg="  config: true"
level=info msg="  requests: false"
level=info msg="  timestamp: false"
level=info msg="receivers:"
level=info msg="  keep: []"
level=info msg="  strip: []"
level=info msg="silences:"
level=info msg="  expired: 10m0s"
level=info msg="  comments:"
level=info msg="    linkDetect:"
level=info msg="      rules: []"
level=info msg="silenceForm:"
level=info msg="  strip:"
level=info msg="    labels: []"
level=info msg="ui:"
level=info msg="  refresh: 30s"
level=info msg="  hideFiltersWhenIdle: true"
level=info msg="  colorTitlebar: false"
level=info msg="  theme: auto"
level=info msg="  animations: true"
level=info msg="  minimalGroupWidth: 420"
level=info msg="  alertsPerGroup: 5"
level=info msg="  collapseGroups: collapsedOnMobile"
level=info msg="  multiGridLabel: \"\""
level=info msg="  multiGridSortReverse: false"
level=info msg="Configured Alertmanager source" name=socks5_proxy proxy=false readonly=false uri=http://127.0.0.1
level=info msg="Configuration is valid"
-- karma.yaml --
alertmanager:
  servers:
    - name: socks5_proxy
      uri: http://127.0.0.1
      proxy_url: socks5://local.proxy:1080
