diff options
Diffstat (limited to 'usecaseui-portal')
-rw-r--r-- | usecaseui-portal/src/app/mock/json/DELETE_uui-lcm_deleteNsdPackage.json (renamed from usecaseui-portal/src/app/mock/json/uui-lcm_deleteNsdPackage.json) | 0 | ||||
-rw-r--r-- | usecaseui-portal/src/app/mock/json/DELETE_uui-lcm_deletePnfPackage.json (renamed from usecaseui-portal/src/app/mock/json/uui-lcm_deletePnfPackage.json) | 0 | ||||
-rw-r--r-- | usecaseui-portal/src/app/mock/json/DELETE_uui-lcm_deleteVnfPackage.json (renamed from usecaseui-portal/src/app/mock/json/uui-lcm_deleteVnfPackage.json) | 0 | ||||
-rw-r--r-- | usecaseui-portal/src/app/mock/routes.js | 3 | ||||
-rw-r--r-- | usecaseui-portal/src/app/mock/server.js | 4 |
5 files changed, 6 insertions, 1 deletions
diff --git a/usecaseui-portal/src/app/mock/json/uui-lcm_deleteNsdPackage.json b/usecaseui-portal/src/app/mock/json/DELETE_uui-lcm_deleteNsdPackage.json index 41c06ec5..41c06ec5 100644 --- a/usecaseui-portal/src/app/mock/json/uui-lcm_deleteNsdPackage.json +++ b/usecaseui-portal/src/app/mock/json/DELETE_uui-lcm_deleteNsdPackage.json diff --git a/usecaseui-portal/src/app/mock/json/uui-lcm_deletePnfPackage.json b/usecaseui-portal/src/app/mock/json/DELETE_uui-lcm_deletePnfPackage.json index 41c06ec5..41c06ec5 100644 --- a/usecaseui-portal/src/app/mock/json/uui-lcm_deletePnfPackage.json +++ b/usecaseui-portal/src/app/mock/json/DELETE_uui-lcm_deletePnfPackage.json diff --git a/usecaseui-portal/src/app/mock/json/uui-lcm_deleteVnfPackage.json b/usecaseui-portal/src/app/mock/json/DELETE_uui-lcm_deleteVnfPackage.json index 41c06ec5..41c06ec5 100644 --- a/usecaseui-portal/src/app/mock/json/uui-lcm_deleteVnfPackage.json +++ b/usecaseui-portal/src/app/mock/json/DELETE_uui-lcm_deleteVnfPackage.json diff --git a/usecaseui-portal/src/app/mock/routes.js b/usecaseui-portal/src/app/mock/routes.js index 07bbe3c8..29d7c008 100644 --- a/usecaseui-portal/src/app/mock/routes.js +++ b/usecaseui-portal/src/app/mock/routes.js @@ -68,6 +68,9 @@ module.exports = "/vnfpkgm/v1/vnf_packages/:vnfPkgId/package_content": "/nsd_content", "/nsd/v1/pnf_descriptors/:pnfdInfoId/pnfd_content": "/nsd_content", "/uui-lcm/jobs/:_jobId": "/uui-lcm_jobs_progress", + "/DELETE/uui-lcm/deleteNsdPackage?nsdInfoId:id": "/DELETE_uui-lcm_deleteNsdPackage", + "/DELETE/uui-lcm/deleteVnfPackage?vnfPkgId:id": "/DELETE_uui-lcm_deleteVnfPackage", + "/DELETE/uui-lcm/deletePnfPackage?pnfdInfoId:id": "/DELETE_uui-lcm_deletePnfPackage", ///////////////////////// diff --git a/usecaseui-portal/src/app/mock/server.js b/usecaseui-portal/src/app/mock/server.js index b603523f..eef7df16 100644 --- a/usecaseui-portal/src/app/mock/server.js +++ b/usecaseui-portal/src/app/mock/server.js @@ -101,7 +101,9 @@ server.put(`${baseUrl}/*`, (req, res, next) => { next(); }) server.delete(`${baseUrl}/*`, (req, res, next) => { - console.log("===delete😑") + const prefix = req.url.replace(baseUrl, ""); + req.url = `${baseUrl}/DELETE${prefix}`; + req.method = 'GET'; next(); }) |