mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-14 11:03:09 +02:00
Test for create transport request via RFC succeeds.
This commit is contained in:
parent
3ea0cb6208
commit
71148faa42
@ -171,6 +171,34 @@ public void testGetCommandLineWithCMClientOpts() {
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCreateTransportRequestRFCSucceeds() {
|
||||
|
||||
script.setReturnValue('cts createTransportRequest', '{"REQUESTID":"XYZK9000004"}')
|
||||
|
||||
def transportRequestId = new ChangeManagement(nullScript).createTransportRequestRFC(
|
||||
'rfc', // docker image
|
||||
[], // docker options
|
||||
'https://example.org/rfc', // endpoint
|
||||
'01', // client
|
||||
'me', // credentialsId
|
||||
'Lorem ipsum' // description
|
||||
)
|
||||
|
||||
assert dockerExecuteRule.dockerParams.dockerImage == 'rfc'
|
||||
|
||||
assert dockerExecuteRule.dockerParams.dockerOptions == [
|
||||
'--env TRANSPORT_DESCRIPTION=Lorem ipsum',
|
||||
'--env ABAP_DEVELOPMENT_CLIENT=01',
|
||||
'--env ABAP_DEVELOPMENT_SERVER=https://example.org/rfc',
|
||||
'--env ABAP_DEVELOPMENT_USER=user',
|
||||
'--env ABAP_DEVELOPMENT_PASSWORD=password'
|
||||
]
|
||||
|
||||
assert transportRequestId == 'XYZK9000004'
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCreateTransportRequestCTSSucceeds() {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user