generated from hmcts/spring-boot-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PO-661 created additional users in Opal to match those created in Leg…
…acy GoB to use to test more scenarios
- Loading branch information
1 parent
3f19fa0
commit 58ce4a8
Showing
4 changed files
with
1,064 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
src/main/resources/db/migration/V20240828_238__increase_user_description.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* OPAL Program | ||
* | ||
* MODULE : increase_user_description.sql | ||
* | ||
* DESCRIPTION : Increase the size of the description column in USERS table to allow for more details of what the user can do. | ||
* | ||
* VERSION HISTORY: | ||
* | ||
* Date Author Version Nature of Change | ||
* ---------- ------- -------- --------------------------------------------------------------------------------------------------------- | ||
* 28/08/2024 A Dennis 1.0 PO-661 Increase the size of the description column in USERS table to allow for more details of what the user can do. | ||
* | ||
**/ | ||
ALTER TABLE USERS | ||
ALTER COLUMN description TYPE varchar(300); |
163 changes: 163 additions & 0 deletions
163
src/main/resources/db/migration/V20240828_239__create_additional_users.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,163 @@ | ||
/** | ||
* OPAL Program | ||
* | ||
* MODULE : create_additional_users.sql | ||
* | ||
* DESCRIPTION : Create more users to enable us have different users with business units to test more scenarios. Some of these are users that also exist in Legacy GoB. | ||
* | ||
* VERSION HISTORY: | ||
* | ||
* Date Author Version Nature of Change | ||
* ---------- ------- -------- --------------------------------------------------------------------------------------------------------- | ||
* 28/08/2024 A Dennis 1.0 PO-661 Inserts rows of data into the USERS table. These are users that also exist in Legacy GoB. | ||
* | ||
**/ | ||
INSERT INTO users | ||
( | ||
user_id | ||
,username | ||
,password | ||
,description | ||
) | ||
VALUES | ||
( | ||
500000004 | ||
,'opal-test-5@HMCTS.NET' | ||
,'5N1VKPdZbc34capVz8zFPA==!' | ||
,'Recreating in Opal a User that belongs to Dyfed Powys business unit in Legacy GoB' | ||
); | ||
|
||
INSERT INTO users | ||
( | ||
user_id | ||
,username | ||
,password | ||
,description | ||
) | ||
VALUES | ||
( | ||
500000005 | ||
,'opal-test-6@HMCTS.NET' | ||
,'40CEMsGkilL7bHTZJrOIhg==!' | ||
,'Recreating in Opal a User that belongs to North Wales business unit in Legacy GoB' | ||
); | ||
|
||
INSERT INTO users | ||
( | ||
user_id | ||
,username | ||
,password | ||
,description | ||
) | ||
VALUES | ||
( | ||
500000006 | ||
,'opal-test-7@HMCTS.NET' | ||
,'N4oGO4/bHblB409L3lhMfQ==!' | ||
,'Recreating in Opal a User that belongs to Gwent business unit in Legacy GoB' | ||
); | ||
|
||
INSERT INTO users | ||
( | ||
user_id | ||
,username | ||
,password | ||
,description | ||
) | ||
VALUES | ||
( | ||
500000007 | ||
,'opal-test-8@HMCTS.NET' | ||
,'J3p4/AXIhkoXDppWzuq8TA==!' | ||
,'Recreating in Opal a User that belongs to South Wales business unit in Legacy GoB' | ||
); | ||
|
||
INSERT INTO users | ||
( | ||
user_id | ||
,username | ||
,password | ||
,description | ||
) | ||
VALUES | ||
( | ||
500000008 | ||
,'opal-test-9@HMCTS.NET' | ||
,'138Adm/Tvj8hichDpq8/sg==!' | ||
,'Recreating in Opal a User that belongs to Greater Manchester and North West Confiscation Unit business units in Legacy GoB' | ||
); | ||
|
||
INSERT INTO users | ||
( | ||
user_id | ||
,username | ||
,password | ||
,description | ||
) | ||
VALUES | ||
( | ||
500000009 | ||
,'opal-test-10@HMCTS.NET' | ||
,'Wn+WPl4FBHQMOmsQu21PpQ==!' | ||
,'Recreating in Opal a User that belongs to 7 London business units in Legacy GoB' | ||
); | ||
|
||
INSERT INTO users | ||
( | ||
user_id | ||
,username | ||
,password | ||
,description | ||
) | ||
VALUES | ||
( | ||
500000010 | ||
,'opal-test-11@HMCTS.NET' | ||
,NULL | ||
,'NOT YET IN BUSINESS UNITS' | ||
); | ||
|
||
INSERT INTO users | ||
( | ||
user_id | ||
,username | ||
,password | ||
,description | ||
) | ||
VALUES | ||
( | ||
500000011 | ||
,'opal-test-12@HMCTS.NET' | ||
,NULL | ||
,'NOT YET IN BUSINESS UNITS' | ||
); | ||
|
||
INSERT INTO users | ||
( | ||
user_id | ||
,username | ||
,password | ||
,description | ||
) | ||
VALUES | ||
( | ||
500000012 | ||
,'opal-test-13@HMCTS.NET' | ||
,NULL | ||
,'NOT YET IN BUSINESS UNITS' | ||
); | ||
|
||
INSERT INTO users | ||
( | ||
user_id | ||
,username | ||
,password | ||
,description | ||
) | ||
VALUES | ||
( | ||
500000013 | ||
,'opal-test-14@HMCTS.NET' | ||
,NULL | ||
,'NOT YET IN BUSINESS UNITS' | ||
); |
183 changes: 183 additions & 0 deletions
183
src/main/resources/db/migration/V20240828_240__create_additional_bus_unit_users.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,183 @@ | ||
/** | ||
* OPAL Program | ||
* | ||
* MODULE : create_additional_bus_unit_users.sql | ||
* | ||
* DESCRIPTION : Inserts rows of data into the BUSINESS_UNIT_USERS table to match that in Legacy GoB. | ||
* | ||
* VERSION HISTORY: | ||
* | ||
* Date Author Version Nature of Change | ||
* ---------- ------- -------- --------------------------------------------------------------------------------------------------------- | ||
* 28/08/2024 A Dennis 1.0 PO-661 Inserts rows of data into the BUSINESS_UNIT_USERS table to match that in Legacy GoB | ||
* | ||
**/ | ||
|
||
INSERT INTO BUSINESS_UNIT_USERS | ||
( | ||
business_unit_user_id | ||
,business_unit_id | ||
,user_id | ||
) | ||
VALUES | ||
( | ||
'L060FO' | ||
,53 | ||
,500000004 | ||
); | ||
|
||
INSERT INTO BUSINESS_UNIT_USERS | ||
( | ||
business_unit_user_id | ||
,business_unit_id | ||
,user_id | ||
) | ||
VALUES | ||
( | ||
'L106CO' | ||
,78 | ||
,500000005 | ||
); | ||
|
||
INSERT INTO BUSINESS_UNIT_USERS | ||
( | ||
business_unit_user_id | ||
,business_unit_id | ||
,user_id | ||
) | ||
VALUES | ||
( | ||
'L089BO' | ||
,58 | ||
,500000006 | ||
); | ||
|
||
INSERT INTO BUSINESS_UNIT_USERS | ||
( | ||
business_unit_user_id | ||
,business_unit_id | ||
,user_id | ||
) | ||
VALUES | ||
( | ||
'L036DO' | ||
,85 | ||
,500000007 | ||
); | ||
|
||
INSERT INTO BUSINESS_UNIT_USERS | ||
( | ||
business_unit_user_id | ||
,business_unit_id | ||
,user_id | ||
) | ||
VALUES | ||
( | ||
'L045EO' | ||
,57 | ||
,500000008 | ||
); | ||
|
||
INSERT INTO BUSINESS_UNIT_USERS | ||
( | ||
business_unit_user_id | ||
,business_unit_id | ||
,user_id | ||
) | ||
VALUES | ||
( | ||
'L082EO' | ||
,79 | ||
,500000008 | ||
); | ||
|
||
INSERT INTO BUSINESS_UNIT_USERS | ||
( | ||
business_unit_user_id | ||
,business_unit_id | ||
,user_id | ||
) | ||
VALUES | ||
( | ||
'L065AO' | ||
,70 | ||
,500000009 | ||
); | ||
|
||
INSERT INTO BUSINESS_UNIT_USERS | ||
( | ||
business_unit_user_id | ||
,business_unit_id | ||
,user_id | ||
) | ||
VALUES | ||
( | ||
'L066AO' | ||
,68 | ||
,500000009 | ||
); | ||
|
||
INSERT INTO BUSINESS_UNIT_USERS | ||
( | ||
business_unit_user_id | ||
,business_unit_id | ||
,user_id | ||
) | ||
VALUES | ||
( | ||
'L067AO' | ||
,73 | ||
,500000009 | ||
); | ||
|
||
INSERT INTO BUSINESS_UNIT_USERS | ||
( | ||
business_unit_user_id | ||
,business_unit_id | ||
,user_id | ||
) | ||
VALUES | ||
( | ||
'L073AO' | ||
,71 | ||
,500000009 | ||
); | ||
|
||
INSERT INTO BUSINESS_UNIT_USERS | ||
( | ||
business_unit_user_id | ||
,business_unit_id | ||
,user_id | ||
) | ||
VALUES | ||
( | ||
'L077AO' | ||
,67 | ||
,500000009 | ||
); | ||
|
||
INSERT INTO BUSINESS_UNIT_USERS | ||
( | ||
business_unit_user_id | ||
,business_unit_id | ||
,user_id | ||
) | ||
VALUES | ||
( | ||
'L078AO' | ||
,69 | ||
,500000009 | ||
); | ||
|
||
INSERT INTO BUSINESS_UNIT_USERS | ||
( | ||
business_unit_user_id | ||
,business_unit_id | ||
,user_id | ||
) | ||
VALUES | ||
( | ||
'L080AO' | ||
,61 | ||
,500000009 | ||
); |
Oops, something went wrong.