diff options
author | c00149107 <chenchuanyu@huawei.com> | 2017-09-19 15:57:45 +0800 |
---|---|---|
committer | c00149107 <chenchuanyu@huawei.com> | 2017-09-19 15:57:45 +0800 |
commit | 02def185d8e90385aeefe4ba23ed79942aaff921 (patch) | |
tree | 5cf132749d3a65b77923d0cf2a3509ed8476b663 /adapters/mso-vfc-adapter/src/test/java/org | |
parent | 0993c4cc230d8493a2aa0b1a4debee5ede35184f (diff) |
Add UT for delete API
Add UT for delete API of VF-C adapter
Change-Id: I9d7921f1f10bf757687d57a8f010ef8e1e404df5
Issue-ID:SO-133
Signed-off-by: c00149107 <chenchuanyu@huawei.com>
Diffstat (limited to 'adapters/mso-vfc-adapter/src/test/java/org')
-rw-r--r-- | adapters/mso-vfc-adapter/src/test/java/org/openecomp/mso/adapters/vfc/VfcAdapterTest.java | 8 |
1 files changed, 6 insertions, 2 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 1777dea0dc..dc07a3cb36 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 @@ -99,7 +99,9 @@ public class VfcAdapterTest { return getResponse("createNsRsp.json"); } else if(url.contains("instantiate") && methodType.equals(CommonConstant.MethodType.POST)) { return getResponse("instantiateNsRsp.json"); - } else { + } else if(methodType.equals(CommonConstant.MethodType.DELETE)) { + return getResponse(null); + }else { return null; } } @@ -177,7 +179,9 @@ public class VfcAdapterTest { @Test public void deleteTest() { - + // get request + mockRestfulUtil(FILE_PATH + "deleteNsReq.json"); + vfcAdapter.deleteNfvoNs(null, "9b9f02c0-298b-458a-bc9c-be3692e4f354"); } @Test |