summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-02-01 12:39:32 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-02-01 12:39:32 +0530
commit0b09ca26c00330d5d4b7e92d3db2615a65a36fdf (patch)
tree4cf19fb7518b8eecc74540a5a3bb460824589e7b
parent2ad4aa2c7ff69f0a8082eaabd47159924b685385 (diff)
Validate service.json loading
Issue-ID: MSB-113 Change-Id: I4036b556eed8166af2ecca32bcc74f6daa40040e Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
-rw-r--r--src/test/resources/service.json14
-rw-r--r--src/test/resources/swagger.properties2
2 files changed, 15 insertions, 1 deletions
diff --git a/src/test/resources/service.json b/src/test/resources/service.json
new file mode 100644
index 0000000..ebf85a1
--- /dev/null
+++ b/src/test/resources/service.json
@@ -0,0 +1,14 @@
+{
+ "serviceName": "sdnovpc",
+ "version": "v1",
+ "url": "/openoapi/sdnovpc/v1",
+ "protocol": "REST",
+ "visualRange": "1",
+ "nodes": [
+ {
+ "ip": "localhost",
+ "port": "8518",
+ "ttl": 0
+ }
+ ]
+} \ No newline at end of file
diff --git a/src/test/resources/swagger.properties b/src/test/resources/swagger.properties
index 77128e2..59a4b19 100644
--- a/src/test/resources/swagger.properties
+++ b/src/test/resources/swagger.properties
@@ -47,5 +47,5 @@ api-host-ip=127.0.0.1
api-host-port=8480
# Set the below file path to service specific configuration file path
-service-config-file-path=etc/adapterInfo/service.json
+service-config-file-path=src/test/resources/service.json