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:
parent
184613a78b
commit
e4c73d0100
@ -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') {
|
||||
|
||||
return new ChangeManagement(nullScript, null) {
|
||||
|
Loading…
Reference in New Issue
Block a user