Christian Heimes
713607769e
Fix useless-import-alias
...
See: https://pagure.io/freeipa/issue/7758
Signed-off-by: Christian Heimes <cheimes@redhat.com >
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com >
2018-11-13 13:37:58 +01:00
Christian Heimes
496d1756c9
Address consider-using-in
...
Replace multiple comparisons with 'in' operation.
See: https://pagure.io/freeipa/issue/7758
Signed-off-by: Christian Heimes <cheimes@redhat.com >
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com >
2018-11-13 13:37:58 +01:00
Serhii Tsymbaliuk
8954521007
WebUI tests: Make possible to use kwargs with @screenshot decorator
...
Reviewed-By: Petr Cech <pcech@redhat.com >
2018-10-31 11:55:35 +01:00
Serhii Tsymbaliuk
8f2a75cb00
UI tests for "Automount": check dialog confirmation using ENTER
...
https://pagure.io/freeipa/issue/7735
Reviewed-By: Petr Cech <pcech@redhat.com >
2018-10-31 11:55:35 +01:00
Serhii Tsymbaliuk
6444808fd2
UI tests for "Automount": check some negative cases
...
https://pagure.io/freeipa/issue/7735
Reviewed-By: Petr Cech <pcech@redhat.com >
2018-10-31 11:55:35 +01:00
Serhii Tsymbaliuk
ba40590e9d
UI tests for "Automount": check indirect map duplication
...
https://pagure.io/freeipa/issue/7735
Reviewed-By: Petr Cech <pcech@redhat.com >
2018-10-31 11:55:35 +01:00
Serhii Tsymbaliuk
b7a149feb2
UI tests for "Automount": check creating automount key without some fields
...
https://pagure.io/freeipa/issue/7735
Reviewed-By: Petr Cech <pcech@redhat.com >
2018-10-31 11:55:35 +01:00
Serhii Tsymbaliuk
de06bf2778
UI tests for "Automount": check creating indirect automount map without some fields
...
https://pagure.io/freeipa/issue/7735
Reviewed-By: Petr Cech <pcech@redhat.com >
2018-10-31 11:55:35 +01:00
Serhii Tsymbaliuk
97f158aeec
UI tests for "Automount": Fix item deleting
...
https://pagure.io/freeipa/issue/7735
Reviewed-By: Petr Cech <pcech@redhat.com >
2018-10-31 11:55:35 +01:00
Serhii Tsymbaliuk
e957e0aef0
UI tests for "Automount": check modifying map and key settings
...
https://pagure.io/freeipa/issue/7735
Reviewed-By: Petr Cech <pcech@redhat.com >
2018-10-31 11:55:35 +01:00
Serhii Tsymbaliuk
1d4b43efa4
UI tests for "Automount": check "Add Automount..." dialogs
...
https://pagure.io/freeipa/issue/7735
Reviewed-By: Petr Cech <pcech@redhat.com >
2018-10-31 11:55:35 +01:00
Serhii Tsymbaliuk
8949aa64d9
UI tests for "Automember": Extend search cases
...
https://pagure.io/freeipa/issue/7721
Reviewed-By: Mohammad Rizwan Yusuf <myusuf@redhat.com >
Reviewed-By: Petr Cech <pcech@redhat.com >
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2018-10-30 16:26:29 +01:00
Serhii Tsymbaliuk
cd795257cc
UI tests for "Automember": Negative cases
...
https://pagure.io/freeipa/issue/7721
Reviewed-By: Mohammad Rizwan Yusuf <myusuf@redhat.com >
Reviewed-By: Petr Cech <pcech@redhat.com >
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2018-10-30 16:26:29 +01:00
Serhii Tsymbaliuk
33a74fb2c4
UI tests for "Automember": check setting default user/host group
...
https://pagure.io/freeipa/issue/7721
Reviewed-By: Mohammad Rizwan Yusuf <myusuf@redhat.com >
Reviewed-By: Petr Cech <pcech@redhat.com >
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2018-10-30 16:26:29 +01:00
Serhii Tsymbaliuk
a68035dcae
UI tests for "Automember": check creating and deleting of automember rule conditions
...
https://pagure.io/freeipa/issue/7721
Reviewed-By: Mohammad Rizwan Yusuf <myusuf@redhat.com >
Reviewed-By: Petr Cech <pcech@redhat.com >
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2018-10-30 16:26:29 +01:00
Serhii Tsymbaliuk
63cbf6294e
UI tests for "Automember": check creating and deleting of multiple rules
...
https://pagure.io/freeipa/issue/7721
Reviewed-By: Mohammad Rizwan Yusuf <myusuf@redhat.com >
Reviewed-By: Petr Cech <pcech@redhat.com >
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2018-10-30 16:26:29 +01:00
Serhii Tsymbaliuk
49df1ab1c8
UI tests for "Automember": check search filter
...
https://pagure.io/freeipa/issue/7721
Reviewed-By: Mohammad Rizwan Yusuf <myusuf@redhat.com >
Reviewed-By: Petr Cech <pcech@redhat.com >
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2018-10-30 16:26:29 +01:00
Serhii Tsymbaliuk
4c3f010461
UI tests for "ID Range": Clean unnecessary Python2 compatible code constructions
...
https://pagure.io/freeipa/issue/7709
Reviewed-By: Christian Heimes <cheimes@redhat.com >
2018-10-16 09:09:02 +02:00
Serhii Tsymbaliuk
2d845cc70a
UI tests for "ID Range": check deleting primary local range
...
https://pagure.io/freeipa/issue/7709
Reviewed-By: Mohammad Rizwan Yusuf <myusuf@redhat.com >
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2018-10-15 14:11:42 +02:00
Serhii Tsymbaliuk
6595949e1d
UI tests for "ID Range": check creating ID Range with overlapping of primary and secondary RID base
...
https://pagure.io/freeipa/issue/7709
Reviewed-By: Mohammad Rizwan Yusuf <myusuf@redhat.com >
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2018-10-15 14:11:42 +02:00
Serhii Tsymbaliuk
dd590e7ea7
UI tests for "ID Range": - check creating ID range with special characters in name - check modifying ID range with existing secondary RID base
...
https://pagure.io/freeipa/issue/7709
Reviewed-By: Mohammad Rizwan Yusuf <myusuf@redhat.com >
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2018-10-15 14:11:42 +02:00
Serhii Tsymbaliuk
70f51c0db2
UI tests for "ID Range": check modifying ID range with invalid or missing values
...
https://pagure.io/freeipa/issue/7709
Reviewed-By: Mohammad Rizwan Yusuf <myusuf@redhat.com >
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2018-10-15 14:11:42 +02:00
Serhii Tsymbaliuk
dde4d19f7b
UI tests for "ID Range": check adding range with overlapping of existing local range
...
https://pagure.io/freeipa/issue/7709
Reviewed-By: Mohammad Rizwan Yusuf <myusuf@redhat.com >
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2018-10-15 14:11:42 +02:00
Serhii Tsymbaliuk
b180991aca
UI tests for "ID Range": check primary RID base duplication
...
https://pagure.io/freeipa/issue/7709
Reviewed-By: Mohammad Rizwan Yusuf <myusuf@redhat.com >
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2018-10-15 14:11:42 +02:00
Serhii Tsymbaliuk
369fb23ed9
UI tests for "ID Range": check adding range without primary and secondary RID bases
...
https://pagure.io/freeipa/issue/7709
Reviewed-By: Mohammad Rizwan Yusuf <myusuf@redhat.com >
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2018-10-15 14:11:42 +02:00
Serhii Tsymbaliuk
e55d17d609
UI tests for "ID Range": check range name and base ID duplication
...
https://pagure.io/freeipa/issue/7709
Reviewed-By: Mohammad Rizwan Yusuf <myusuf@redhat.com >
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2018-10-15 14:11:42 +02:00
Christian Heimes
15d5e44ee8
Py3: Replace six.moves imports
...
Replace six.moves and six.StringIO/BytesIO imports with cannonical
Python 3 packages.
Note: six.moves.input behaves differently than builtin input function.
Therefore I left six.moves.input for now.
See: https://pagure.io/freeipa/issue/7715
Signed-off-by: Christian Heimes <cheimes@redhat.com >
Reviewed-By: Fraser Tweedale <ftweedal@redhat.com >
2018-10-05 12:06:19 +02:00
Christian Heimes
b431e9b684
Py3: Remove subclassing from object
...
Python 2 had old style and new style classes. Python 3 has only new
style classes. There is no point to subclass from object any more.
See: https://pagure.io/freeipa/issue/7715
Signed-off-by: Christian Heimes <cheimes@redhat.com >
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com >
2018-09-27 11:49:04 +02:00
Christian Heimes
4a58adf79e
Sprinkle raw strings across the code base
...
tox / pytest is complaining about lots and lots of invalid escape
sequences in our code base. Sprinkle raw strings or backslash escapes
across the code base to fix most occurences of:
DeprecationWarning: invalid escape sequence
There is still one warning that keeps repeating, though:
source:264: DeprecationWarning: invalid escape sequence \d
Signed-off-by: Christian Heimes <cheimes@redhat.com >
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com >
2018-09-27 10:23:03 +02:00
Serhii Tsymbaliuk
d020fc49a6
Change Web UI tests setup flow
...
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com >
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2018-09-19 13:32:51 +02:00
Serhii Tsymbaliuk
46eb9a38f0
Fix UI_driver.has_class exception. Handle situation when element has no class attribute
...
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com >
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2018-09-19 13:32:51 +02:00
Serhii Tsymbaliuk
1affddaabe
Increase some timeouts in Web UI tests
...
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com >
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2018-09-19 13:32:51 +02:00
Serhii Tsymbaliuk
970af640ee
Remove unnecessary session clearing in some Web UI tests
...
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com >
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2018-09-19 13:32:51 +02:00
Serhii Tsymbaliuk
93eafaec1a
Add cookies clearing for all Web UI tests
...
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com >
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2018-09-19 13:32:51 +02:00
Serhii Tsymbaliuk
b58bc75023
Generate CSR for test_host::test_certificates (Web UI test)
...
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com >
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2018-09-19 13:32:51 +02:00
Serhii Tsymbaliuk
2b739701e3
Add SAN extension for CSR generation in test_cert (Web UI tests)
...
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com >
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2018-09-19 13:32:51 +02:00
Serhii Tsymbaliuk
41258d81b5
Fix unpermitted user session in test_selfservice (Web UI test)
...
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com >
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2018-09-19 13:32:51 +02:00
Serhii Tsymbaliuk
685cef554b
Fix test_user::test_login_without_username (Web UI test)
...
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com >
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2018-09-19 13:32:51 +02:00
Serhii Tsymbaliuk
1f04c481e3
Use random realmdomains in test_webui/test_realmdomains.py
...
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com >
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2018-09-19 13:32:51 +02:00
Serhii Tsymbaliuk
d582484bea
Fix test_realmdomains::test_add_single_labeled_domain (Web UI test)
...
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com >
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2018-09-19 13:32:51 +02:00
Serhii Tsymbaliuk
1212402a61
Increase request timeout for WebUI tests
...
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com >
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2018-09-19 13:32:51 +02:00
Serhii Tsymbaliuk
95928f624f
Use random IPs and domains in test_webui/test_host.py
...
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com >
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2018-09-19 13:32:51 +02:00
Serhii Tsymbaliuk
2b3fd70156
Fix hardcoded CSR in test_webui/test_cert.py
...
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com >
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2018-09-19 13:32:51 +02:00
Stanislav Levin
b4885d3eb7
Add tests for LoginScreen widget
...
Add some basic tests for different aspects of LoginScreen such as
'login', 'reset_and_login', 'reset' views.
Fixes: https://pagure.io/freeipa/issue/7619
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
Reviewed-By: Serhii Tsymbaliuk <stsymbal@redhat.com >
2018-09-12 12:41:19 +02:00
Stanislav Levin
4b83227ac7
Add basic tests to web pages which are located at /ipa/config/
...
The goal of these tests is to ensure that the translated text is
synced against a 'noscript' one.
Fixes: https://pagure.io/freeipa/issue/7640
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
Reviewed-By: Serhii Tsymbaliuk <stsymbal@redhat.com >
2018-09-12 10:44:37 +02:00
Pavel Picka
016df47ded
WebUI Tests stabilize
...
- close notifications
- add wait in cert test case
Signed-off-by: Pavel Picka <ppicka@redhat.com >
Reviewed-By: Michal Reznik <mreznik@redhat.com >
2018-08-07 16:31:03 +02:00
Armando Neto
79391ad8e1
ui_tests: fix test_config::test_size_limits
...
Fix a regression caused by: https://pagure.io/freeipa/issue/7606
Signed-off-by: Armando Neto <abiagion@redhat.com >
Reviewed-By: Pavel Picka <ppicka@redhat.com >
2018-07-04 15:21:30 +02:00
Michal Reznik
e140d198ea
ui_tests: stabilization fixes
...
This patch aims to fix the following tests which seems to be quite
unstable recently:
test_user::test_actions - closing notification and moving to element
to have screenshot of current place.
test_user::certificates - add wait() / close_notification
Also adds missing @screenshot decorator to test_user_misc method.
Reviewed-By: Pavel Picka <ppicka@redhat.com >
2018-07-04 15:21:30 +02:00
Varun Mylaraiah
39ac5f442a
ui_tests: extend test_pwpolicy.py suite
...
Extend WebUI test_pwpolicy suite with the following test cases
Details in the ticket https://pagure.io/freeipa/issue/7574
Added tests:
krbpwdminlength: lower range integer
krbmaxpwdlife: non-integer, abc
krbmaxpwdlife: upper range integer,2147483648
krbmaxpwdlife: lower range integer,-1
krbminpwdlife: non-integer,edf
krbminpwdlife: upper range integer,2147483648
krbminpwdlife: lower range integer,-1
krbpwdhistorylength: non-integer,HIJ
krbpwdhistorylength: upper range integer,2147483648
krbpwdhistorylength: lower range integer,-1
krbpwdmindiffchars: noon-integer,3lm
krbpwdmindiffchars: upper range integer,2147483648
krbpwdmindiffchars: lower range integer, -1
krbpwdminlength: non-integer, n0p
krbpwdminlength: upper range integer,2147483648
krbpwdminlength: lower range integer, -1
cospriority: non-integer, abc
cospriority: upper range integer,2147483648
cospriority: lower range integer,-1
krbpwdmaxfailure: non-integer
krbpwdmaxfailure: upper range integer
krbpwdmaxfailure: lower range integer
krbpwdfailurecountinterval: non-integer
krbpwdfailurecountinterval: upper range integer
krbpwdfailurecountinterval: lower range integer
krbpwdlockoutduration: non-integer
krbpwdlockoutduration: upper range integer
krbpwdlockoutduration: lower range integer
deletePolicy_with various scenario
MeasurementUnitAdded_Bug798363
Delete global password policy
add_Policy_adder_dialog_bug910463
delete_Policy_deleter_dialog_bug910463
test field: cospriority
modifyPolicy(undo/refresh/reset)
empty policy name
upper bound of data range
lower bound of data range
non integer for policy priority
Signed-off-by: Varun Mylaraiah <mvarun@redhat.com >
Reviewed-By: Pavel Picka <ppicka@redhat.com >
2018-06-27 13:31:54 +02:00
Michal Reznik
2d278720db
ui_tests: extend test_config.py suite
...
Extend test_config.py suite with new test cases.
Added tests:
config_email_undo
config_groupsearch_reset
groupsearchfield_blank
groupsearchfield_existing
groupsearchfield_leading_space
groupsearchfield_notallowed
groupsearchfield_trailing_space
usersearchfield_trailing_space
sizelimit_blank
sizelimit_letter
sizelimit_space
timelimit_blank
timelimit_letter
timelimit_negative
timelimit_space
userDefaultShell_blank
userDefaultShell_leading_space
userDefaultShell_new
userDefaultShell_specialchar
userDefaultShell_trailing_space
useremail_leading_space
useremail_new
useremail_trailing_space
usergroup_new
userhomedir_blank
userhomedir_leading_space
userhomedir_numbers
userhomedir_space_inbetween
userhomedir_specialchar
userhomedir_trailing_space
usermigrationmode_disable
usermigrationmode_enable
usernamelength_blank
usernamelength_letters
usernamelength_max
usernamelength_new
usernamelength_space_inbetween
usernamelength_specialchar
userpwdexpnotify_blank
userpwdexpnotify_letters
userpwdexpnotify_max
userpwdexpnotify_space_inbetween
userpwdexpnotify_specialchar
usersearchfield_blank
usersearchfield_existing
usersearchfield_leading_space
usersearchfield_new
usersearchfield_notallowed
https://pagure.io/freeipa/issue/7576
Reviewed-By: Pavel Picka <ppicka@redhat.com >
2018-06-19 14:58:08 +02:00