mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
webui tests: range test extended
Range test extended with checking of disabled field according to trust types. Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
This commit is contained in:
committed by
Petr Vobornik
parent
5b12367ca8
commit
aa43732910
@@ -95,6 +95,7 @@ class range_tasks(UI_driver):
|
|||||||
('textbox', 'ipaidrangesize', str(size)),
|
('textbox', 'ipaidrangesize', str(size)),
|
||||||
('textbox', 'ipabaserid', str(base_rid)),
|
('textbox', 'ipabaserid', str(base_rid)),
|
||||||
('radio', 'iparangetype', range_type),
|
('radio', 'iparangetype', range_type),
|
||||||
|
('callback', self.check_range_type_mod, range_type)
|
||||||
]
|
]
|
||||||
|
|
||||||
if not sid:
|
if not sid:
|
||||||
@@ -105,3 +106,11 @@ class range_tasks(UI_driver):
|
|||||||
add.append(('textbox', 'ipanttrusteddomainsid', sid))
|
add.append(('textbox', 'ipanttrusteddomainsid', sid))
|
||||||
|
|
||||||
return add
|
return add
|
||||||
|
|
||||||
|
def check_range_type_mod(self, range_type):
|
||||||
|
if range_type == 'ipa-local':
|
||||||
|
self.assert_disabled("[name=ipanttrusteddomainsid]")
|
||||||
|
self.assert_disabled("[name=ipasecondarybaserid]", negative=True)
|
||||||
|
elif range_type == 'ipa-ad-trust':
|
||||||
|
self.assert_disabled("[name=ipanttrusteddomainsid]", negative=True)
|
||||||
|
self.assert_disabled("[name=ipasecondarybaserid]")
|
||||||
|
|||||||
Reference in New Issue
Block a user