summaryrefslogtreecommitdiffstats
path: root/lifecycle-test/src/main/java/org/openo/vnfsdk/lctest/service/business/impl/VnfpackageServiceImpl.java
diff options
context:
space:
mode:
authorluxin <luxin7@huawei.com>2017-04-28 13:24:33 +0800
committerluxin <luxin7@huawei.com>2017-04-28 13:24:33 +0800
commit63e6575a65ef141ce965ae276642e3ebcffa0ba9 (patch)
tree05562f5d1e984fa609cb9810282abe1938d4b8a0 /lifecycle-test/src/main/java/org/openo/vnfsdk/lctest/service/business/impl/VnfpackageServiceImpl.java
parent6475ed53ff8455fed4d4e8c13b7370ab56247da2 (diff)
validate status interface
NFVO-171 Change-Id: Ie7d7d64303cf72f1f2b001799655182da7cbf82a Signed-off-by: luxin <luxin7@huawei.com>
Diffstat (limited to 'lifecycle-test/src/main/java/org/openo/vnfsdk/lctest/service/business/impl/VnfpackageServiceImpl.java')
-rw-r--r--lifecycle-test/src/main/java/org/openo/vnfsdk/lctest/service/business/impl/VnfpackageServiceImpl.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/lifecycle-test/src/main/java/org/openo/vnfsdk/lctest/service/business/impl/VnfpackageServiceImpl.java b/lifecycle-test/src/main/java/org/openo/vnfsdk/lctest/service/business/impl/VnfpackageServiceImpl.java
index 43c418b..e566577 100644
--- a/lifecycle-test/src/main/java/org/openo/vnfsdk/lctest/service/business/impl/VnfpackageServiceImpl.java
+++ b/lifecycle-test/src/main/java/org/openo/vnfsdk/lctest/service/business/impl/VnfpackageServiceImpl.java
@@ -58,6 +58,7 @@ public class VnfpackageServiceImpl implements VnfpackageService {
resJson.put("message", "NS LCM response Error.");
return resJson;
}
+ LOGGER.info("VnfpackageServiceImpl::onboarding rsp:{}", rsp);
return JSONObject.fromObject(rsp);
}
@@ -77,7 +78,31 @@ public class VnfpackageServiceImpl implements VnfpackageService {
resJson.put("message", "NS LCM response Error.");
return resJson;
}
+ LOGGER.info("VnfpackageServiceImpl::queryVnfpackage rsp:{}", rsp);
return rsp;
}
+ /**
+ * <br>
+ *
+ * @param object
+ * @return
+ * @since NFVO 0.5
+ */
+ @Override
+ public JSONObject updatestatus(JSONObject object) {
+ LOGGER.info("VnfpackageServiceImpl::updatestatus:{}", object.toString());
+ Map<String, String> paramsMap = new HashMap<>(3);
+ paramsMap.put("url", UrlConstant.MARKETPLACE_UPDATE_STATUS_URL);
+ paramsMap.put("methodType", RestfulUtil.TYPE_POST);
+ String rsp = RestfulUtil.getRemoteResponseContent(paramsMap, object.toString());
+ if(null == rsp) {
+ JSONObject resJson = new JSONObject();
+ resJson.put("message", "Marketplace response Error.");
+ return resJson;
+ }
+ LOGGER.info("VnfpackageServiceImpl::updatestatus rsp:{}", rsp);
+ return JSONObject.fromObject(rsp);
+ }
+
}