1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00

Merge pull request #87 from alejandraferreirovidal/addCustomConfigTest

add custom configuration test to NeoDeploymentTest
This commit is contained in:
Alejandra Ferreiro Vidal 2018-02-19 11:16:35 +01:00 committed by GitHub
commit 1e3c4d90e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -194,6 +194,20 @@ class NeoDeploymentTest extends BasePipelineTest {
}
@Test
void neoHomeFromCustomStepConfigurationTest() {
cpe.configuration = [steps:[neoDeploy: [host: 'test.deploy.host.com', account: 'trialuser123', neoHome: '/step/neo']]]
neoDeployScript.call(script: [commonPipelineEnvironment: cpe],
archivePath: archiveName
)
assert jscr.shell[0].contains('"/step/neo/tools/neo.sh" deploy-mta')
assert jlr.log.contains('[neoDeploy] Neo executable "/step/neo/tools/neo.sh" retrieved from configuration.')
}
@Test
void archiveNotProvidedTest() {