diff options
author | chenjiankun <chenjiankun1@huawei.com> | 2017-02-20 09:35:22 +0000 |
---|---|---|
committer | Aric Gardner <agardner@linuxfoundation.org> | 2017-03-03 17:11:47 +0000 |
commit | df42d5ea79517047f128fac992bb85fd70d95c92 (patch) | |
tree | a7b16a542071b5be70293aa2c5dc43e6f6855a73 /utils/test/reporting/pages/app/scripts/factory | |
parent | 3c3a55aaf68c93365fb0210944425300d972dbfd (diff) |
Create Test Reporting landing page
JIRA: RELENG-165
In this patch, I upload the backend code
usage:
docker run -itd -p 8000:8000 -e SERVER_URL=server_ip:8000 opnfv/reporting:<tag>
note: must point SERVER_URL, it is the api server.
visit landing page:
http://server_ip:8000/reporting/index.html
Change-Id: I10121574e0c4b2733a8084c986d7a2746e7ce2a4
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Diffstat (limited to 'utils/test/reporting/pages/app/scripts/factory')
-rw-r--r-- | utils/test/reporting/pages/app/scripts/factory/table.factory.js | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/utils/test/reporting/pages/app/scripts/factory/table.factory.js b/utils/test/reporting/pages/app/scripts/factory/table.factory.js index 22443221e..a2e2aeff0 100644 --- a/utils/test/reporting/pages/app/scripts/factory/table.factory.js +++ b/utils/test/reporting/pages/app/scripts/factory/table.factory.js @@ -4,17 +4,23 @@ * get data factory */ angular.module('opnfvApp') - .factory('TableFactory', function ($resource, $rootScope) { - // var baseUrl = base_Url; + .factory('TableFactory', function($resource, $rootScope) { return { - getFilter: function () { - return $resource(baseUrl + '/', {}, { - 'post': { - method: 'POST', + getFilter: function() { + return $resource(BASE_URL + '/filters', {}, { + 'get': { + method: 'GET', } }); + }, + getScenario: function() { + return $resource(BASE_URL + '/scenarios', {}, { + 'post': { + method: 'POST', + } + }) } }; - }); + });
\ No newline at end of file |