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 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163
|
#
# Copyright (C) 2018 FreeIPA Contributors see COPYING for license
#
ENTITY = 'user'
PKEY = 'itest-user'
PASSWD_ITEST_USER = '12345678'
PASSWD_ITEST_USER_NEW = '87654321'
ROOT_PKEY = 'root'
# used for add/delete fixture test user
DATA_ITEST_USER = {
'pkey': PKEY,
'add': [
('textbox', 'uid', PKEY),
('textbox', 'givenname', 'itest-user-name'),
('textbox', 'sn', 'itest-user-surname'),
('password', 'userpassword', PASSWD_ITEST_USER),
('password', 'userpassword2', PASSWD_ITEST_USER),
]
}
# used for checking login form after click Cancel on 'reset' view
FILLED_LOGIN_FORM = {
# structure of rows
# label_name, label_text,
# required, editable,
# input_type, input_name,
# input_text, placeholder
'rows': [
('username', 'Username', True, True, 'text', 'username',
PKEY, 'Username'),
('password', 'Password', True, True, 'password', 'password',
PASSWD_ITEST_USER, 'Password or Password+One-Time Password'),
],
# structure of buttons
# button_name, button_title
'buttons': [
('cert_auth', 'Log in using personal certificate'),
('sync', 'Sync OTP Token'),
('login', 'Log in'),
],
'required_msg': [
('Username: Required field',),
('Password: Required field',),
],
}
# used for checking 'reset_and_login' view
RESET_AND_LOGIN_FORM = {
# structure of rows
# label_name, label_text,
# required, editable,
# input_type, input_name,
# input_text, placeholder
'rows': [
('username_r', 'Username', False, False, None, 'username_r',
PKEY, None),
('current_password', 'Current Password', False, True, 'password',
'current_password', '', 'Current Password'),
('new_password', 'New Password', True, True, 'password',
'new_password', '', 'New Password'),
('verify_password', 'Verify Password', True, True, 'password',
'verify_password', '', 'New Password'),
('otp', 'OTP', False, True, 'password', 'otp', '',
'One-Time Password'),
],
# structure of buttons
# button_name, button_title
'buttons': [
('cancel', 'Cancel'),
('reset_and_login', 'Reset Password and Log in'),
],
'required_msg': [
('New Password: Required field',),
('Verify Password: Required field',),
],
}
# used for checking 'reset' view
RESET_PASSWORD_FORM = {
# structure of rows
# label_name, label_text,
# required, editable,
# input_type, input_name,
# input_text, placeholder
'rows': [
('username', 'Username', True, True, 'text', 'username', '',
'Username'),
('current_password', 'Current Password', True, True, 'password',
'current_password', '', 'Current Password'),
('new_password', 'New Password', True, True, 'password',
'new_password', '', 'New Password'),
('verify_password', 'Verify Password', True, True, 'password',
'verify_password', '', 'New Password'),
('otp', 'OTP', False, True, 'password', 'otp', '',
'One-Time Password'),
],
# structure of buttons
# button_name, button_title
'buttons': [
('reset', 'Reset Password'),
],
'required_msg': [
('Username: Required field',),
('Current Password: Required field',),
('New Password: Required field',),
('Verify Password: Required field',),
],
}
# used for checking empty 'login' view
EMPTY_LOGIN_FORM = {
# structure of rows
# label_name, label_text,
# required, editable,
# input_type, input_name,
# input_text, placeholder
'rows': [
('username', 'Username', False, True, 'text', 'username', '',
'Username'),
('password', 'Password', False, True, 'password', 'password', '',
'Password or Password+One-Time Password'),
],
# structure of buttons
# button_name, button_title
'buttons': [
('cert_auth', 'Log in using personal certificate'),
('sync', 'Sync OTP Token'),
('login', 'Log in'),
],
'required_msg': [
('Authentication with Kerberos failed',),
],
}
# used for checking 'login' view
LOGIN_FORM = {
# structure of rows
# label_name, label_text,
# required, editable,
# input_type, input_name,
# input_text, placeholder
'rows': [
('username', 'Username', True, True, 'text', 'username', PKEY,
'Username'),
('password', 'Password', True, True, 'password', 'password', '',
'Password or Password+One-Time Password'),
],
# structure of buttons
# button_name, button_title
'buttons': [
('cert_auth', 'Log in using personal certificate'),
('sync', 'Sync OTP Token'),
('login', 'Log in'),
],
'required_msg': [
('Password: Required field',),
],
}
|