mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-01-18 05:18:24 +02:00
transportRequestRelease sanity checks for SOLMAN case.
This commit is contained in:
parent
663b840dee
commit
608b76f1c8
@ -53,7 +53,7 @@ public class TransportRequestReleaseTest extends BasePiperTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void changeIdNotProvidedTest() {
|
||||
public void changeDocumentIdNotProvidedSOLMANTest() {
|
||||
|
||||
ChangeManagement cm = new ChangeManagement(nullScript) {
|
||||
String getChangeDocumentId(String from,
|
||||
@ -278,6 +278,28 @@ public class TransportRequestReleaseTest extends BasePiperTest {
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void releaseTransportRequestSanityChecksSOLMANTest() {
|
||||
|
||||
thrown.expect(IllegalArgumentException)
|
||||
thrown.expectMessage(allOf(
|
||||
containsString('ERROR - NO VALUE AVAILABLE FOR'),
|
||||
containsString('changeManagement/endpoint')))
|
||||
|
||||
// changeDocumentId and transportRequestId are not checked
|
||||
// by the sanity checks here since they are looked up from
|
||||
// commit history in case they are not provided.
|
||||
|
||||
nullScript
|
||||
.commonPipelineEnvironment
|
||||
.configuration = null
|
||||
|
||||
stepRule.step.transportRequestRelease(
|
||||
script: nullScript,
|
||||
changeManagement: [type: 'SOLMAN']
|
||||
)
|
||||
}
|
||||
|
||||
@Test
|
||||
public void releaseTransportRequestSanityChecksRFCTest() {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user