summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/ui/Gruntfile.js
diff options
context:
space:
mode:
authorthuva4 <tharma.thuva@gmail.com>2017-12-23 09:26:12 +0530
committerthuva4 <tharma.thuva@gmail.com>2017-12-23 16:07:53 +0530
commit5df2ce54e5aaadfb5ade5a94d6b42392bf805cc8 (patch)
treeb6ab04967f3e4ab77c5f071780bde999d1d88034 /testapi/opnfv_testapi/ui/Gruntfile.js
parent4e98903ccae3363090de8fefb463b64a943b8f9f (diff)
Implement the CRUD operations for Test cases
Created the testcases, testcase pages Remove update, delete buttons in project page. add protractor tests for testcases page. change tabs to spaces Change-Id: Id7d381b13dca4f228bda24fa1abad7c465b5cef7 Signed-off-by: thuva4 <tharma.thuva@gmail.com>
Diffstat (limited to 'testapi/opnfv_testapi/ui/Gruntfile.js')
-rw-r--r--testapi/opnfv_testapi/ui/Gruntfile.js12
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: {