mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-03-03 15:02:35 +02:00
Test for rfc create transport sanity checks.
This commit is contained in:
parent
d5707db38b
commit
66fbed80ba
@ -1,5 +1,10 @@
|
||||
import static org.hamcrest.Matchers.allOf
|
||||
import static org.hamcrest.Matchers.containsString
|
||||
|
||||
import java.util.Map
|
||||
|
||||
import org.hamcrest.Matchers
|
||||
import org.hamcrest.core.StringContains
|
||||
import org.junit.Before
|
||||
import org.junit.Rule
|
||||
import org.junit.Test
|
||||
@ -282,6 +287,21 @@ public class TransportRequestCreateTest extends BasePiperTest {
|
||||
cmUtils: cm)
|
||||
}
|
||||
|
||||
@Test
|
||||
public void createTransportRequestSanityChecksRFCTest() {
|
||||
|
||||
thrown.expect(IllegalArgumentException)
|
||||
thrown.expectMessage(allOf(
|
||||
containsString('changeManagement/rfc/developmentInstance'),
|
||||
containsString('changeManagement/rfc/developmentClient'),
|
||||
))
|
||||
stepRule.step.transportRequestCreate(
|
||||
script: nullScript,
|
||||
changeManagement: [
|
||||
type: 'RFC',
|
||||
])
|
||||
}
|
||||
|
||||
@Test
|
||||
public void cmIntegrationSwichtedOffTest() {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user