Skip to content

Commit 7dd2b8f

Browse files
Ken LippoldKen Lippold
authored andcommitted
Updated test user credentials.
1 parent 78d6125 commit 7dd2b8f

File tree

2 files changed

+67
-3
lines changed

2 files changed

+67
-3
lines changed

tests/fixtures/test_users.yaml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,108 +4,172 @@
44
fields:
55
is_superuser: false
66
username: owner@example.com
7+
password: pbkdf2_sha256$1000000$5hlTouS1PExEFnezs4ux79$Hqf+Qtoqs7f4F1FbzUxy51UHHLwxiKmLefz1pvEaqUo=
78
first_name: Owner
89
last_name: Johnson
910
is_staff: false
1011
is_active: true
1112
email: owner@example.com
1213
user_type: Other
1314
is_ownership_allowed: true
15+
- model: account.emailaddress
16+
pk: 1000000010
17+
fields:
18+
email: owner@example.com
19+
verified: True
20+
primary: True
21+
user: 1000000010
1422

1523
# Editor User
1624
- model: iam.user
1725
pk: 1000000011
1826
fields:
1927
is_superuser: false
2028
username: editor@example.com
29+
password: pbkdf2_sha256$1000000$qUOZEK7xbv3w0U5L5XBt3A$Nzwxa9Kbe0jP1OgksrtMRLIObZT9I3mig37xyDWQYZg=
2130
first_name: Editor
2231
last_name: Smith
2332
is_staff: false
2433
is_active: true
2534
email: editor@example.com
2635
user_type: Other
2736
is_ownership_allowed: true
37+
- model: account.emailaddress
38+
pk: 1000000011
39+
fields:
40+
email: editor@example.com
41+
verified: True
42+
primary: True
43+
user: 1000000011
2844

2945
# Viewer User
3046
- model: iam.user
3147
pk: 1000000012
3248
fields:
3349
is_superuser: false
3450
username: viewer@example.com
51+
password: pbkdf2_sha256$1000000$ZymYcCtlW67vvLnmYmbw4q$O2mDQSJ1Mtfq6AbxeMOYFxHQTDVYlrVnojBGyXk5sW0=
3552
first_name: Viewer
3653
last_name: Davis
3754
is_staff: false
3855
is_active: true
3956
email: viewer@example.com
4057
user_type: Other
4158
is_ownership_allowed: true
59+
- model: account.emailaddress
60+
pk: 1000000012
61+
fields:
62+
email: viewer@example.com
63+
verified: True
64+
primary: True
65+
user: 1000000012
4266

4367
# Anonymous User
4468
- model: iam.user
4569
pk: 1000000013
4670
fields:
4771
is_superuser: false
4872
username: anonymous@example.com
73+
password: pbkdf2_sha256$1000000$A8KhP3kiM7tvnFfoAKF0uu$B0iS+o7eanH7nDF0coOzwA0DHo/VFii4DJd1szBRJP4=
4974
first_name: Anonymous
5075
last_name: Anderson
5176
is_staff: false
5277
is_active: true
5378
email: anonymous@example.com
5479
user_type: Other
5580
is_ownership_allowed: true
81+
- model: account.emailaddress
82+
pk: 1000000013
83+
fields:
84+
email: anonymous@example.com
85+
verified: True
86+
primary: True
87+
user: 1000000013
5688

5789
# Limited User
5890
- model: iam.user
5991
pk: 1000000015
6092
fields:
6193
is_superuser: false
6294
username: limited@example.com
95+
password: pbkdf2_sha256$1000000$pN5OkI15omzBE2tSYTLMJh$R3yhQzzQw7ZcuLNybOyqqqdu0ChS3tOmltnSUAFCHek=
6396
first_name: Limited
6497
last_name: Taylor
6598
is_staff: false
6699
is_active: true
67100
email: limited@example.com
68101
user_type: Other
69102
is_ownership_allowed: false
103+
- model: account.emailaddress
104+
pk: 1000000015
105+
fields:
106+
email: limited@example.com
107+
verified: True
108+
primary: True
109+
user: 1000000015
70110

71111
# Inactive User
72112
- model: iam.user
73113
pk: 1000000016
74114
fields:
75115
is_superuser: false
76116
username: inactive@example.com
117+
password: pbkdf2_sha256$1000000$AmmDeIdyFTBzWdri65ZszV$aEEhAv4djrnvNqDZbvlM3OYBK29ec8LRbMHgK3bacg0=
77118
first_name: Inactive
78119
last_name: Wilson
79120
is_staff: false
80121
is_active: false
81122
email: inactive@example.com
82123
user_type: Other
83124
is_ownership_allowed: false
125+
- model: account.emailaddress
126+
pk: 1000000016
127+
fields:
128+
email: inactive@example.com
129+
verified: True
130+
primary: True
131+
user: 1000000016
84132

85133
# Admin User
86134
- model: iam.user
87135
pk: 1000000017
88136
fields:
89137
is_superuser: true
90138
username: admin@example.com
139+
password: pbkdf2_sha256$1000000$suwpesjNpOTFLtVFN30dQo$cHt4NhKPhuQtHRxEG9Hf2Z79I6z/QM3GqPNh3aFT6V0=
91140
first_name: Admin
92141
last_name: Thomas
93142
is_staff: true
94143
is_active: true
95144
email: admin@example.com
96145
user_type: Other
97146
is_ownership_allowed: true
147+
- model: account.emailaddress
148+
pk: 1000000017
149+
fields:
150+
email: admin@example.com
151+
verified: True
152+
primary: True
153+
user: 1000000017
98154

99155
# Staff User
100156
- model: iam.user
101157
pk: 1000000018
102158
fields:
103159
is_superuser: false
104160
username: staff@example.com
161+
password: pbkdf2_sha256$1000000$k273KDCDWv31eObH1RqR6f$FDPzSvsBBfVWLo+tnh+x31mxvsf9tIZzHsqpKQ1SNJY=
105162
first_name: Staff
106163
last_name: Lee
107164
is_staff: true
108165
is_active: true
109166
email: staff@example.com
110167
user_type: Other
111168
is_ownership_allowed: true
169+
- model: account.emailaddress
170+
pk: 1000000018
171+
fields:
172+
email: staff@example.com
173+
verified: True
174+
primary: True
175+
user: 1000000018

tests/iam/services/test_account.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ def test_update_account(get_user, user, account_data):
5454

5555

5656
@pytest.mark.parametrize("user, max_queries", [
57-
("owner", 31),
58-
("admin", 28),
59-
("limited", 28),
57+
("owner", 33),
58+
("admin", 30),
59+
("limited", 30),
6060
])
6161
def test_delete_account(django_assert_max_num_queries, get_user, user, max_queries):
6262
with django_assert_max_num_queries(max_queries):

0 commit comments

Comments
 (0)