#!/usr/bin/env bash
# fake openstack for phase-04-internal-cert-san-verify.sh tests.
# 'endpoint list --interface internal -f json' -> canned internal catalog.
# Includes one plain-HTTP endpoint (image-stream) that MUST be SKIPPED (no cert).
if [ "${1:-}" = endpoint ] && [ "${2:-}" = list ]; then
  cat <<'JSON'
[
 {"Service Name":"keystone","URL":"https://10.12.12.50:5000/v3","Interface":"internal"},
 {"Service Name":"barbican","URL":"https://10.12.12.51:9311","Interface":"internal"},
 {"Service Name":"image-stream","URL":"http://10.12.8.166:8080","Interface":"internal"}
]
JSON
  exit 0
fi
exit 0
