From 397fb1c066ede6b491c922bc976c9e50247d469a Mon Sep 17 00:00:00 2001 From: thuva4 Date: Thu, 8 Feb 2018 14:41:05 +0530 Subject: Fix the authenticate=false in scenario fix authetication issue in scenario page add tests Change-Id: I5d1457c4fde7c803459352223b1dfb2f970212df Signed-off-by: thuva4 --- .../ui/components/scenarios/scenario/scenario.html | 23 ++++++++-------------- .../scenarios/scenario/scenarioController.js | 4 ++-- 2 files changed, 10 insertions(+), 17 deletions(-) (limited to 'testapi/opnfv_testapi/ui/components/scenarios') diff --git a/testapi/opnfv_testapi/ui/components/scenarios/scenario/scenario.html b/testapi/opnfv_testapi/ui/components/scenarios/scenario/scenario.html index 328a5e6..2a73e9b 100644 --- a/testapi/opnfv_testapi/ui/components/scenarios/scenario/scenario.html +++ b/testapi/opnfv_testapi/ui/components/scenarios/scenario/scenario.html @@ -24,7 +24,7 @@

Show

-
+
@@ -39,7 +39,7 @@ {{installer.installer}} - + @@ -54,7 +54,7 @@
- +
@@ -68,7 +68,7 @@ {{version.version}} - + @@ -89,7 +89,7 @@
- +
@@ -103,7 +103,7 @@ {{project.project}} - + @@ -134,10 +134,6 @@ - - - @@ -169,9 +165,6 @@ - - - @@ -191,13 +184,13 @@ {{custom}} - + - + diff --git a/testapi/opnfv_testapi/ui/components/scenarios/scenario/scenarioController.js b/testapi/opnfv_testapi/ui/components/scenarios/scenario/scenarioController.js index 53eb13a..9935649 100644 --- a/testapi/opnfv_testapi/ui/components/scenarios/scenario/scenarioController.js +++ b/testapi/opnfv_testapi/ui/components/scenarios/scenario/scenarioController.js @@ -21,7 +21,7 @@ ScenarioController.$inject = [ '$scope', '$http', '$filter', '$state', '$window', '$uibModal', 'testapiApiUrl','raiseAlert', - 'confirmModal' + 'confirmModal', 'authenticate' ]; /** @@ -30,7 +30,7 @@ * through Scenario declared in TestAPI. */ function ScenarioController($scope, $http, $filter, $state, $window, $uibModal, testapiApiUrl, - raiseAlert, confirmModal) { + raiseAlert, confirmModal, authenticate) { var ctrl = this; ctrl.name = $state.params['name']; ctrl.url = testapiApiUrl + '/scenarios?name=' + ctrl.name; -- cgit 1.2.3-korg