From 0b09ca26c00330d5d4b7e92d3db2615a65a36fdf Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Thu, 1 Feb 2018 12:39:32 +0530 Subject: Validate service.json loading Issue-ID: MSB-113 Change-Id: I4036b556eed8166af2ecca32bcc74f6daa40040e Signed-off-by: Kanagaraj Manickam k00365106 --- src/test/resources/service.json | 14 ++++++++++++++ src/test/resources/swagger.properties | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 src/test/resources/service.json (limited to 'src') 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 -- cgit 1.2.3-korg