2013-05-24 06:48:53 -05:00
|
|
|
# Authors:
|
|
|
|
# Petr Vobornik <pvoborni@redhat.com>
|
|
|
|
#
|
|
|
|
# Copyright (C) 2013 Red Hat
|
|
|
|
# see file 'COPYING' for use and warranty information
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2018-04-19 08:19:37 -05:00
|
|
|
|
2013-05-24 06:48:53 -05:00
|
|
|
ENTITY = 'user'
|
|
|
|
|
|
|
|
PKEY = 'itest-user'
|
|
|
|
DATA = {
|
|
|
|
'pkey': PKEY,
|
|
|
|
'add': [
|
|
|
|
('textbox', 'uid', PKEY),
|
|
|
|
('textbox', 'givenname', 'Name'),
|
|
|
|
('textbox', 'sn', 'Surname'),
|
|
|
|
],
|
2013-06-27 02:45:17 -05:00
|
|
|
'add_v': [
|
|
|
|
('textbox', 'givenname', 'Name'),
|
|
|
|
('textbox', 'sn', 'Surname'),
|
|
|
|
('label', 'uid', PKEY),
|
|
|
|
],
|
2013-05-24 06:48:53 -05:00
|
|
|
'mod': [
|
2013-07-24 06:24:02 -05:00
|
|
|
('textbox', 'givenname', 'OtherName'),
|
|
|
|
('textbox', 'sn', 'OtherSurname'),
|
2018-04-19 08:19:37 -05:00
|
|
|
('textbox', 'initials', 'NOS'),
|
|
|
|
('textbox', 'loginshell', '/bin/csh'),
|
|
|
|
('textbox', 'homedirectory', '/home/alias'),
|
2013-06-27 02:45:17 -05:00
|
|
|
('multivalued', 'telephonenumber', [
|
|
|
|
('add', '123456789'),
|
|
|
|
('add', '987654321'),
|
|
|
|
]),
|
2018-04-19 08:19:37 -05:00
|
|
|
('multivalued', 'mail', [
|
|
|
|
('add', 'one@ipa.test'),
|
|
|
|
('add', 'two@ipa.test'),
|
|
|
|
('add', 'three@ipa.test'),
|
|
|
|
]),
|
|
|
|
('multivalued', 'pager', [
|
|
|
|
('add', '1234567'),
|
|
|
|
('add', '7654321'),
|
|
|
|
]),
|
|
|
|
('multivalued', 'mobile', [
|
|
|
|
('add', '001123456'),
|
|
|
|
('add', '001654321'),
|
|
|
|
]),
|
|
|
|
('multivalued', 'facsimiletelephonenumber', [
|
|
|
|
('add', '1122334'),
|
|
|
|
('add', '4332211'),
|
|
|
|
]),
|
|
|
|
('textbox', 'street', 'Wonderwall ave.'),
|
|
|
|
('textbox', 'l', 'Atlantis'),
|
|
|
|
('textbox', 'st', 'Universe'),
|
|
|
|
('textbox', 'postalcode', '61600'),
|
|
|
|
('multivalued', 'carlicense', [
|
|
|
|
('add', 'ZLA-1336'),
|
|
|
|
]),
|
|
|
|
('textbox', 'ou', 'QE'),
|
2013-06-27 02:45:17 -05:00
|
|
|
('combobox', 'manager', 'admin'),
|
2018-04-19 08:19:37 -05:00
|
|
|
('textbox', 'employeenumber', '123'),
|
|
|
|
('textbox', 'employeetype', 'contractor'),
|
|
|
|
('textbox', 'preferredlanguage', 'Spanish'),
|
2013-06-27 02:45:17 -05:00
|
|
|
],
|
|
|
|
'mod_v': [
|
|
|
|
('textbox', 'givenname', 'OtherName'),
|
|
|
|
('textbox', 'sn', 'OtherSurname'),
|
2018-04-19 08:19:37 -05:00
|
|
|
('textbox', 'initials', 'NOS'),
|
|
|
|
('textbox', 'loginshell', '/bin/csh'),
|
|
|
|
('textbox', 'homedirectory', '/home/alias'),
|
|
|
|
('label', 'krbmaxrenewableage', '604800'),
|
|
|
|
('label', 'krbmaxticketlife', '86400'),
|
2013-06-27 02:45:17 -05:00
|
|
|
('multivalued', 'telephonenumber', ['123456789', '987654321']),
|
2018-04-19 08:19:37 -05:00
|
|
|
('multivalued', 'mail', ['one@ipa.test', 'two@ipa.test',
|
|
|
|
'three@ipa.test']),
|
|
|
|
('multivalued', 'pager', ['1234567', '7654321']),
|
|
|
|
('multivalued', 'mobile', ['001123456', '001654321']),
|
|
|
|
('multivalued', 'facsimiletelephonenumber', ['1122334', '4332211']),
|
|
|
|
('textbox', 'street', 'Wonderwall ave.'),
|
|
|
|
('textbox', 'l', 'Atlantis'),
|
|
|
|
('textbox', 'st', 'Universe'),
|
|
|
|
('textbox', 'postalcode', '61600'),
|
|
|
|
('multivalued', 'carlicense', ['ZLA-1336']),
|
|
|
|
('textbox', 'ou', 'QE'),
|
2013-06-27 02:45:17 -05:00
|
|
|
('combobox', 'manager', 'admin'),
|
2018-04-19 08:19:37 -05:00
|
|
|
('textbox', 'employeenumber', '123'),
|
|
|
|
('textbox', 'employeetype', 'contractor'),
|
|
|
|
('textbox', 'preferredlanguage', 'Spanish'),
|
2013-05-24 06:48:53 -05:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
PKEY2 = 'itest-user2'
|
|
|
|
DATA2 = {
|
|
|
|
'pkey': PKEY2,
|
|
|
|
'add': [
|
|
|
|
('textbox', 'uid', PKEY2),
|
|
|
|
('textbox', 'givenname', 'Name2'),
|
|
|
|
('textbox', 'sn', 'Surname2'),
|
|
|
|
],
|
|
|
|
'mod': [
|
2013-07-24 06:24:02 -05:00
|
|
|
('textbox', 'givenname', 'OtherName2'),
|
|
|
|
('textbox', 'sn', 'OtherSurname2'),
|
2018-05-15 05:38:00 -05:00
|
|
|
('textbox', 'postalcode', '007007'),
|
2013-05-24 06:48:53 -05:00
|
|
|
],
|
2013-07-24 06:24:02 -05:00
|
|
|
}
|
2016-02-25 08:00:49 -06:00
|
|
|
|
|
|
|
PKEY3 = 'itest-user3'
|
|
|
|
DATA3 = {
|
|
|
|
'pkey': PKEY3,
|
|
|
|
'add': [
|
|
|
|
('textbox', 'uid', PKEY3),
|
|
|
|
('textbox', 'givenname', 'Name3'),
|
|
|
|
('textbox', 'sn', 'Surname3'),
|
|
|
|
('checkbox', 'noprivate', None),
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
PKEY4 = 'itest-user4'
|
|
|
|
DATA4 = {
|
|
|
|
'pkey': PKEY4,
|
|
|
|
'add': [
|
|
|
|
('textbox', 'uid', PKEY4),
|
|
|
|
('textbox', 'givenname', 'Name4'),
|
|
|
|
('textbox', 'sn', 'Surname4'),
|
|
|
|
('checkbox', 'noprivate', None),
|
|
|
|
('combobox', 'gidnumber', '77777'),
|
|
|
|
]
|
|
|
|
}
|
2018-04-19 08:19:37 -05:00
|
|
|
|
|
|
|
PKEY_SPECIAL_CHARS = '1spe.cial_us-er$'
|
|
|
|
PASSWD_SCECIAL_CHARS = '!!!@@@###$$$'
|
|
|
|
DATA_SPECIAL_CHARS = {
|
|
|
|
'pkey': PKEY_SPECIAL_CHARS,
|
|
|
|
'add': [
|
|
|
|
('textbox', 'uid', PKEY_SPECIAL_CHARS),
|
|
|
|
('textbox', 'givenname', 'S$p|e>c--i_a%l_'),
|
|
|
|
('textbox', 'sn', '%U&s?e+r'),
|
|
|
|
('password', 'userpassword', PASSWD_SCECIAL_CHARS),
|
|
|
|
('password', 'userpassword2', PASSWD_SCECIAL_CHARS),
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
PKEY_LONG_LOGIN = 'itest-user' * 5
|
|
|
|
DATA_LONG_LOGIN = {
|
|
|
|
'pkey': PKEY_LONG_LOGIN,
|
|
|
|
'add': [
|
|
|
|
('textbox', 'uid', PKEY_LONG_LOGIN),
|
|
|
|
('textbox', 'givenname', 'Name8'),
|
|
|
|
('textbox', 'sn', 'Surname8'),
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
PKEY_PASSWD_LEAD_SPACE = 'itest-user-passwd-leading-space'
|
|
|
|
DATA_PASSWD_LEAD_SPACE = {
|
|
|
|
'pkey': PKEY_PASSWD_LEAD_SPACE,
|
|
|
|
'add': [
|
|
|
|
('textbox', 'uid', PKEY_PASSWD_LEAD_SPACE),
|
|
|
|
('textbox', 'givenname', 'Name7'),
|
|
|
|
('textbox', 'sn', 'Surname7'),
|
|
|
|
('password', 'userpassword', ' Password123 '),
|
|
|
|
('password', 'userpassword2', ' Password123 '),
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
PKEY_PASSWD_TRAIL_SPACE = 'itest-user-passwd-trailing-space'
|
|
|
|
DATA_PASSWD_TRAIL_SPACE = {
|
|
|
|
'pkey': PKEY_PASSWD_LEAD_SPACE,
|
|
|
|
'add': [
|
|
|
|
('textbox', 'uid', PKEY_PASSWD_LEAD_SPACE),
|
|
|
|
('textbox', 'givenname', 'Name8'),
|
|
|
|
('textbox', 'sn', 'Surname8'),
|
|
|
|
('password', 'userpassword', 'Password123 '),
|
|
|
|
('password', 'userpassword2', 'Password123 '),
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
PKEY_PASSWD_MISMATCH = 'itest-user-passwd-mismatch'
|
|
|
|
DATA_PASSWD_MISMATCH = {
|
|
|
|
'pkey': PKEY_PASSWD_MISMATCH,
|
|
|
|
'add': [
|
|
|
|
('textbox', 'uid', PKEY_PASSWD_MISMATCH),
|
|
|
|
('textbox', 'givenname', 'Name9'),
|
|
|
|
('textbox', 'sn', 'Surname9'),
|
|
|
|
('password', 'userpassword', 'Password123'),
|
|
|
|
('password', 'userpassword2', 'Password12'),
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
PKEY_NO_LOGIN = 'itest-user-no-login'
|
|
|
|
DATA_NO_LOGIN = {
|
|
|
|
'pkey': PKEY_NO_LOGIN,
|
|
|
|
'add': [
|
|
|
|
('textbox', 'givenname', 'Name10'),
|
|
|
|
('textbox', 'sn', 'Surname10'),
|
|
|
|
('password', 'userpassword', 'Password123'),
|
|
|
|
('password', 'userpass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