aboutsummaryrefslogtreecommitdiff
path: root/test/app-init.bats
diff options
context:
space:
mode:
Diffstat (limited to 'test/app-init.bats')
-rwxr-xr-xtest/app-init.bats25
1 files changed, 22 insertions, 3 deletions
diff --git a/test/app-init.bats b/test/app-init.bats
index ebf850c..db681a1 100755
--- a/test/app-init.bats
+++ b/test/app-init.bats
@@ -25,11 +25,11 @@ load utils
app init -d my-app maven -r "file://$BATS_TMPDIR/repo" org.example:app-a:1.0-SNAPSHOT; echo_lines
eq '$status' 0
eq '${lines[0]}' "Resolving Maven version 1.0-SNAPSHOT..."
- match '${lines[1]}' "Resolved version to 1.0-.*"
- match '${lines[2]}' "Downloading org.example:app-a:1.0-.*"
+ match '${lines[1]}' "Resolved version to 1.0-*"
+ match '${lines[2]}' "Downloading org.example:app-a:1.0-*"
eq '${lines[3]}' "Unpacking..."
match '${lines[4]}' "Importing config from versions/1.0-*"
- match '${lines[5]}' "Creating current symlink for version 1.0-.*"
+ match '${lines[5]}' "Creating current symlink for version 1.0-*"
eq '${lines[6]}' "Post install"
eq '${#lines[*]}' 7
@@ -37,3 +37,22 @@ load utils
# Created by post-install
is_directory "my-app/logs"
}
+
+@test "Install release artifact" {
+ mkzip app-a
+ install_artifact 1.0
+
+ app init -d my-app maven -r "file://$BATS_TMPDIR/repo" org.example:app-a:1.0; echo_lines
+ eq '$status' 0
+ match '${lines[0]}' "Resolved version to 1.0"
+ match '${lines[1]}' "Downloading org.example:app-a:1.0-*"
+ eq '${lines[2]}' "Unpacking..."
+ match '${lines[3]}' "Importing config from versions/1.0-*"
+ match '${lines[4]}' "Creating current symlink for version 1.0-*"
+ eq '${lines[5]}' "Post install"
+ eq '${#lines[*]}' 6
+
+ is_directory "my-app/.app"
+ # Created by post-install
+ is_directory "my-app/logs"
+}