Simplifies test case for not reinstalling dependencies

This commit is contained in:
Jonas Linde 2017-10-09 15:52:04 +02:00
parent e98947e4ad
commit 4b4faa8fa3
1 changed files with 1 additions and 6 deletions

View File

@ -84,6 +84,7 @@ load test_helpers
@test "plugins are installed with install-plugins.sh even when already exist" {
run docker build -t $SUT_IMAGE-install-plugins-update --no-cache $BATS_TEST_DIRNAME/install-plugins/update
assert_success
assert_line --partial 'Skipping already installed dependency'
assert_line "Using provided plugin: ant"
# replace DOS line endings \r\n
run bash -c "docker run --rm $SUT_IMAGE-install-plugins-update unzip -p /var/jenkins_home/plugins/maven-plugin.jpi META-INF/MANIFEST.MF | tr -d '\r'"
@ -91,12 +92,6 @@ load test_helpers
assert_line 'Plugin-Version: 2.13'
}
@test "dependencies are not installed with install-plugins.sh when they already exist" {
run docker build -t $SUT_IMAGE-install-plugins-update --no-cache $BATS_TEST_DIRNAME/install-plugins/update
assert_success
assert_line --partial 'Skipping already installed dependency'
}
@test "plugins are getting upgraded but not downgraded" {
# Initial execution
run docker build -t $SUT_IMAGE-install-plugins $BATS_TEST_DIRNAME/install-plugins