From 63af7c7c1b8542baedc66d427eac58df0b631953 Mon Sep 17 00:00:00 2001 From: Marcus Whybrow Date: Mon, 4 Jun 2012 21:52:13 +0100 Subject: [PATCH] Added a test for creating a server after the "miencraft" jar group is present. --- test.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test.sh b/test.sh index 232a3e7..32a9f04 100644 --- a/test.sh +++ b/test.sh @@ -48,6 +48,14 @@ test_create_server_without_any_jargroups() { assertTrue "Server was not created." '[ -d "$SERVER_STORAGE_PATH/example" ]' } +test_create_server_with_jar_groups() { + $SCRIPT jargroup create minecraft "https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft_server.jar" > /dev/null + $SCRIPT server create example > /dev/null + + assertTrue "Server was not created." '[ -d "$SERVER_STORAGE_PATH/example" ]' + assertTrue "Server jar was not linked." '[ -f "$SERVER_STORAGE_PATH/example/$DEFAULT_JAR" ]' +} + # Server Tests # ------------