diff options
Diffstat (limited to 'test/app-upgrade.bats')
-rwxr-xr-x | test/app-upgrade.bats | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/test/app-upgrade.bats b/test/app-upgrade.bats index 5d79260..4eef351 100755 --- a/test/app-upgrade.bats +++ b/test/app-upgrade.bats @@ -7,35 +7,34 @@ load utils mkzip app-a install_artifact - app init -d my-app maven -r "$FIXED_REPO_URL" org.example:app-a:1.0-SNAPSHOT; echo_lines - eq '$status' 0 + app init -d my-app maven -r "$FIXED_REPO_URL" org.example:app-a:1.0-SNAPSHOT cd my-app - app conf get maven.version - match '${lines[0]}' "1.0-SNAPSHOT" - maven_version="${lines[0]}" app conf get app.version - match '${lines[0]}' "1.0-.*" + eq '${lines[0]}' "1.0-SNAPSHOT" app_version="${lines[0]}" + describe app_version = $app_version app conf get app.resolved_version match '${lines[0]}' "1.0-.*" - eq '${lines[0]}' "$app_version" resolved_version="${lines[0]}" + describe resolved_version = $resolved_version + + app conf get app.installed_version + match '${lines[0]}' "1.0-.*" + installed_version="${lines[0]}" + describe installed_version = $installed_version - describe maven_version=$maven_version - describe app_version=$app_version - describe resolved_version=$resolved_version + eq '$installed_version' "$resolved_version" install_artifact - app upgrade; echo_lines - eq '$status' 0 + app upgrade app conf get app.resolved_version match '${lines[0]}' "1.0-.*" new_resolved_version="${lines[0]}" - describe new_resolved_version=$new_resolved_version - neq $new_resolved_version $resolved_version + describe new_resolved_version = $new_resolved_version + neq $new_resolved_version $resolved_version } |