mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Added a test for creating a server after the "miencraft" jar group is present.
This commit is contained in:
parent
330bc72d01
commit
63af7c7c1b
8
test.sh
8
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
|
||||
# ------------
|
||||
|
Loading…
Reference in New Issue
Block a user