From 07925f60d5547f3a2052bebfd3b431aedcb67354 Mon Sep 17 00:00:00 2001 From: Richard Tan Date: Mon, 4 Jan 2021 09:07:25 -0800 Subject: [PATCH 1/3] Added navpreet to fixture and emails for the users --- backend/api/fixtures/test/0000_add_users.py | 39 ++++++++++++++++----- 1 file changed, 31 insertions(+), 8 deletions(-) diff --git a/backend/api/fixtures/test/0000_add_users.py b/backend/api/fixtures/test/0000_add_users.py index 552c95e0e..638a463df 100644 --- a/backend/api/fixtures/test/0000_add_users.py +++ b/backend/api/fixtures/test/0000_add_users.py @@ -16,42 +16,65 @@ class AddUsers(OperationalDataScript): "first_name": "Alasdair", "last_name": "Ring", "display_name": "Alasdair Ring", - "username": "AIRING" + "username": "AIRING", + "email": "alasdair.ring@gov.bc.ca", + "keycloak_email": "alasdair.ring@gov.bc.ca" }, { "first_name": "Emily", "last_name": "Hillier", "display_name": "Emily Hillier", - "username": "EMHILLIE" + "username": "EMHILLIE", + "email": "emily.hillier@gov.bc.ca", + "keycloak_email": "emily.hillier@gov.bc.ca" }, { "first_name": "James", "last_name": "Donald", "display_name": "James Donald", - "username": "JADONALD" + "username": "JADONALD", + "email": "james.donald@gov.bc.ca", + "keycloak_email": "james.donald@gov.bc.ca" }, { "first_name": "Katie", "last_name": "Menke", "display_name": "Katie Menke", - "username": "KMENKE" + "username": "KMENKE", + "email": "katie.menke@gov.bc.ca", + "keycloak_email": "katie.menke@gov.bc.ca" }, { "first_name": "Kristin", "last_name": "Lefler", "display_name": "Kristin Lefler", - "username": "KLEFLER" + "username": "KLEFLER", + "email": "kristin.lefler@gov.bc.ca", + "keycloak_email": "kristin.lefler@gov.bc.ca" }, { "first_name": "Kuan", "last_name": "Fan", "display_name": "Kuan Fan", - "username": "KFAN" + "username": "KFAN", + "email": "kuan.fan@gov.bc.ca", + "keycloak_email": "kuan.fan@gov.bc.ca" }, { "first_name": "Richard", "last_name": "Tan", "display_name": "Richard Tan", - "username": "RTAN" + "username": "RTAN", + "email": "richard.tan@gov.bc.ca", + "keycloak_email": "richard.tan@gov.bc.ca" }, { "first_name": "Anton", "last_name": "Coetzer", "display_name": "Anton Coetzer", - "username": "ALCOETZE" + "username": "ALCOETZE", + "email": "anton.coetzer@gov.bc.ca", + "keycloak_email": "anton.coetzer@gov.bc.ca" + }, { + "first_name": "Navpreet", + "last_name": "Grewal", + "display_name": "Navpreet Grewal", + "username": "NXGREWAL", + "email": "Navpreet.X.Grewal@gov.bc.ca", + "keycloak_email": "Navpreet.X.Grewal@gov.bc.ca" }] def check_run_preconditions(self): From 6d419b9a9f0f16affc44c50160e4e268573a5dd7 Mon Sep 17 00:00:00 2001 From: Richard Tan Date: Mon, 4 Jan 2021 09:14:40 -0800 Subject: [PATCH 2/3] Added email and keycloak email as part of the user creation --- backend/api/fixtures/test/0000_add_users.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/api/fixtures/test/0000_add_users.py b/backend/api/fixtures/test/0000_add_users.py index 638a463df..91ad00eac 100644 --- a/backend/api/fixtures/test/0000_add_users.py +++ b/backend/api/fixtures/test/0000_add_users.py @@ -99,6 +99,8 @@ def run(self): last_name=user.get("last_name"), organization=organization, username=user.get("username"), + email=user.get("email"), + keycloak_email=user.get("keycloak_email"), defaults={ "is_active": True, "display_name": user.get("display_name") From 77bd84c8ddd5238bbe93597d242672bbabdd31da Mon Sep 17 00:00:00 2001 From: Richard Tan Date: Mon, 4 Jan 2021 09:43:24 -0800 Subject: [PATCH 3/3] Added molly to fixtures --- backend/api/fixtures/test/0000_add_users.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/backend/api/fixtures/test/0000_add_users.py b/backend/api/fixtures/test/0000_add_users.py index 91ad00eac..53b206302 100644 --- a/backend/api/fixtures/test/0000_add_users.py +++ b/backend/api/fixtures/test/0000_add_users.py @@ -75,6 +75,13 @@ class AddUsers(OperationalDataScript): "username": "NXGREWAL", "email": "Navpreet.X.Grewal@gov.bc.ca", "keycloak_email": "Navpreet.X.Grewal@gov.bc.ca" + }, { + "first_name": "Molly", + "last_name": "Pilchar", + "display_name": "Molly Pilchar", + "username": "MPILCHAR", + "email": "molly.pilchar@gov.bc.ca", + "keycloak_email": "molly.pilchar@gov.bc.ca" }] def check_run_preconditions(self):