Skip to content

Commit 5958af3

Browse files
authored
Issue LIF-Initiative#796: Add 7 more test users to MDR (LIF-Initiative#806)
##### Description of Change Adds 7 additional test users to MDR for workshop prep. ##### Related Issues Related to #LIF-Initiative#796 ##### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [x] commit message follows commit guidelines (see commitlint.config.mjs) - [ ] tests are included (unit and/or integration tests) - [x] all tests are successful - [ ] documentation is changed or added (in /docs directory) - [ ] code passes linting checks (`uv run ruff check`) - [ ] code passes formatting checks (`uv run ruff format`) - [ ] code passes type checking (`uv run ty check`) - [x] pre-commit hooks have been run successfully - [ ] database schema changes: migration files created and CHANGELOG.md updated - [ ] API changes: base (Python code) documentation in `docs/` and project README updated - [ ] configuration changes: relevant folder README updated - [ ] breaking changes: added to MIGRATION.md with upgrade instructions and CHANGELOG.md entry ##### Type of Change - [x] New feature (non-breaking change which adds functionality) ##### Description of Change Adds 7 additional test users to MDR for workshop prep. ##### Related Issues Related to #LIF-Initiative#796
2 parents ac0fd41 + 78f3216 commit 5958af3

File tree

1 file changed

+65
-3
lines changed

1 file changed

+65
-3
lines changed

bases/lif/mdr_restapi/core.py

Lines changed: 65 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
from fastapi import FastAPI, HTTPException, Request
55
from fastapi.middleware.cors import CORSMiddleware
6-
from passlib.context import CryptContext
7-
from pydantic import BaseModel
8-
96
from lif.mdr_auth.core import AuthMiddleware, create_access_token, create_refresh_token, decode_jwt
107
from lif.mdr_restapi import (
118
attribute_endpoints,
@@ -25,6 +22,8 @@
2522
)
2623
from lif.mdr_utils.config import get_settings
2724
from lif.mdr_utils.logger_config import get_logger
25+
from passlib.context import CryptContext
26+
from pydantic import BaseModel
2827

2928
logger = get_logger(__name__)
3029

@@ -64,6 +63,69 @@
6463
"identifier_type": "SCHOOL_ASSIGNED_NUMBER",
6564
"identifier_type_enum": "SCHOOL_ASSIGNED_NUMBER",
6665
},
66+
{
67+
"username": "Rgreen11Fdemo@stateu.edu",
68+
"password": "$2b$12$pJyJLoYE2QcygmcdEfUhx.7OW1hbo79e3CbrHTyKy7ATJyUPRB4CK", # "liffy4life!"
69+
"firstname": "Renee",
70+
"lastname": "Green",
71+
"identifier": "100004",
72+
"identifier_type": "SCHOOL_ASSIGNED_NUMBER",
73+
"identifier_type_enum": "SCHOOL_ASSIGNED_NUMBER",
74+
},
75+
{
76+
"username": "mhanson_lifdemo@stateu.edu",
77+
"password": "$2b$12$pJyJLoYE2QcygmcdEfUhx.7OW1hbo79e3CbrHTyKy7ATJyUPRB4CK", # "liffy4life!"
78+
"firstname": "Matt",
79+
"lastname": "Hanson",
80+
"identifier": "100005",
81+
"identifier_type": "SCHOOL_ASSIGNED_NUMBER",
82+
"identifier_type_enum": "SCHOOL_ASSIGNED_NUMBER",
83+
},
84+
{
85+
"username": "tthatcher_lifdemo@stateu.edu",
86+
"password": "$2b$12$pJyJLoYE2QcygmcdEfUhx.7OW1hbo79e3CbrHTyKy7ATJyUPRB4CK", # "liffy4life!"
87+
"firstname": "Tracy",
88+
"lastname": "Thatcher",
89+
"identifier": "100006",
90+
"identifier_type": "SCHOOL_ASSIGNED_NUMBER",
91+
"identifier_type_enum": "SCHOOL_ASSIGNED_NUMBER",
92+
},
93+
{
94+
"username": "nsmith_lifdemo@stateu.edu",
95+
"password": "$2b$12$pJyJLoYE2QcygmcdEfUhx.7OW1hbo79e3CbrHTyKy7ATJyUPRB4CK", # "liffy4life!"
96+
"firstname": "Nancy",
97+
"lastname": "Smith",
98+
"identifier": "100007",
99+
"identifier_type": "SCHOOL_ASSIGNED_NUMBER",
100+
"identifier_type_enum": "SCHOOL_ASSIGNED_NUMBER",
101+
},
102+
{
103+
"username": "bwang_lifdemo@stateu.edu",
104+
"password": "$2b$12$pJyJLoYE2QcygmcdEfUhx.7OW1hbo79e3CbrHTyKy7ATJyUPRB4CK", # "liffy4life!"
105+
"firstname": "Ben",
106+
"lastname": "Wang",
107+
"identifier": "100008",
108+
"identifier_type": "SCHOOL_ASSIGNED_NUMBER",
109+
"identifier_type_enum": "SCHOOL_ASSIGNED_NUMBER",
110+
},
111+
{
112+
"username": "gdavis_lifdemo@stateu.edu",
113+
"password": "$2b$12$pJyJLoYE2QcygmcdEfUhx.7OW1hbo79e3CbrHTyKy7ATJyUPRB4CK", # "liffy4life!"
114+
"firstname": "George",
115+
"lastname": "Davis",
116+
"identifier": "100009",
117+
"identifier_type": "SCHOOL_ASSIGNED_NUMBER",
118+
"identifier_type_enum": "SCHOOL_ASSIGNED_NUMBER",
119+
},
120+
{
121+
"username": "cwilliams_lifdemo@stateu.edu",
122+
"password": "$2b$12$pJyJLoYE2QcygmcdEfUhx.7OW1hbo79e3CbrHTyKy7ATJyUPRB4CK", # "liffy4life!"
123+
"firstname": "Caleb",
124+
"lastname": "Williams",
125+
"identifier": "100010",
126+
"identifier_type": "SCHOOL_ASSIGNED_NUMBER",
127+
"identifier_type_enum": "SCHOOL_ASSIGNED_NUMBER",
128+
},
67129
]
68130

69131

0 commit comments

Comments
 (0)