Commit a8ee7fb
committed
Fix pw check logic in accountreq and useradm which was previously inadvertently
inverted. Rename var to pw_match for consistence.
Fix string corruption in pickled MiG-user.db fixture file to allow proper use
of password_hash values.
Refactor the accountreq unit test module to split into peers testing and filter
testing with shared init of users in the latter, too. Relies on the pickled
user db from fixtures now. Add test coverage on account renewal for pw check
and ID collision.
Still acouple of TODOs with test coverage of suspended accounts and the
a password to match the pickled hash.1 parent 946da5d commit a8ee7fb
File tree
3 files changed
+173
-116
lines changed- tests
3 files changed
+173
-116
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1240 | 1240 | | |
1241 | 1241 | | |
1242 | 1242 | | |
1243 | | - | |
1244 | | - | |
| 1243 | + | |
| 1244 | + | |
1245 | 1245 | | |
1246 | | - | |
| 1246 | + | |
1247 | 1247 | | |
1248 | 1248 | | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
1249 | 1252 | | |
1250 | 1253 | | |
1251 | 1254 | | |
1252 | 1255 | | |
1253 | 1256 | | |
1254 | | - | |
| 1257 | + | |
1255 | 1258 | | |
1256 | 1259 | | |
1257 | 1260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
462 | | - | |
| 462 | + | |
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
| |||
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
574 | | - | |
| 574 | + | |
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
579 | | - | |
| 579 | + | |
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
| |||
1062 | 1062 | | |
1063 | 1063 | | |
1064 | 1064 | | |
1065 | | - | |
1066 | | - | |
1067 | | - | |
1068 | | - | |
1069 | | - | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
1070 | 1070 | | |
1071 | 1071 | | |
1072 | 1072 | | |
| |||
1095 | 1095 | | |
1096 | 1096 | | |
1097 | 1097 | | |
1098 | | - | |
| 1098 | + | |
1099 | 1099 | | |
1100 | 1100 | | |
1101 | 1101 | | |
| |||
0 commit comments