WebUI tests: Add test for 'ipaautoprivategroups' field on 'ID Ranges' page
Add test_range_auto_private_groups test case to test_trust WebUI test suite to cover the field. Ticket: https://pagure.io/freeipa/issue/8837 Signed-off-by: Serhii Tsymbaliuk <stsymbal@redhat.com> Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
This commit is contained in:
1 parent
15b47c8b0c
commit
dfbafafc3e
2 files changed
+42
-3
No files matched your search
@@ -147,6 +147,7 @@ class range_tasks(UI_driver):
|
||||
range_type=range_type,
|
||||
size=size,
|
||||
domain=domain,
|
||||
auto_private_groups=kwargs.get('auto_private_groups'),
|
||||
callback=self.check_range_type_mod
|
||||
)
|
||||
|
||||
@@ -173,7 +174,7 @@ class RangeAddFormData:
|
||||
|
||||
def __init__(self, cn, base_id, base_rid=None, secondary_base_rid=None,
|
||||
range_type=LOCAL_ID_RANGE, size=50, domain=None,
|
||||
callback=None):
|
||||
auto_private_groups='', callback=None):
|
||||
self.cn = cn
|
||||
self.base_id = base_id
|
||||
self.base_rid = base_rid
|
||||
@@ -181,6 +182,7 @@ class RangeAddFormData:
|
||||
self.range_type = range_type
|
||||
self.size = size
|
||||
self.domain = domain
|
||||
self.auto_private_groups = auto_private_groups
|
||||
self.callback = callback
|
||||
|
||||
def serialize(self):
|
||||
@@ -203,6 +205,11 @@ class RangeAddFormData:
|
||||
'ipasecondarybaserid',
|
||||
str(self.secondary_base_rid)))
|
||||
|
||||
if self.range_type != LOCAL_ID_RANGE:
|
||||
serialized.append(('selectbox',
|
||||
'ipaautoprivategroups',
|
||||
self.auto_private_groups))
|
||||
|
||||
return serialized
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user