File: data_sysaccount.py

package info (click to toggle)
freeipa 4.13.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 367,240 kB
  • sloc: javascript: 562,763; python: 310,289; ansic: 49,809; sh: 7,176; makefile: 2,589; xml: 343; sed: 16
file content (60 lines) | stat: -rw-r--r-- 1,694 bytes parent folder | download
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),
    ],
}