Files
Anuja More 386e9f37af ipatests: sysaccounts: add missing integration/webui/xmlrpc tests
Add comprehensive test coverage for system accounts:

Integration tests:
- Password management and privileged behavior
- Backup/restore scenarios (full, data-only, with various attributes)
- Replica deletion and SysAcctManagersDNs persistence

Web UI tests:
- CRUD operations, privileged flag, associations
- Enable/disable, password validation, negative cases

XML-RPC tests:
- Permission checks for normal users and Security Architects
- All CRUD operations and policy management

- Automated with Cursor+Claude

Related: https://pagure.io/freeipa/issue/9842

Signed-off-by: Anuja More <amore@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: PRANAV THUBE <pthube@redhat.com>
Signed-off-by: Anuja More <amore@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: PRANAV THUBE <pthube@redhat.com>
2025-12-16 11:16:34 -03:00

61 lines
1.7 KiB
Python

# Copyright (C) 2025 Red Hat
# see file 'COPYING' for use and warranty information
ENTITY = 'sysaccount'
PKEY = 'itest-sysaccount'
DATA = {
'pkey': PKEY,
'add': [
('textbox', 'uid', PKEY),
('textbox', 'description', 'test system account desc'),
('password', 'userpassword', 'Secret123'),
('password', 'userpassword2', 'Secret123'),
],
'add_v': [
('label', 'uid', PKEY),
('textbox', 'description', 'test system account desc'),
],
'mod': [
('textbox', 'description', 'test system account desc modified'),
],
'mod_v': [
('label', 'uid', PKEY),
('textbox', 'description', 'test system account desc modified'),
],
'del': [
('textbox', 'description', 'test system account desc modified'),
],
}
PKEY2 = 'itest-sysaccount2'
DATA2 = {
'pkey': PKEY2,
'add': [
('textbox', 'uid', PKEY2),
('textbox', 'description', 'test system account2 desc'),
('checkbox', 'privileged', 'checked'),
('password', 'userpassword', 'Secret123'),
('password', 'userpassword2', 'Secret123'),
],
}
PKEY_PRIVILEGED = 'itest-sysaccount-privileged'
DATA_PRIVILEGED = {
'pkey': PKEY_PRIVILEGED,
'add': [
('textbox', 'uid', PKEY_PRIVILEGED),
('textbox', 'description', 'privileged system account'),
('checkbox', 'privileged', 'checked'),
('password', 'userpassword', 'Secret123'),
('password', 'userpassword2', 'Secret123'),
],
'mod': [
('checkbox', 'privileged', None),
],
'mod_v': [
('label', 'uid', PKEY_PRIVILEGED),
('checkbox', 'privileged', None),
],
}