mirror of
https://github.com/SAP/jenkins-library.git
synced 2026-06-19 22:58:55 +02:00
Test for rfc create transport requets fails.
This commit is contained in:
@@ -247,6 +247,41 @@ public class TransportRequestCreateTest extends BasePiperTest {
|
||||
assert loggingRule.log.contains("[INFO] Transport Request '001' has been successfully created.")
|
||||
}
|
||||
|
||||
@Test
|
||||
public void createTransportRequestFailureRFCTest() {
|
||||
|
||||
thrown.expect(AbortException)
|
||||
thrown.expectMessage('upload failed')
|
||||
|
||||
ChangeManagement cm = new ChangeManagement(nullScript) {
|
||||
|
||||
String createTransportRequestRFC(
|
||||
Map docker,
|
||||
String endpoint,
|
||||
String developmentClient,
|
||||
String developmentInstance,
|
||||
String credentialsId,
|
||||
String description) {
|
||||
|
||||
throw new ChangeManagementException('upload failed')
|
||||
}
|
||||
}
|
||||
|
||||
stepRule.step.transportRequestCreate(
|
||||
script: nullScript,
|
||||
changeManagement: [
|
||||
type: 'RFC',
|
||||
rfc: [
|
||||
developmentInstance: '01',
|
||||
developmentClient: '001',
|
||||
],
|
||||
endpoint: 'https://example.org/rfc',
|
||||
],
|
||||
developmentSystemId: '001',
|
||||
description: '',
|
||||
cmUtils: cm)
|
||||
}
|
||||
|
||||
@Test
|
||||
public void cmIntegrationSwichtedOffTest() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user