summaryrefslogtreecommitdiffstats
path: root/reporting/pages/app/scripts/factory
diff options
context:
space:
mode:
authorchenjiankun <chenjiankun1@huawei.com>2018-04-21 08:53:03 +0000
committerchenjiankun <chenjiankun1@huawei.com>2018-04-21 09:03:09 +0000
commit6ffbb81ec808aa615c7dad95fe6328ea5cc9c7b5 (patch)
tree0630754b3a6a8bf89c441392ef59d4e83db6c76a /reporting/pages/app/scripts/factory
parentc77cf76cbf31e65aa599f71f33d59abc267b4e50 (diff)
Add testing gating reporting page
Change-Id: I9f46d684a11b7999defffe983fc3224ef1a50412 Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Diffstat (limited to 'reporting/pages/app/scripts/factory')
-rw-r--r--reporting/pages/app/scripts/factory/table.factory.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/reporting/pages/app/scripts/factory/table.factory.js b/reporting/pages/app/scripts/factory/table.factory.js
index e715c5c..a2c5c76 100644
--- a/reporting/pages/app/scripts/factory/table.factory.js
+++ b/reporting/pages/app/scripts/factory/table.factory.js
@@ -6,7 +6,7 @@
angular.module('opnfvApp')
.factory('TableFactory', function($resource, $rootScope, $http) {
- var BASE_URL = 'http://testresults.opnfv.org/reporting2';
+ var BASE_URL = ' http://testresults.opnfv.org/testing';
$.ajax({
url: 'config.json',
async: false,
@@ -15,11 +15,19 @@ angular.module('opnfvApp')
BASE_URL = response.url;
},
error: function (response){
- alert('fail to get api url, using default: http://testresults.opnfv.org/reporting2')
+ alert('fail to get api url, using default: http://testresults.opnfv.org/testing')
}
});
return {
+ getScenarioResult: function() {
+ return $resource(BASE_URL + '/scenarios/results', {'scenario': '@scenario', 'version': '@version', 'installer': '@installer', 'iteration': '@iteration'}, {
+ 'get': {
+ method: 'GET',
+
+ }
+ });
+ },
getFilter: function() {
return $resource(BASE_URL + '/landing-page/filters', {}, {
'get': {