From aea1dbfc9f9a2766a78a12f27de05487f5457b27 Mon Sep 17 00:00:00 2001 From: Alejandra Ferreiro Vidal Date: Tue, 13 Feb 2018 15:06:09 +0100 Subject: [PATCH] String as String not GString --- test/groovy/NeoDeploymentTest.groovy | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/groovy/NeoDeploymentTest.groovy b/test/groovy/NeoDeploymentTest.groovy index 0018644c7..8d0bcc882 100644 --- a/test/groovy/NeoDeploymentTest.groovy +++ b/test/groovy/NeoDeploymentTest.groovy @@ -48,9 +48,9 @@ class NeoDeploymentTest extends BasePipelineTest { propertiesFileName = 'config.properties' archiveName = 'archive.mtar' - tmp.newFile(warArchiveName) << "dummy war archive" - tmp.newFile(propertiesFileName) << "dummy properties file" - tmp.newFile(archiveName) << "dummy archive" + tmp.newFile(warArchiveName) << 'dummy war archive' + tmp.newFile(propertiesFileName) << 'dummy properties file' + tmp.newFile(archiveName) << 'dummy archive' } @Before @@ -78,7 +78,7 @@ class NeoDeploymentTest extends BasePipelineTest { binding.setVariable('env', ['NEO_HOME':'/opt/neo']) - neoDeployScript = loadScript("neoDeploy.groovy").neoDeploy + neoDeployScript = loadScript('neoDeploy.groovy').neoDeploy cpe = loadScript('commonPipelineEnvironment.groovy').commonPipelineEnvironment cpe.configuration = [steps:[neoDeploy: [host: 'test.deploy.host.com', account: 'trialuser123']]] @@ -208,7 +208,7 @@ class NeoDeploymentTest extends BasePipelineTest { void wrongArchivePathProvidedTest() { thrown.expect(AbortException) - thrown.expectMessage("Archive cannot be found") + thrown.expectMessage('Archive cannot be found') neoDeployScript.call(script: [commonPipelineEnvironment: cpe], archivePath: 'wrongArchiveName')