addr:
  tcp://ve-testing:{{ .Vars.rabbitmq.service.ports.amqp }}:
    reachable: true
http:
  http://rmq-op-webhook:{{ .Vars.msgTopologyOperator.service.ports.webhook }}:
    status: 400
  http://ve-testing:{{ .Vars.rabbitmq.service.ports.manager }}:
    status: 200
command:
  rabbitmqctl-cluster-status:
    exec: rabbitmqctl cluster_status
    exit-status: 0
    stdout:
    {{ range $e, $i := until .Vars.rabbitmq.replicaCount }}
      - /ve-testing-server-{{ $i }}.ve-testing-nodes/
    {{ end }}
  check-sa:
    exec: cat /var/run/secrets/kubernetes.io/serviceaccount/token | cut -d '.' -f 2 | xargs -I '{}' echo '{}====' | fold -w 4 | sed '$ d' | tr -d '\n' | base64 -d
    exit-status: 0
    stdout:
    - /serviceaccount.*name.*ve-testing-server/
