ha-core/tests/auth/providers/test_command_line_cmd.sh

13 lines
221 B
Bash
Executable File

#!/bin/sh
if [ "$username" = "good-user" ] && [ "$password" = "good-pass" ]; then
echo "Auth should succeed." >&2
if [ "$1" = "--with-meta" ]; then
echo "name=Bob"
fi
exit 0
fi
echo "Auth should fail." >&2
exit 1