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:
parent
80c7da76f4
commit
06f48ce5e7
@ -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() {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user