1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
# 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),
],
}
|