- Test encoding bool, int, string and string lists
- Make sure an empty string list is encoded as such
See https://docs.google.com/document/d/1LI1NZD0potcNM64gEb4qtHjKER0pvmrqktoS2E4Y7oM
Brain storm:
Actual Samba commands won't succeed without network, so needs a mock process executor
Might still try to use actual commands for error cases
Simulate common errors (e.g. net asking for pw)
Black box test of interface with input permutations that provide a large coverage
AuthenticateUser
user_principal_name (empty, contains ;rm -rf, several @s and dots, bad, good)
password_fd (invalid, empty, bad, good)
Parsing account id from 'objectGUID : 12345'
Test that krb5.conf is actually used
JoinMachine
machine_name (empty, ;rm -rf, is actually a user name a@b.c, bad, good)
user_principal_name (empty, contains ;rm -rf, several @s and dots, bad, good)
password_fd (invalid, empty, bad, good)
FetchUserGpos
account_id (empty, bad, good)
FetchDeviceGpos
GetMachineAndRealmName
UpdateDomainControllerName
WriteSmbConf
WriteKrb5Conf
GetGpoList
DownloadGpos
Components: Enterprise Labels: -M-56 M-57 Owner: ljusten@chromium.org Status: Assigned Summary: authpolicy: Add unit test for SambaInterface (was: authpolicy: Add unit test for UserPolicyEncoder)
Comment 1 Deleted