summaryrefslogtreecommitdiffstats
path: root/adapters/mso-vfc-adapter/src/test/java/org
diff options
context:
space:
mode:
authorc00149107 <chenchuanyu@huawei.com>2017-09-19 16:07:46 +0800
committerc00149107 <chenchuanyu@huawei.com>2017-09-19 16:07:46 +0800
commit870f0cad8d076f95dc66b2dddd2c2f13d18ff4d1 (patch)
tree83034c19e58c564ce50ec8a654865c96ed1bbcd0 /adapters/mso-vfc-adapter/src/test/java/org
parent02def185d8e90385aeefe4ba23ed79942aaff921 (diff)
Add terminate UT for vf-c adapter
Add terminate UT for vf-c adapter api Change-Id: Iab514bb59b112f30e5911fb04c3b9d6672494ae7 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.java8
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 dc07a3cb36..f17c7215cf 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
@@ -101,7 +101,10 @@ public class VfcAdapterTest {
return getResponse("instantiateNsRsp.json");
} else if(methodType.equals(CommonConstant.MethodType.DELETE)) {
return getResponse(null);
- }else {
+ } else if(url.contains("terminate") && methodType.equals(CommonConstant.MethodType.POST)) {
+ return getResponse("terminateNsRsp.json");
+ }
+ else {
return null;
}
}
@@ -193,7 +196,8 @@ public class VfcAdapterTest {
@Test
public void terminateTest() {
-
+ mockRestfulUtil(FILE_PATH + "terminateNsReq.json");
+ vfcAdapter.terminateNfvoNs(null, "9b9f02c0-298b-458a-bc9c-be3692e4f354");
}
@Test