1
0
mirror of https://github.com/altlinux/admc.git synced 2025-03-14 22:50:14 +03:00

370 Commits

Author SHA1 Message Date
Dmitry Degtyarev
a7487655ce add tests for trimming of names
name in create dialog, rename dialog
also sam name edit
2022-04-01 17:12:10 +04:00
Dmitry Degtyarev
318d030354 add tests for all autofills 2022-04-01 17:12:07 +04:00
Dmitry Degtyarev
a16e5f2c82 add tests for empty passwords
in edit in general
and create user dialog in particular
2022-04-01 17:12:04 +04:00
Dmitry Degtyarev
2ffe76b513 add tests for select base widget 2022-04-01 17:11:59 +04:00
Dmitry Degtyarev
c04b66a67f Merge branch 'master' into release/0-9-0-test 2022-03-25 11:20:58 +04:00
Dmitry Degtyarev
6f3432294e fix password edit test 2022-03-24 13:00:48 +04:00
Dmitry Degtyarev
e04f44fb7a fix password edit test 2022-03-24 13:00:44 +04:00
Dmitry Degtyarev
a773092ae0 fix upn edit test
was using wrong suffix, which caused TEST_SUFFIX not to
\ load into combo, which meant that there was only 1 suffix
\ in the list
need 2 for testing
2022-03-24 11:13:48 +04:00
Dmitry Degtyarev
0fd79ad08c add "show password" checkbox
toggles visibility of password edits
in create user dialog and password dialog
save this setting
2022-03-22 15:28:59 +04:00
Dmitry Degtyarev
87dd079450 add "show password" checkbox
toggles visibility of password edits
in create user dialog and password dialog
save this setting
2022-03-22 15:28:52 +04:00
Dmitry Degtyarev
ffa0549d5b add tests for new creation dialogs 2022-03-16 13:51:24 +04:00
Dmitry Degtyarev
4c3db76393 Merge branch 'master' into release/0-9-0-test 2022-03-14 11:51:01 +04:00
Dmitry Degtyarev
b415f45e02 add tests for creating computers 2022-03-11 16:32:36 +04:00
Dmitry Degtyarev
59bed9c6c1 fix logon hours test
treating unset valut as "allow all logon times" is now
\ accomplished outside of get(), so get() now returns empty
\ qbytearray
2022-03-11 15:15:29 +04:00
Dmitry Degtyarev
3998acefd9 fix upn edit test
merge broke it
2022-02-11 14:39:51 +04:00
Dmitry Degtyarev
d92a01312d Merge branch 'master' into release/0-9-0-test
# Conflicts:
#	CHANGELOG.txt
#	tests/admc_test_upn_edit.cpp
2022-02-10 17:12:05 +04:00
Dmitry Degtyarev
b50b23f9e0 unset UAC_PASSWD_NOTREQD when creating users
only via create user dialog
adldap still uses default UAC value which includes PASSWD_NOTREQD
2022-02-02 14:37:00 +04:00
Dmitry Degtyarev
20a9131776 fix empty case in logon computers
when value was empty, list was incorrectly populated with one
\ item containing an empty string
add test case
tests became messier, but will fix later
2022-02-02 12:11:16 +04:00
Dmitry Degtyarev
5e09f3d6e4 improve handling of unset logon hours value
if value is unset, it has to be treated as "allow all logon times"
also, if value is unset, it has to remain unset after dialog is accepted
\ that is, if dialog didn't change anything
2022-02-02 10:52:15 +04:00
Dmitry Degtyarev
7d10268fe4 trim spaces in StringEdit::apply()
leading and trailing spaces
2022-02-01 15:19:49 +04:00
Dmitry Degtyarev
abfcaa894f fix upn edit tests (should be final)
figured out the problem
the domain used by testers somehow was configured to enforce
\ unique upn's, while mine didn't
so on tester's domain, during creation of conflicting user
\ server didn't allow the upn to be replaced
bring back test suffix, since it wasn't a problem
change conflict test case to setup conflicting upn uniquely
\ from base test user first, and then change input of upn
\ edit to create a conflict
2022-02-01 10:06:15 +04:00
Dmitry Degtyarev
8782f1cb7b Revert "fix upn edit tests"
This reverts commit 9b7a2b950a053d5bd1f03d2dba8195e212224450.
2022-02-01 09:55:19 +04:00
Dmitry Degtyarev
9b7a2b950a fix upn edit tests
had to remove test code that tested multiple suffixes in upn edit
\ because didn't figure out a way to do that on any domain reliably yet
might re-introduce those tests later
2022-01-31 17:31:16 +04:00
Dmitry Degtyarev
d344147b63 update protect deletion test
remove old comments from another test
use data-driven testing
2022-01-28 16:35:03 +04:00
Dmitry Degtyarev
057a2d298f fix upn edit test
not sure if this completely fixes problems, but it's a step
\ in the right direction
i think the problem was that a test suffix value of "test.com"
\ was used and it was not guaranteed that any domain would
\ have that upn suffix defined in upn suffixes attribute of domain
so when test was run, suffix combobox in upn edit loaded
\ existing upn suffixes for the domain, which didn't include
\ test.com
after that, maybe new versions became more strict about it which
\ caused failure to change upn of conflicting user due to
\ stricter checking of upn value for non-existent upn suffix
.
also added more checks for success of ad operations
2022-01-28 13:01:32 +04:00
Dmitry Degtyarev
33d7e287b0 fix upn edit test
not sure if this completely fixes problems, but it's a step
\ in the right direction
i think the problem was that a test suffix value of "test.com"
\ was used and it was not guaranteed that any domain would
\ have that upn suffix defined in upn suffixes attribute of domain
so when test was run, suffix combobox in upn edit loaded
\ existing upn suffixes for the domain, which didn't include
\ test.com
after that, maybe new versions became more strict about it which
\ caused failure to change upn of conflicting user due to
\ stricter checking of upn value for non-existent upn suffix
.
also added more checks for success of ad operations
2022-01-28 13:01:21 +04:00
Dmitry Degtyarev
4ea75bc6fd fix expiry edit test compilation
also update var names
2022-01-28 12:08:39 +04:00
Dmitry Degtyarev
00919ee4e1 fix expiry edit test compilation
also update var names
2022-01-28 11:21:38 +04:00
Dmitry Degtyarev
b5689f183e fix upn edit limit
length limit of prefix edit now currently depends on the length of
\ currently selected suffix
add test for this
2022-01-26 11:36:39 +04:00
Dmitry Degtyarev
dca6d99162 fix sam name limit in create dialogs
was setting limit inside load() but create dialogs can't
\ call load()
so have to set limit in ctor
added required object class arg to ctor
2022-01-26 11:00:10 +04:00
Dmitry Degtyarev
2a77a8b905 handle bad chars in upn
warn if upn edit contains bad chars
add tests for this
extract string_contains_bad_chars() f-n shared between sam name and upn
2022-01-25 17:41:56 +04:00
Dmitry Degtyarev
7d44a07a28 warn about bad chars in sam name
add tests for SamNameEdit that tests this functionality
2022-01-25 17:18:03 +04:00
Dmitry Degtyarev
67c265e75b fix adsecurity test
initialize sd to NULL at correct time (earliest)
don't check for NULL before free
set sd to NULL after cleanup
2022-01-19 11:25:47 +04:00
Dmitry Degtyarev
e2289c80d3 add test for select classes widget 2022-01-18 12:04:19 +04:00
Dmitry Degtyarev
93e0654e35 add test cases for "all extended rights"
to remove_to_set_subordinates_data() test
2022-01-17 09:51:24 +04:00
Dmitry Degtyarev
eb88d4017e make base add/remove f-ns private to ad_security
not needed anywhere outside
rename "complete" versions of add/remove to just "add/remove"
what was before add_right and remove_right is now add_right_base
\ and remove_right_base
improve test names
switch to use "complete" versions of add/remove in all ad security tests
2021-12-30 12:28:26 +04:00
Dmitry Degtyarev
bd12b16fce add test case for ad security 2021-12-28 17:16:50 +04:00
Dmitry Degtyarev
75a9a7ee17 fix compilation of tests 2021-12-23 15:27:53 +04:00
Dmitry Degtyarev
f138911bd2 fix compilation of tests 2021-12-22 16:26:03 +04:00
Dmitry Degtyarev
8caf38e9e0 make edits_x() functions static 2021-12-21 15:24:08 +04:00
Dmitry Degtyarev
012e42ca8f update tests for attributes tab 2021-12-17 12:54:38 +04:00
Dmitry Degtyarev
0d613996cf fix ad interface tests
remove unused security_tab tests, ad_security tests cover everything
2021-12-15 18:13:02 +04:00
Dmitry Degtyarev
36843965af add tests for "extra" versions of add/remove right
for security_descriptor_add_right_complete()
\ and security_descriptor_remove_right_complete()
2021-12-15 17:51:17 +04:00
Dmitry Degtyarev
2279d33cff fix ad interface test to use new ad_security 2021-12-14 19:24:35 +04:00
Dmitry Degtyarev
66f8ff7bf2 add ad_security tests 2021-12-14 19:24:24 +04:00
Dmitry Degtyarev
57eb58ee52 add receivers to all lambda slots
not necessary in all cases, but better to do it everywhere
\ than do it sometimes and forget it where it's needed
reduce size of some captures
2021-11-17 12:22:24 +04:00
Dmitry Degtyarev
13a05f1602 fix outdated copyright years 2021-11-17 10:08:15 +04:00
Dmitry Degtyarev
36ef03da9b fix find dialog compilation 2021-11-16 16:54:02 +04:00
Dmitry Degtyarev
bfa6fd1b81 update logon hours tests 2021-11-16 16:29:34 +04:00
Dmitry Degtyarev
db18ef00af fix test compilation 2021-11-16 11:26:16 +04:00