From 254a4e2017aa732aed402638ae5f9230bf858769 Mon Sep 17 00:00:00 2001 From: Marcus Holl Date: Fri, 13 Jul 2018 13:23:10 +0200 Subject: [PATCH] Remove unused sh registerAllowedMethod registerAllowedMethod for sh call not used anymore since we mock the ChangeManagement utils class. The sh calls was triggered from the utils class. Since we mock that class, there is no sh call anymore. --- test/groovy/TransportRequestCreateTest.groovy | 2 -- test/groovy/TransportRequestReleaseTest.groovy | 2 -- test/groovy/TransportRequestUploadFileTest.groovy | 2 -- 3 files changed, 6 deletions(-) diff --git a/test/groovy/TransportRequestCreateTest.groovy b/test/groovy/TransportRequestCreateTest.groovy index 269b8ec98..66e65668b 100644 --- a/test/groovy/TransportRequestCreateTest.groovy +++ b/test/groovy/TransportRequestCreateTest.groovy @@ -45,8 +45,6 @@ public class TransportRequestCreateTest extends BasePiperTest { } }) - helper.registerAllowedMethod('sh', [Map], { Map m -> return 0 }) - nullScript.commonPipelineEnvironment.configuration = [steps: [transportRequestCreate: [ diff --git a/test/groovy/TransportRequestReleaseTest.groovy b/test/groovy/TransportRequestReleaseTest.groovy index 619556c76..cf74e4fe2 100644 --- a/test/groovy/TransportRequestReleaseTest.groovy +++ b/test/groovy/TransportRequestReleaseTest.groovy @@ -42,8 +42,6 @@ public class TransportRequestReleaseTest extends BasePiperTest { } }) - helper.registerAllowedMethod('sh', [Map], { Map m -> return 0 }) - nullScript.commonPipelineEnvironment.configuration = [steps: [transportRequestRelease: [ diff --git a/test/groovy/TransportRequestUploadFileTest.groovy b/test/groovy/TransportRequestUploadFileTest.groovy index 08ab99eee..75e96525a 100644 --- a/test/groovy/TransportRequestUploadFileTest.groovy +++ b/test/groovy/TransportRequestUploadFileTest.groovy @@ -45,8 +45,6 @@ public class TransportRequestUploadFileTest extends BasePiperTest { } }) - helper.registerAllowedMethod('sh', [Map], { Map m -> return 0 }) - nullScript.commonPipelineEnvironment.configuration = [steps: [transportRequestUploadFile: [