diff options
author | c00149107 <chenchuanyu@huawei.com> | 2017-09-20 16:18:45 +0800 |
---|---|---|
committer | c00149107 <chenchuanyu@huawei.com> | 2017-09-20 16:18:45 +0800 |
commit | 40e54a87c9fa77d4efc0ee0cacc6868b31caea15 (patch) | |
tree | 55abd8235c413e3e8a919f35dc3982f64b726527 /adapters/mso-vfc-adapter/src/test/java | |
parent | 870f0cad8d076f95dc66b2dddd2c2f13d18ff4d1 (diff) |
Add Query Job API UT
Add VF-C adapter UT for query job api
Change-Id: I8b1d1037cb074a08115739574b2c8dc8a6cd3b3d
Issue-ID:SO-133
Signed-off-by: c00149107 <chenchuanyu@huawei.com>
Diffstat (limited to 'adapters/mso-vfc-adapter/src/test/java')
-rw-r--r-- | adapters/mso-vfc-adapter/src/test/java/org/openecomp/mso/adapters/vfc/VfcAdapterTest.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/adapters/mso-vfc-adapter/src/test/java/org/openecomp/mso/adapters/vfc/VfcAdapterTest.java b/adapters/mso-vfc-adapter/src/test/java/org/openecomp/mso/adapters/vfc/VfcAdapterTest.java index f17c7215cf..4dc8fffdc6 100644 --- a/adapters/mso-vfc-adapter/src/test/java/org/openecomp/mso/adapters/vfc/VfcAdapterTest.java +++ b/adapters/mso-vfc-adapter/src/test/java/org/openecomp/mso/adapters/vfc/VfcAdapterTest.java @@ -103,6 +103,8 @@ public class VfcAdapterTest { return getResponse(null); } else if(url.contains("terminate") && methodType.equals(CommonConstant.MethodType.POST)) { return getResponse("terminateNsRsp.json"); + } else if(url.contains("/api/nslcm/v1/jobs") && methodType.equals(CommonConstant.MethodType.GET)) { + return getResponse("queryJobRsp.json"); } else { return null; @@ -202,7 +204,8 @@ public class VfcAdapterTest { @Test public void queryJobTest() { - + mockRestfulUtil(FILE_PATH + "queryJobReq.json"); + vfcAdapter.queryNfvoJobStatus(null, "1"); } /** |