diff options
Diffstat (limited to 'src/test/resources/karatetest/features/02--ServiceOrder.feature')
-rw-r--r-- | src/test/resources/karatetest/features/02--ServiceOrder.feature | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/resources/karatetest/features/02--ServiceOrder.feature b/src/test/resources/karatetest/features/02--ServiceOrder.feature index 4ced372..c621709 100644 --- a/src/test/resources/karatetest/features/02--ServiceOrder.feature +++ b/src/test/resources/karatetest/features/02--ServiceOrder.feature @@ -416,4 +416,23 @@ And match $.orderItem[0].orderMessage[0] contains { code : '102' , field : 'ser Given path 'serviceOrder',serviceOrderId When method get Then status 200 +* call Context.startServers(); + +Scenario: testCheckServiceOrderWithSDCNotRespondingWithoutWiremock +* call Context.stopWiremock(); +Given path 'serviceOrder' +And request data[4] +When method post +Then status 201 +And def serviceOrderId = $.id +Given path 'serviceOrder','test',serviceOrderId +And request $ +When method put +Then status 201 +And match $.id == serviceOrderId +And match $.state == 'rejected' +And match $.orderMessage[0] contains { code : '500' , messageInformation : 'Problem with SDC API' } +Given path 'serviceOrder',serviceOrderId +When method get +Then status 200 * call Context.startServers();
\ No newline at end of file |