#!/usr/bin/env bash
# fake openstack for the phase-05 verify harness. Replays the `-f value -c <col>`
# output of the list commands the verify uses; the actual --tags/--tag filters are
# baked into which fixture the harness points at.
case "${1:-} ${2:-}" in
"network list") cat "${FIX_NETS:-/dev/null}" ;;
"subnet list") cat "${FIX_SUBS:-/dev/null}" ;;
"security group") cat "${FIX_SGS:-/dev/null}" ;; # 'security group list'
"image list") cat "${FIX_IMGS:-/dev/null}" ;;
esac