1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-03-03 15:02:35 +02:00

Test failure case RFC upload ChangeManagement

This commit is contained in:
Marcus Holl 2019-01-31 09:39:34 +01:00
parent 80c7da76f4
commit 06f48ce5e7

View File

@ -276,6 +276,29 @@ public void testGetCommandLineWithCMClientOpts() {
assertThat(script.shell, contains('cts uploadToABAP:002'))
}
@Test
public void testUploadFileToTransportFailsRFC() {
thrown.expect(ChangeManagementException)
thrown.expectMessage('Cannot upload file into transport request. Return code from rfc client: 1.')
script.setReturnValue('cts uploadToABAP:002', 1)
new ChangeManagement(nullScript).uploadFileToTransportRequestRFC(
'rfc',
[],
'002', //transportRequestId
'001', // applicationId
'https://example.org/mypath/deployArtifact.zip',
'https://example.org/rfc',
'me',
'01', //developmentInstance
'00', // developmentClient
'Lorem ipsum', // applicationDescription
'XYZ' // abapPackage
)
}
@Test
public void testUploadFileToTransportFailsSOLMAN() {