1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00

Do not check return value of step isChangeInDevelopment

This commit is contained in:
Marcus Holl 2018-10-11 09:31:19 +02:00
parent 378f34da76
commit 6dc1f5aa59

View File

@ -40,17 +40,19 @@ class CheckChangeInDevelopmentTest extends BasePiperTest {
public void changeIsInStatusDevelopmentTest() {
ChangeManagement cm = getChangeManagementUtils(true)
boolean inDevelopment = jsr.step.checkChangeInDevelopment(
cmUtils: cm,
changeManagement: [endpoint: 'https://example.org/cm'])
jsr.step.checkChangeInDevelopment(
cmUtils: cm,
changeManagement: [endpoint: 'https://example.org/cm'],
failIfStatusIsNotInDevelopment: true)
assert inDevelopment
assert cmUtilReceivedParams == [
changeId: '001',
endpoint: 'https://example.org/cm',
credentialsId: 'CM',
cmclientOpts: ''
]
// no exception in thrown, so the change is in status 'in development'.
}
@Test