Add tests for every command

This commit is contained in:
Loïc Guitaut
2015-09-08 14:47:52 +02:00
parent cc5c7fee25
commit bd2bad8e1a
19 changed files with 416 additions and 31 deletions

View File

@@ -47,6 +47,15 @@ case "$1" in
exit 0
fi
if [[ $@ =~ \{\{\.State\..*\}\} ]]; then
if [[ $@ =~ \{\{\.State\.Running\}\} ]]; then
echo "true"
else
echo "false"
fi
exit 0
fi
# running
echo "true"
;;
@@ -66,6 +75,9 @@ case "$1" in
pull)
exit 0
;;
logs)
echo "1:M 08 Sep 07:36:43.544 # Server started, Redis version 3.0.3"
;;
*)
exit "$DOKKU_NOT_IMPLEMENTED_EXIT"
;;