diff options
author | Serena Feng <feng.xiaowei@zte.com.cn> | 2017-12-25 09:23:00 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-12-25 09:23:00 +0000 |
commit | 304b8eaad63eb7a610adb62f6c97c7a21a2b91fb (patch) | |
tree | 44e832ce1b556736c97b929dfa223daeb8208208 /testapi/opnfv_testapi/ui/Gruntfile.js | |
parent | b0170533b7952112f462ec10cad9791d0342a764 (diff) | |
parent | 5df2ce54e5aaadfb5ade5a94d6b42392bf805cc8 (diff) |
Merge "Implement the CRUD operations for Test cases"
Diffstat (limited to 'testapi/opnfv_testapi/ui/Gruntfile.js')
-rw-r--r-- | testapi/opnfv_testapi/ui/Gruntfile.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/testapi/opnfv_testapi/ui/Gruntfile.js b/testapi/opnfv_testapi/ui/Gruntfile.js index dd116a0..56aaa6e 100644 --- a/testapi/opnfv_testapi/ui/Gruntfile.js +++ b/testapi/opnfv_testapi/ui/Gruntfile.js @@ -14,9 +14,11 @@ module.exports = function (grunt) { base: './', middleware: function(connect, options, middlewares) { middlewares.unshift(function(req, res, next) { - if (req.method.toUpperCase() == 'POST' || req.method.toUpperCase() == "PUT"){ - req.method='GET'; - } + if (req.method.toUpperCase() == 'POST' || req.method.toUpperCase() == "PUT" || + req.method.toUpperCase() == "DELETE") + { + req.method='GET'; + } return next(); }); return middlewares; @@ -113,9 +115,7 @@ module.exports = function (grunt) { noColor: false, coverageDir: '../tests/UI/coverage', args: { - specs: ['../tests/UI/e2e/podsControllerSpec.js', - '../tests/UI/e2e/projectsControllerSpec.js', - '../tests/UI/e2e/projectControllerSpec.js'] + specs: ['../tests/UI/e2e/testCasesControllerSpec.js'] } }, local: { |