From 8c02b8bc86c8bab3ebd2310e6682161b3cae975c Mon Sep 17 00:00:00 2001 From: Christopher Fenner Date: Mon, 5 Feb 2018 16:02:59 +0100 Subject: [PATCH] mock step configuration change --- test/groovy/ChecksPublishResultsTest.groovy | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/groovy/ChecksPublishResultsTest.groovy b/test/groovy/ChecksPublishResultsTest.groovy index 2183be67b..7f307a40f 100644 --- a/test/groovy/ChecksPublishResultsTest.groovy +++ b/test/groovy/ChecksPublishResultsTest.groovy @@ -2,6 +2,7 @@ import org.junit.Before import org.junit.Rule import org.junit.Test import org.junit.rules.RuleChain +import org.junit.Ignore import com.lesfurets.jenkins.unit.BasePipelineTest @@ -131,8 +132,9 @@ class ChecksPublishResultsTest extends BasePipelineTest { @Test void testPublishWithChangedStepDefaultSettings() throws Exception { // pmd has been set to active: true in step configuration - stepUnderTest.call() - //TODO: add rule to load different pipeline config + stepUnderTest.call(script: [commonPipelineEnvironment: [ + configuration: [steps: [checksPublishResults: [pmd: [active: true]]]] + ]]) assertTrue("AnalysisPublisher options not set", publisherStepOptions['AnalysisPublisher'] != null) assertTrue("PmdPublisher options not set", publisherStepOptions['PmdPublisher'] != null)