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:
Serhii Tsymbaliuk authored and Alexander Bokovoy committed 2021-06-03 20:10:57 +03:00
1 parent 15b47c8b0c
commit dfbafafc3e
2 files changed
+42 -3

No files matched your search

+8 -1
View File
@@ -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