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

add test to prove wrong documentation

This commit is contained in:
weloli 2019-02-12 16:56:06 +01:00
parent 184613a78b
commit e4c73d0100

View File

@ -155,6 +155,20 @@ class CheckChangeInDevelopmentTest extends BasePiperTest {
} }
@Test
public void stageConfigIsConsideredWithParamKeysTest() {
nullScript.commonPipelineEnvironment.configuration = [stages:[hugo:[changeDocumentId:'4711']]]
ChangeManagement cm = getChangeManagementUtils(true, '')
stepRule.step.checkChangeInDevelopment(
script: nullScript,
cmUtils: cm,
changeManagement: [type: 'SOLMAN',
endpoint: 'https://example.org/cm'],
stageName: 'hugo')
}
private ChangeManagement getChangeManagementUtils(boolean inDevelopment, String changeDocumentId = '001') { private ChangeManagement getChangeManagementUtils(boolean inDevelopment, String changeDocumentId = '001') {
return new ChangeManagement(nullScript, null) { return new ChangeManagement(nullScript, null) {