From 55b339f77d4944b17a4eeefb8ade6ff5f05a422d Mon Sep 17 00:00:00 2001 From: Matthieu Geerebaert Date: Fri, 10 Jan 2020 16:05:10 +0100 Subject: Add support for HTTPS with self signed certificates Dual port 8080 & 8443 Change-Id: I4acda5a1064a62d663243be810b1e3d3e458e742 Issue-ID: EXTAPI-255 Signed-off-by: MatthieuGeerebaert --- .../resources/karatetest/features/02--ServiceOrder.feature | 4 ++-- .../features/05--ListenerResourceTestTarget.feature | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/test/resources/karatetest/features') diff --git a/src/test/resources/karatetest/features/02--ServiceOrder.feature b/src/test/resources/karatetest/features/02--ServiceOrder.feature index f1ee4bc..f5985a9 100644 --- a/src/test/resources/karatetest/features/02--ServiceOrder.feature +++ b/src/test/resources/karatetest/features/02--ServiceOrder.feature @@ -376,7 +376,7 @@ Then status 204 Scenario: testCheckServiceOrderWithTargetHeader Given path 'serviceOrder' -And header Target = 'http://localhost:8080/nbi/api/v4' +And header Target = targetHeader And request data[0] When method post Then status 201 @@ -384,7 +384,7 @@ And match $.id contains '#notnull' And match $.state == 'acknowledged' And def serviceOrderId = $.id Given path 'serviceOrder',serviceOrderId -And header Target = 'http://localhost:8080/nbi/api/v4' +And header Target = targetHeader When method get Then status 200 diff --git a/src/test/resources/karatetest/features/05--ListenerResourceTestTarget.feature b/src/test/resources/karatetest/features/05--ListenerResourceTestTarget.feature index 52cc91f..6639d37 100644 --- a/src/test/resources/karatetest/features/05--ListenerResourceTestTarget.feature +++ b/src/test/resources/karatetest/features/05--ListenerResourceTestTarget.feature @@ -35,18 +35,18 @@ function(s) { Scenario: testcreateEventSubscription Given path 'hub' -And header Target = 'http://localhost:8080/nbi/api/v4' +And header Target = targetHeader And request data[0] When method post Then status 201 And def hubId = $.id -And header Target = 'http://localhost:8080/nbi/api/v4' +And header Target = targetHeader Given path 'hub',hubId When method get Then status 200 And match hubId == $.id Given path 'hub',hubId -And header Target = 'http://localhost:8080/nbi/api/v4' +And header Target = targetHeader When method delete Then status 204 @@ -56,14 +56,14 @@ Given path 'test/listener' When method delete Then status 204 Given path 'hub' -And header Target = 'http://localhost:8080/nbi/api/v4' +And header Target = targetHeader And request { callback : '#(listenerUrl)' , query : 'eventType = ServiceOrderCreationNotification' } When method post Then status 201 And def hubId = $.id Given path 'serviceOrder' And request serviceOrderData[17] -And header Target = 'http://localhost:8080/nbi/api/v4' +And header Target = targetHeader When method post Then status 201 And def serviceOrderId = $.id @@ -80,7 +80,7 @@ Given path 'serviceOrder',serviceOrderId When method delete Then status 204 Given path 'hub',hubId -And header Target = 'http://localhost:8080/nbi/api/v4' +And header Target = targetHeader When method delete Then status 204 Given path 'test/listener',eventId -- cgit 1.2.3-korg