Commit a37ea11
authored
Improved coverage and fixed string checks for basic functionality of several of the pwcrypto helpers (#362)
* Add fixed string checks for basic functionality of several of the pwcrypto
helper functions as suggested by @albu-diku in the comments to PR343.
* Adjust `pwcrypto` slightly to support external use of the existing self-tests,
like it's the case e.g. for `userio`, and integrate running it in unit testing.
Added a lot of unit tests to cover almost all functions in `pwcrypto` and to
include more tests of fundamental functionality against fixed known values as
suggested in PR343 discussion.
A few tests will require API changes to pass a random seed to allow that and
have been left as disabled for now with TODO comments added.
* Workaround for pylint failing CI with bogus missing member on rocky9 and latest
stable py3. I can't see why `site_password_legacy_policy` is any different from
e.g. `site_password_policy`, which does NOT trigger the same pylint error :-s
* Make sure the AAD date stamp helper keeps the date input static over time to
prevent tests failing after a while.1 parent d18dbc0 commit a37ea11
File tree
2 files changed
+399
-45
lines changed- tests
2 files changed
+399
-45
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
1027 | 1028 | | |
1028 | 1029 | | |
1029 | 1030 | | |
1030 | | - | |
| 1031 | + | |
| 1032 | + | |
1031 | 1033 | | |
1032 | 1034 | | |
1033 | 1035 | | |
| |||
1057 | 1059 | | |
1058 | 1060 | | |
1059 | 1061 | | |
| 1062 | + | |
| 1063 | + | |
1060 | 1064 | | |
1061 | 1065 | | |
1062 | 1066 | | |
| |||
1112 | 1116 | | |
1113 | 1117 | | |
1114 | 1118 | | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
0 commit comments