summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorromaingimbert <romain.gimbert@orange.com>2019-04-02 13:50:17 +0200
committerromaingimbert <romain.gimbert@orange.com>2019-04-02 13:50:17 +0200
commit0cb3b571ae8cb5cfa4905357c22e223d1b4a8d24 (patch)
treec326ba6972ba59a071927335e0be07fe9d839cfb /src/test
parenta5e02123aea6f24850470a3f54865cfed6540740 (diff)
Update NBI version to 4
-change nbi version to 4.0.0 -change path to v4 Change-Id: Idc35e25fa13625b0916909d5030fcb458561a3fa Issue-ID: EXTAPI-220 Signed-off-by: romaingimbert <romain.gimbert@orange.com>
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/karate-config.js2
-rw-r--r--src/test/resources/karatetest/data/subscriber.json2
-rw-r--r--src/test/resources/karatetest/features/01--ServiceInventory.feature2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/test/java/karate-config.js b/src/test/java/karate-config.js
index f67e555..4b81173 100644
--- a/src/test/java/karate-config.js
+++ b/src/test/java/karate-config.js
@@ -1,6 +1,6 @@
function() {
var config = {
- nbiBaseUrl: 'http://localhost:8080/nbi/api/v3'
+ nbiBaseUrl: 'http://localhost:8080/nbi/api/v4'
};
karate.configure('connectTimeout', 5000);
karate.configure('readTimeout', 5000);
diff --git a/src/test/resources/karatetest/data/subscriber.json b/src/test/resources/karatetest/data/subscriber.json
index 1853952..14dfdb8 100644
--- a/src/test/resources/karatetest/data/subscriber.json
+++ b/src/test/resources/karatetest/data/subscriber.json
@@ -13,7 +13,7 @@
"query": "eventType=ServiceOrderItemStateChangeNotification"
},
{
- "callback": "http://localhost:8080/nbi/api/v3/test/listener",
+ "callback": "http://localhost:8080/nbi/api/v4/test/listener",
"query": "eventType=ServiceOrderStateChangeNotification"
}
] \ No newline at end of file
diff --git a/src/test/resources/karatetest/features/01--ServiceInventory.feature b/src/test/resources/karatetest/features/01--ServiceInventory.feature
index 95f8696..eacbf2f 100644
--- a/src/test/resources/karatetest/features/01--ServiceInventory.feature
+++ b/src/test/resources/karatetest/features/01--ServiceInventory.feature
@@ -20,7 +20,7 @@ And match $.supportingResource == '#[2]'
Scenario: testServiceResourceGetInventoryWithStatus
-Given url 'http://localhost:8080/nbi/api/v3/service/405c8c00-44b9-4303-9f27-6797d22ca096'
+Given path 'service','405c8c00-44b9-4303-9f27-6797d22ca096'
When method get
Then status 200
And match $.state == 'Active'