diff options
author | 2017-06-12 09:49:00 -0400 | |
---|---|---|
committer | 2017-06-12 13:42:43 -0400 | |
commit | 627badaf69987c01811c477219fd943757a635f5 (patch) | |
tree | 97df9449a411d1ecf830cc76d8afd6f9b5677bda /ecomp-portal-BE-common-test/src/main/resources | |
parent | ba838f2e13f1e8050c75e68bd3733d56d8f416d5 (diff) |
[PORTAL-16 PORTAL-18] Widget ms; staging
Remove staging repositories from poms.
Add widget microservice code base.
Add portal unit tests.
Repair defects.
Normalize line endings.
Change-Id: Ia5e48da2a3141b352439ecd548cddf918f4df585
Signed-off-by: Christopher Lott (cl778h) <clott@research.att.com>
Diffstat (limited to 'ecomp-portal-BE-common-test/src/main/resources')
-rw-r--r-- | ecomp-portal-BE-common-test/src/main/resources/PopulateTestData.sql | 60 | ||||
-rw-r--r-- | ecomp-portal-BE-common-test/src/main/resources/RemoveTestData.sql | 58 |
2 files changed, 63 insertions, 55 deletions
diff --git a/ecomp-portal-BE-common-test/src/main/resources/PopulateTestData.sql b/ecomp-portal-BE-common-test/src/main/resources/PopulateTestData.sql index 6972ec95..116ba757 100644 --- a/ecomp-portal-BE-common-test/src/main/resources/PopulateTestData.sql +++ b/ecomp-portal-BE-common-test/src/main/resources/PopulateTestData.sql @@ -1,28 +1,32 @@ ----
--- ================================================================================
--- ECOMP Portal
--- ================================================================================
--- Copyright (C) 2017 AT&T Intellectual Property
--- ================================================================================
--- Licensed under the Apache License, Version 2.0 (the "License");
--- you may not use this file except in compliance with the License.
--- You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing, software
--- distributed under the License is distributed on an "AS IS" BASIS,
--- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
--- See the License for the specific language governing permissions and
--- limitations under the License.
--- ================================================================================
----
-insert into fn_user values(99999999,null,null,'test',null,'test',null,null,null,null,null,null,null,'guest',null,null,null,null,true,null,null,null,null,false,null,null,null,
-null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
-insert into fn_user_role values(99999999,1, null,1);
-insert into fn_user_role values(99999999,16, null,1);
-insert into fn_user_role values(99999999,999, null,1);
-insert into fn_user_role values(99999999,1010, null,1);
-insert into fn_menu_functional values(99999999,3,'Network Analytics',5,'http://vm-d2novasdn3.client.research.att.com:8080/d2novasdn-1/welcome.htm','Y',null);
-insert into fn_menu_functional_roles values(99999999, 137,456, 6214);
-insert into fn_menu_favorites values(3, 141);
+--- +-- ================================================================================ +-- ECOMP Portal +-- ================================================================================ +-- Copyright (C) 2017 AT&T Intellectual Property +-- ================================================================================ +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- ================================================================================ +--- +insert into fn_user values(-1,null,null,'test',null,'test',null,null,null,null,null,null,null,'guestT',null,null,null,null,true,null,null,null,null,false,null,null,null, +null,null,null,null,null,null,null,null,null,null,null,null,null,null,null); +insert into fn_user_role values(-1,1, null,1); +insert into fn_user_role values(-1,16, null,1); +insert into fn_user_role values(-1,999, null,1); +insert into fn_user_role values(-1,1010, null,1); +insert into fn_menu_functional values(-1,3,'Network Analytics',5,'http://vm-d2novasdn3.client.research.att.com:8080/d2novasdn-1/welcome.htm','Y',null); +insert into fn_menu_functional_roles values(-1, 137,456, 6214); +insert into fn_menu_favorites values(-1, 141); +insert into ep_web_analytics_source values(-1,1,'test_url','test'); +INSERT INTO ep_notification (notification_ID, is_for_online_users, is_for_all_roles, active_YN, msg_header, msg_description,msg_source,start_time,end_time,priority,creator_ID,created_date) +VALUES ('-1', 'Y', 'N', 'Y', 'CISCO_1921C1_ISR_G2', '{}','aotstm','2017-03-26 12:18:55.0','2017-04-25 12:18:55.0','2',NULL,'2017-04-25 21:18:11.0'); +INSERT INTO ep_role_notification (ID,notification_ID,role_ID,recv_user_id ) VALUES (0,-1,NULL,10) diff --git a/ecomp-portal-BE-common-test/src/main/resources/RemoveTestData.sql b/ecomp-portal-BE-common-test/src/main/resources/RemoveTestData.sql index 158508f7..5a3000a4 100644 --- a/ecomp-portal-BE-common-test/src/main/resources/RemoveTestData.sql +++ b/ecomp-portal-BE-common-test/src/main/resources/RemoveTestData.sql @@ -1,27 +1,31 @@ ----
--- ================================================================================
--- ECOMP Portal
--- ================================================================================
--- Copyright (C) 2017 AT&T Intellectual Property
--- ================================================================================
--- Licensed under the Apache License, Version 2.0 (the "License");
--- you may not use this file except in compliance with the License.
--- You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing, software
--- distributed under the License is distributed on an "AS IS" BASIS,
--- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
--- See the License for the specific language governing permissions and
--- limitations under the License.
--- ================================================================================
----
-delete from fn_user_role where user_id ='99999999';
-delete from ep_user_notification where user_id='99999999';
-delete from fn_audit_log where user_id='99999999';
-delete from fn_user where user_id='99999999';
-delete from fn_menu_functional_roles where id='99999999';
-delete from fn_menu_functional_ancestors where menu_id=99999999;
-delete from fn_menu_functional where menu_id='99999999';
-delete from fn_menu_favorites where user_id=3 and menu_id=141;
+--- +-- ================================================================================ +-- ECOMP Portal +-- ================================================================================ +-- Copyright (C) 2017 AT&T Intellectual Property +-- ================================================================================ +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- ================================================================================ +--- +delete from fn_user_role where user_id =-1; +delete from ep_user_notification where user_id=-1; +delete from fn_audit_log where user_id=-1; +delete from fn_menu_favorites where user_id=-1 and menu_id=141; +delete from fn_user where user_id=-1; +delete from fn_menu_functional_roles where id=-1; +delete from fn_menu_functional_ancestors where menu_id=-1; +delete from fn_menu_functional where menu_id=-1; +delete from fn_menu_favorites where user_id=-1 and menu_id=141; +delete from ep_web_analytics_source where resource_id=-1; +delete from ep_role_notification where notification_ID='-1'; +delete from ep_notification where notification_ID='-1'; |