Skip to content

Commit c8e8034

Browse files
committed
Add a more realistic test user
1 parent 6f94656 commit c8e8034

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

apigw/src/internal/dev-sfi-auth.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function createDevEmployeeSfiRouter(
1818
sessions,
1919
root: '/employee',
2020
loginFormHandler: async (req, res) => {
21-
const defaultSsn = '070644-937X'
21+
const defaultSsn = '060195-966B'
2222

2323
const persons = _.orderBy(
2424
await getVtjPersons(),

service/src/main/resources/dev-data/employees.sql

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ INSERT INTO employee (id, first_name, last_name, email, external_id, active) VAL
1616
('00000000-0000-4000-8005-000000000000', 'Kaisa', 'Kasvattaja', 'kaisa.kasvattaja@espoo.fi', 'espoo-ad:00000000-0000-4000-8005-000000000000', TRUE),
1717
('00000000-0000-4000-8005-000000000001', 'Kalle', 'Kasvattaja', 'kalle.kasvattaja@espoo.fi', 'espoo-ad:00000000-0000-4000-8005-000000000001', TRUE),
1818
('00000000-0000-4000-8006-000000000000', 'Erkki', 'Erityisopettaja', 'erkki.erityisopettaja@espoo.fi', 'espoo-ad:00000000-0000-4000-8006-000000000000', TRUE);
19+
INSERT INTO employee (id, first_name, last_name, social_security_number, active) VALUES
20+
('fdbf9276-c5a9-4092-87f8-6a27521d940a', 'Hannele', 'Finström', '060195-966B', true);
1921

2022
INSERT INTO evaka_user (id, type, employee_id, name)
2123
SELECT id, 'EMPLOYEE', id, last_name || ' ' || first_name
@@ -27,7 +29,8 @@ INSERT INTO daycare_acl (daycare_id, employee_id, role) VALUES
2729
('2dcf0fc0-788e-11e9-bd12-db78e886e666', '00000000-0000-4000-8006-000000000000', 'SPECIAL_EDUCATION_TEACHER'),
2830
('2dd6e5f6-788e-11e9-bd72-9f1cfe2d8405', '00000000-0000-4000-8004-000000000001', 'UNIT_SUPERVISOR'),
2931
('2dd6e5f6-788e-11e9-bd72-9f1cfe2d8405', '00000000-0000-4000-8005-000000000001', 'STAFF'),
30-
('2dd6e5f6-788e-11e9-bd72-9f1cfe2d8405', '00000000-0000-4000-8006-000000000000', 'SPECIAL_EDUCATION_TEACHER');
32+
('2dd6e5f6-788e-11e9-bd72-9f1cfe2d8405', '00000000-0000-4000-8006-000000000000', 'SPECIAL_EDUCATION_TEACHER'),
33+
('2dd6e5f6-788e-11e9-bd72-9f1cfe999999', 'fdbf9276-c5a9-4092-87f8-6a27521d940a', 'UNIT_SUPERVISOR');
3134

3235
INSERT INTO message_account (employee_id, type)
3336
SELECT id, 'PERSONAL'::message_account_type AS type

0 commit comments

Comments
 (0)