From 989edff55111db3b457c9e04f3abf296e6ac555c Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 20 Oct 2013 21:55:01 +0200 Subject: o Getting "upgrade" to work with non-SNAPSHOT versions too. o Removing maven.version. o Documenting(!) the different configuration keys and what they mean. --- test/app-init.bats | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'test/app-init.bats') diff --git a/test/app-init.bats b/test/app-init.bats index 3f58890..8ffe1b6 100755 --- a/test/app-init.bats +++ b/test/app-init.bats @@ -56,3 +56,21 @@ load utils # Created by post-install is_directory "my-app/logs" } + +@test "Install 1.0-SNAPSHOT, upgrade to 1.0" { + mkzip app-a + install_artifact + app conf -l user set maven.repo "file://$BATS_TMPDIR/repo" + app init -d my-app maven org.example:app-a:1.0-SNAPSHOT + + cd my-app + app conf set app.version 1.0 + + install_artifact 1.0 + app upgrade + cd current + run pwd -P + + match '${lines[0]}' ".*/versions/1.0/root$" + eq '${#lines[*]}' 1 +} -- cgit v1.2.3