diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2013-10-20 12:43:41 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2013-10-20 12:43:41 +0200 |
commit | d2e3a3795f345fd78ead2cf06b1134b46f9d4bc4 (patch) | |
tree | f688a32d667bc2c44ef994d4a1895911758add61 /test/app-init.bats | |
parent | dc180da2125df5eb8953ee98123ba7d73b676ff6 (diff) | |
download | app.sh-d2e3a3795f345fd78ead2cf06b1134b46f9d4bc4.tar.gz app.sh-d2e3a3795f345fd78ead2cf06b1134b46f9d4bc4.tar.bz2 app.sh-d2e3a3795f345fd78ead2cf06b1134b46f9d4bc4.tar.xz app.sh-d2e3a3795f345fd78ead2cf06b1134b46f9d4bc4.zip |
o Getting app-cat-conf to read from ~/.appconfig too.
Diffstat (limited to 'test/app-init.bats')
-rwxr-xr-x | test/app-init.bats | 25 |
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" +} |