diff options
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/resources/karatetest/data/subscriber.json | 3 | ||||
-rw-r--r-- | src/test/resources/karatetest/features/03--Subscriber.feature | 18 |
2 files changed, 18 insertions, 3 deletions
diff --git a/src/test/resources/karatetest/data/subscriber.json b/src/test/resources/karatetest/data/subscriber.json index e7c08ad..8fa7370 100644 --- a/src/test/resources/karatetest/data/subscriber.json +++ b/src/test/resources/karatetest/data/subscriber.json @@ -1,16 +1,13 @@ [ { - "id": "id", "callback": "http://localhost:8080/test", "query": "eventType = ServiceOrderCreationNotification" }, { - "id": "id", "callback": "http://localhost/test", "query": "eventType=ServiceOrderStateChangeNotification" }, { - "id": "id", "callback": "http://localhost/test", "query": "eventType=ServiceOrderItemStateChangeNotification" } diff --git a/src/test/resources/karatetest/features/03--Subscriber.feature b/src/test/resources/karatetest/features/03--Subscriber.feature index 0d21ccb..6e4b884 100644 --- a/src/test/resources/karatetest/features/03--Subscriber.feature +++ b/src/test/resources/karatetest/features/03--Subscriber.feature @@ -38,6 +38,24 @@ Given url location When method delete Then status 204 +Scenario: testCreation2SameSubscribers +Given path 'hub' +And request data[0] +When method post +Then status 201 +And def location = responseHeaders['Location'][0] +Given path 'hub' +And request data[0] +When method post +Then status 400 +And match $ contains { message : 'Bad Request'} +Given path 'hub' +When method get +And match $ == '#[1]' +Given url location +When method delete +Then status 204 + Scenario: testGetByIdSubscriber Given path 'hub' And request data[0] |