mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
webui-ci: decorate all webui tests with screenshot decorator
Reviewed-By: Adam Misnyovszki <amisnyov@redhat.com>
This commit is contained in:
parent
6a61378586
commit
6d618853a4
@ -22,6 +22,7 @@ Automember tests
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from ipatests.test_webui.ui_driver import UI_driver
|
from ipatests.test_webui.ui_driver import UI_driver
|
||||||
|
from ipatests.test_webui.ui_driver import screenshot
|
||||||
import ipatests.test_webui.data_hostgroup as hostgroup
|
import ipatests.test_webui.data_hostgroup as hostgroup
|
||||||
from ipatests.test_webui.test_host import host_tasks
|
from ipatests.test_webui.test_host import host_tasks
|
||||||
|
|
||||||
@ -51,6 +52,7 @@ HOST_GROUP_DATA = {
|
|||||||
|
|
||||||
class test_automember(UI_driver):
|
class test_automember(UI_driver):
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_crud(self):
|
def test_crud(self):
|
||||||
"""
|
"""
|
||||||
Basic CRUD: automember
|
Basic CRUD: automember
|
||||||
@ -83,6 +85,7 @@ class test_automember(UI_driver):
|
|||||||
# cleanup
|
# cleanup
|
||||||
self.delete(hostgroup.ENTITY, [hostgroup.DATA])
|
self.delete(hostgroup.ENTITY, [hostgroup.DATA])
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_rebuild_membership_hosts(self):
|
def test_rebuild_membership_hosts(self):
|
||||||
"""
|
"""
|
||||||
Test automember rebuild membership feature for hosts
|
Test automember rebuild membership feature for hosts
|
||||||
@ -169,6 +172,7 @@ class test_automember(UI_driver):
|
|||||||
self.delete('automember', [{'pkey': 'webservers'}],
|
self.delete('automember', [{'pkey': 'webservers'}],
|
||||||
facet='searchhostgroup')
|
facet='searchhostgroup')
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_rebuild_membership_users(self):
|
def test_rebuild_membership_users(self):
|
||||||
"""
|
"""
|
||||||
Test automember rebuild membership feature for users
|
Test automember rebuild membership feature for users
|
||||||
|
@ -22,6 +22,7 @@ Automount tests
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from ipatests.test_webui.ui_driver import UI_driver
|
from ipatests.test_webui.ui_driver import UI_driver
|
||||||
|
from ipatests.test_webui.ui_driver import screenshot
|
||||||
|
|
||||||
LOC_ENTITY = 'automountlocation'
|
LOC_ENTITY = 'automountlocation'
|
||||||
MAP_ENTITY = 'automountmap'
|
MAP_ENTITY = 'automountmap'
|
||||||
@ -62,6 +63,7 @@ KEY_DATA = {
|
|||||||
|
|
||||||
class test_automount(UI_driver):
|
class test_automount(UI_driver):
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_crud(self):
|
def test_crud(self):
|
||||||
"""
|
"""
|
||||||
Basic CRUD: automount
|
Basic CRUD: automount
|
||||||
|
@ -22,6 +22,7 @@ Cert tests
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from ipatests.test_webui.ui_driver import UI_driver
|
from ipatests.test_webui.ui_driver import UI_driver
|
||||||
|
from ipatests.test_webui.ui_driver import screenshot
|
||||||
|
|
||||||
ENTITY = 'cert'
|
ENTITY = 'cert'
|
||||||
|
|
||||||
@ -34,6 +35,7 @@ class test_cert(UI_driver):
|
|||||||
if not self.has_ca():
|
if not self.has_ca():
|
||||||
self.skip('CA not configured')
|
self.skip('CA not configured')
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_read(self):
|
def test_read(self):
|
||||||
"""
|
"""
|
||||||
Basic read: cert
|
Basic read: cert
|
||||||
|
@ -22,6 +22,7 @@ Config tests
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from ipatests.test_webui.ui_driver import UI_driver
|
from ipatests.test_webui.ui_driver import UI_driver
|
||||||
|
from ipatests.test_webui.ui_driver import screenshot
|
||||||
|
|
||||||
ENTITY = 'config'
|
ENTITY = 'config'
|
||||||
|
|
||||||
@ -42,6 +43,7 @@ DATA2 = {
|
|||||||
|
|
||||||
class test_config(UI_driver):
|
class test_config(UI_driver):
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_mod(self):
|
def test_mod(self):
|
||||||
"""
|
"""
|
||||||
Config mod tests
|
Config mod tests
|
||||||
|
@ -22,6 +22,7 @@ Delegation tests
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from ipatests.test_webui.ui_driver import UI_driver
|
from ipatests.test_webui.ui_driver import UI_driver
|
||||||
|
from ipatests.test_webui.ui_driver import screenshot
|
||||||
|
|
||||||
ENTITY = 'delegation'
|
ENTITY = 'delegation'
|
||||||
PKEY = 'itest-delegation-rule'
|
PKEY = 'itest-delegation-rule'
|
||||||
@ -43,6 +44,7 @@ DATA = {
|
|||||||
|
|
||||||
class test_delegation(UI_driver):
|
class test_delegation(UI_driver):
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_crud(self):
|
def test_crud(self):
|
||||||
"""
|
"""
|
||||||
Basic CRUD: delegation
|
Basic CRUD: delegation
|
||||||
|
@ -22,6 +22,7 @@ DNS tests
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from ipatests.test_webui.ui_driver import UI_driver
|
from ipatests.test_webui.ui_driver import UI_driver
|
||||||
|
from ipatests.test_webui.ui_driver import screenshot
|
||||||
|
|
||||||
ZONE_ENTITY = 'dnszone'
|
ZONE_ENTITY = 'dnszone'
|
||||||
RECORD_ENTITY = 'dnsrecord'
|
RECORD_ENTITY = 'dnsrecord'
|
||||||
@ -76,6 +77,7 @@ class test_dns(UI_driver):
|
|||||||
if not self.has_dns():
|
if not self.has_dns():
|
||||||
self.skip('DNS not configured')
|
self.skip('DNS not configured')
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_zone_record_crud(self):
|
def test_zone_record_crud(self):
|
||||||
"""
|
"""
|
||||||
Basic CRUD: dns
|
Basic CRUD: dns
|
||||||
@ -99,6 +101,7 @@ class test_dns(UI_driver):
|
|||||||
self.navigate_by_breadcrumb("DNS Zones")
|
self.navigate_by_breadcrumb("DNS Zones")
|
||||||
self.delete_record(ZONE_PKEY)
|
self.delete_record(ZONE_PKEY)
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_last_entry_deletion(self):
|
def test_last_entry_deletion(self):
|
||||||
"""
|
"""
|
||||||
Test last entry deletion
|
Test last entry deletion
|
||||||
@ -117,6 +120,7 @@ class test_dns(UI_driver):
|
|||||||
self.navigate_by_breadcrumb("DNS Zones")
|
self.navigate_by_breadcrumb("DNS Zones")
|
||||||
self.delete_record(ZONE_PKEY)
|
self.delete_record(ZONE_PKEY)
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_config_crud(self):
|
def test_config_crud(self):
|
||||||
"""
|
"""
|
||||||
Basic CRUD: dnsconfig
|
Basic CRUD: dnsconfig
|
||||||
|
@ -22,6 +22,7 @@ Group tests
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from ipatests.test_webui.ui_driver import UI_driver
|
from ipatests.test_webui.ui_driver import UI_driver
|
||||||
|
from ipatests.test_webui.ui_driver import screenshot
|
||||||
import ipatests.test_webui.data_group as group
|
import ipatests.test_webui.data_group as group
|
||||||
import ipatests.test_webui.data_user as user
|
import ipatests.test_webui.data_user as user
|
||||||
import ipatests.test_webui.data_netgroup as netgroup
|
import ipatests.test_webui.data_netgroup as netgroup
|
||||||
@ -32,6 +33,7 @@ import ipatests.test_webui.data_sudo as sudo
|
|||||||
|
|
||||||
class test_group(UI_driver):
|
class test_group(UI_driver):
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_crud(self):
|
def test_crud(self):
|
||||||
"""
|
"""
|
||||||
Basic CRUD: group
|
Basic CRUD: group
|
||||||
@ -40,6 +42,7 @@ class test_group(UI_driver):
|
|||||||
self.basic_crud(group.ENTITY, group.DATA,
|
self.basic_crud(group.ENTITY, group.DATA,
|
||||||
default_facet=group.DEFAULT_FACET)
|
default_facet=group.DEFAULT_FACET)
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_actions(self):
|
def test_actions(self):
|
||||||
"""
|
"""
|
||||||
Test group actions
|
Test group actions
|
||||||
@ -79,6 +82,7 @@ class test_group(UI_driver):
|
|||||||
self.assert_facet(entity, 'search')
|
self.assert_facet(entity, 'search')
|
||||||
self.assert_record(pkey, negative=True)
|
self.assert_record(pkey, negative=True)
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_associations(self):
|
def test_associations(self):
|
||||||
"""
|
"""
|
||||||
Test group associations
|
Test group associations
|
||||||
@ -122,6 +126,7 @@ class test_group(UI_driver):
|
|||||||
self.delete(hbac.RULE_ENTITY, [hbac.RULE_DATA])
|
self.delete(hbac.RULE_ENTITY, [hbac.RULE_DATA])
|
||||||
self.delete(sudo.RULE_ENTITY, [sudo.RULE_DATA])
|
self.delete(sudo.RULE_ENTITY, [sudo.RULE_DATA])
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_indirect_associations(self):
|
def test_indirect_associations(self):
|
||||||
"""
|
"""
|
||||||
Group indirect associations
|
Group indirect associations
|
||||||
|
@ -22,12 +22,14 @@ HBAC tests
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from ipatests.test_webui.ui_driver import UI_driver
|
from ipatests.test_webui.ui_driver import UI_driver
|
||||||
|
from ipatests.test_webui.ui_driver import screenshot
|
||||||
import ipatests.test_webui.data_hbac as hbac
|
import ipatests.test_webui.data_hbac as hbac
|
||||||
import ipatests.test_webui.data_hostgroup as hostgroup
|
import ipatests.test_webui.data_hostgroup as hostgroup
|
||||||
|
|
||||||
|
|
||||||
class test_hbac(UI_driver):
|
class test_hbac(UI_driver):
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_crud(self):
|
def test_crud(self):
|
||||||
"""
|
"""
|
||||||
Basic CRUD: hbac
|
Basic CRUD: hbac
|
||||||
@ -38,6 +40,7 @@ class test_hbac(UI_driver):
|
|||||||
self.basic_crud(hbac.SVCGROUP_ENTITY, hbac.SVCGROUP_DATA,
|
self.basic_crud(hbac.SVCGROUP_ENTITY, hbac.SVCGROUP_DATA,
|
||||||
default_facet=hbac.SVCGROUP_DEF_FACET)
|
default_facet=hbac.SVCGROUP_DEF_FACET)
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_mod(self):
|
def test_mod(self):
|
||||||
"""
|
"""
|
||||||
Mod: hbac
|
Mod: hbac
|
||||||
@ -72,6 +75,7 @@ class test_hbac(UI_driver):
|
|||||||
self.delete(hbac.RULE_ENTITY, [hbac.RULE_DATA])
|
self.delete(hbac.RULE_ENTITY, [hbac.RULE_DATA])
|
||||||
self.delete(hostgroup.ENTITY, [hostgroup.DATA])
|
self.delete(hostgroup.ENTITY, [hostgroup.DATA])
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_actions(self):
|
def test_actions(self):
|
||||||
"""
|
"""
|
||||||
Test hbac rule actions
|
Test hbac rule actions
|
||||||
@ -85,6 +89,7 @@ class test_hbac(UI_driver):
|
|||||||
self.enable_action()
|
self.enable_action()
|
||||||
self.delete_action(hbac.RULE_ENTITY, hbac.RULE_PKEY)
|
self.delete_action(hbac.RULE_ENTITY, hbac.RULE_PKEY)
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_hbac_test(self):
|
def test_hbac_test(self):
|
||||||
"""
|
"""
|
||||||
Test HBAC test UI
|
Test HBAC test UI
|
||||||
|
@ -22,6 +22,7 @@ Host tests
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from ipatests.test_webui.ui_driver import UI_driver
|
from ipatests.test_webui.ui_driver import UI_driver
|
||||||
|
from ipatests.test_webui.ui_driver import screenshot
|
||||||
import ipatests.test_webui.data_hostgroup as hostgroup
|
import ipatests.test_webui.data_hostgroup as hostgroup
|
||||||
import ipatests.test_webui.data_netgroup as netgroup
|
import ipatests.test_webui.data_netgroup as netgroup
|
||||||
import ipatests.test_webui.data_hbac as hbac
|
import ipatests.test_webui.data_hbac as hbac
|
||||||
@ -104,6 +105,7 @@ class host_tasks(UI_driver):
|
|||||||
|
|
||||||
class test_host(host_tasks):
|
class test_host(host_tasks):
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_crud(self):
|
def test_crud(self):
|
||||||
"""
|
"""
|
||||||
Basic CRUD: host
|
Basic CRUD: host
|
||||||
@ -111,6 +113,7 @@ class test_host(host_tasks):
|
|||||||
self.init_app()
|
self.init_app()
|
||||||
self.basic_crud(ENTITY, self.data)
|
self.basic_crud(ENTITY, self.data)
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_certificates(self):
|
def test_certificates(self):
|
||||||
"""
|
"""
|
||||||
Test host certificate actions
|
Test host certificate actions
|
||||||
@ -175,6 +178,7 @@ class test_host(host_tasks):
|
|||||||
self.navigate_to_entity(ENTITY, 'search')
|
self.navigate_to_entity(ENTITY, 'search')
|
||||||
self.delete_record(self.pkey, self.data.get('del'))
|
self.delete_record(self.pkey, self.data.get('del'))
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_ca_less(self):
|
def test_ca_less(self):
|
||||||
"""
|
"""
|
||||||
Test host certificate actions in CA-less install
|
Test host certificate actions in CA-less install
|
||||||
@ -198,6 +202,7 @@ class test_host(host_tasks):
|
|||||||
self.navigate_by_breadcrumb('Hosts')
|
self.navigate_by_breadcrumb('Hosts')
|
||||||
self.delete_record(self.pkey, self.data.get('del'))
|
self.delete_record(self.pkey, self.data.get('del'))
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_kerberos_flags(self):
|
def test_kerberos_flags(self):
|
||||||
"""
|
"""
|
||||||
Test Kerberos flags
|
Test Kerberos flags
|
||||||
@ -220,6 +225,7 @@ class test_host(host_tasks):
|
|||||||
self.validate_fields([('checkbox', name, [])])
|
self.validate_fields([('checkbox', name, [])])
|
||||||
self.delete_record(self.pkey, self.data.get('del'))
|
self.delete_record(self.pkey, self.data.get('del'))
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_associations(self):
|
def test_associations(self):
|
||||||
"""
|
"""
|
||||||
Host direct associations
|
Host direct associations
|
||||||
@ -258,6 +264,7 @@ class test_host(host_tasks):
|
|||||||
self.delete(hbac.RULE_ENTITY, [hbac.RULE_DATA])
|
self.delete(hbac.RULE_ENTITY, [hbac.RULE_DATA])
|
||||||
self.delete(sudo.RULE_ENTITY, [sudo.RULE_DATA])
|
self.delete(sudo.RULE_ENTITY, [sudo.RULE_DATA])
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_indirect_associations(self):
|
def test_indirect_associations(self):
|
||||||
"""
|
"""
|
||||||
Host indirect associations
|
Host indirect associations
|
||||||
|
@ -22,6 +22,7 @@ Hostgroup tests
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from ipatests.test_webui.ui_driver import UI_driver
|
from ipatests.test_webui.ui_driver import UI_driver
|
||||||
|
from ipatests.test_webui.ui_driver import screenshot
|
||||||
import ipatests.test_webui.data_hostgroup as hostgroup
|
import ipatests.test_webui.data_hostgroup as hostgroup
|
||||||
from ipatests.test_webui.test_host import host_tasks, ENTITY as HOST_ENTITY
|
from ipatests.test_webui.test_host import host_tasks, ENTITY as HOST_ENTITY
|
||||||
import ipatests.test_webui.data_netgroup as netgroup
|
import ipatests.test_webui.data_netgroup as netgroup
|
||||||
@ -32,6 +33,7 @@ import ipatests.test_webui.data_sudo as sudo
|
|||||||
|
|
||||||
class test_hostgroup(UI_driver):
|
class test_hostgroup(UI_driver):
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_crud(self):
|
def test_crud(self):
|
||||||
"""
|
"""
|
||||||
Basic CRUD: hostgroup
|
Basic CRUD: hostgroup
|
||||||
@ -40,6 +42,7 @@ class test_hostgroup(UI_driver):
|
|||||||
self.basic_crud(hostgroup.ENTITY, hostgroup.DATA,
|
self.basic_crud(hostgroup.ENTITY, hostgroup.DATA,
|
||||||
default_facet=hostgroup.DEFAULT_FACET)
|
default_facet=hostgroup.DEFAULT_FACET)
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_associations(self):
|
def test_associations(self):
|
||||||
"""
|
"""
|
||||||
Hostgroup associations
|
Hostgroup associations
|
||||||
@ -80,6 +83,7 @@ class test_hostgroup(UI_driver):
|
|||||||
self.delete(hbac.RULE_ENTITY, [hbac.RULE_DATA])
|
self.delete(hbac.RULE_ENTITY, [hbac.RULE_DATA])
|
||||||
self.delete(sudo.RULE_ENTITY, [sudo.RULE_DATA])
|
self.delete(sudo.RULE_ENTITY, [sudo.RULE_DATA])
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_indirect_associations(self):
|
def test_indirect_associations(self):
|
||||||
"""
|
"""
|
||||||
Hostgroup indirect associations
|
Hostgroup indirect associations
|
||||||
|
@ -22,6 +22,7 @@ Kerberos policy tests
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from ipatests.test_webui.ui_driver import UI_driver
|
from ipatests.test_webui.ui_driver import UI_driver
|
||||||
|
from ipatests.test_webui.ui_driver import screenshot
|
||||||
|
|
||||||
ENTITY = 'krbtpolicy'
|
ENTITY = 'krbtpolicy'
|
||||||
|
|
||||||
@ -42,6 +43,7 @@ DATA2 = {
|
|||||||
|
|
||||||
class test_krbtpolicy(UI_driver):
|
class test_krbtpolicy(UI_driver):
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_mod(self):
|
def test_mod(self):
|
||||||
"""
|
"""
|
||||||
Kerberos policy mod test
|
Kerberos policy mod test
|
||||||
|
@ -22,6 +22,7 @@ Basic ui tests
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from ipatests.test_webui.ui_driver import UI_driver
|
from ipatests.test_webui.ui_driver import UI_driver
|
||||||
|
from ipatests.test_webui.ui_driver import screenshot
|
||||||
|
|
||||||
|
|
||||||
ENTITIES = [
|
ENTITIES = [
|
||||||
@ -63,6 +64,7 @@ ENTITIES = [
|
|||||||
|
|
||||||
class test_navigation(UI_driver):
|
class test_navigation(UI_driver):
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_url_navigation(self):
|
def test_url_navigation(self):
|
||||||
"""
|
"""
|
||||||
Navigation test: direct url change
|
Navigation test: direct url change
|
||||||
@ -88,6 +90,7 @@ class test_navigation(UI_driver):
|
|||||||
url = self.get_url(e)
|
url = self.get_url(e)
|
||||||
self.assert_e_url(url, e)
|
self.assert_e_url(url, e)
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_menu_navigation(self):
|
def test_menu_navigation(self):
|
||||||
"""
|
"""
|
||||||
Navigation test: menu items
|
Navigation test: menu items
|
||||||
|
@ -22,6 +22,7 @@ Netgroup tests
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from ipatests.test_webui.ui_driver import UI_driver
|
from ipatests.test_webui.ui_driver import UI_driver
|
||||||
|
from ipatests.test_webui.ui_driver import screenshot
|
||||||
import ipatests.test_webui.data_netgroup as netgroup
|
import ipatests.test_webui.data_netgroup as netgroup
|
||||||
import ipatests.test_webui.data_user as user
|
import ipatests.test_webui.data_user as user
|
||||||
import ipatests.test_webui.data_group as group
|
import ipatests.test_webui.data_group as group
|
||||||
@ -31,6 +32,7 @@ from ipatests.test_webui.test_host import host_tasks, ENTITY as HOST_ENTITY
|
|||||||
|
|
||||||
class test_netgroup(UI_driver):
|
class test_netgroup(UI_driver):
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_crud(self):
|
def test_crud(self):
|
||||||
"""
|
"""
|
||||||
Basic CRUD: netgroup
|
Basic CRUD: netgroup
|
||||||
@ -38,6 +40,7 @@ class test_netgroup(UI_driver):
|
|||||||
self.init_app()
|
self.init_app()
|
||||||
self.basic_crud(netgroup.ENTITY, netgroup.DATA)
|
self.basic_crud(netgroup.ENTITY, netgroup.DATA)
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_mod(self):
|
def test_mod(self):
|
||||||
"""
|
"""
|
||||||
Mod: netgroup
|
Mod: netgroup
|
||||||
|
@ -22,6 +22,7 @@ Password policy tests
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from ipatests.test_webui.ui_driver import UI_driver
|
from ipatests.test_webui.ui_driver import UI_driver
|
||||||
|
from ipatests.test_webui.ui_driver import screenshot
|
||||||
|
|
||||||
ENTITY = 'pwpolicy'
|
ENTITY = 'pwpolicy'
|
||||||
DATA = {
|
DATA = {
|
||||||
@ -45,6 +46,7 @@ DATA = {
|
|||||||
|
|
||||||
class test_pwpolicy(UI_driver):
|
class test_pwpolicy(UI_driver):
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_crud(self):
|
def test_crud(self):
|
||||||
"""
|
"""
|
||||||
Basic CRUD: pwpolicy
|
Basic CRUD: pwpolicy
|
||||||
|
@ -22,6 +22,7 @@ Range tests
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import ipatests.test_webui.test_trust as trust_mod
|
import ipatests.test_webui.test_trust as trust_mod
|
||||||
|
from ipatests.test_webui.ui_driver import screenshot
|
||||||
from ipatests.test_webui.task_range import range_tasks
|
from ipatests.test_webui.task_range import range_tasks
|
||||||
|
|
||||||
ENTITY = 'idrange'
|
ENTITY = 'idrange'
|
||||||
@ -30,6 +31,7 @@ PKEY = 'itest-range'
|
|||||||
|
|
||||||
class test_range(range_tasks):
|
class test_range(range_tasks):
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_crud(self):
|
def test_crud(self):
|
||||||
"""
|
"""
|
||||||
Basic CRUD: range
|
Basic CRUD: range
|
||||||
@ -38,6 +40,7 @@ class test_range(range_tasks):
|
|||||||
self.get_shifts()
|
self.get_shifts()
|
||||||
self.basic_crud(ENTITY, self.get_data(PKEY))
|
self.basic_crud(ENTITY, self.get_data(PKEY))
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_types(self):
|
def test_types(self):
|
||||||
"""
|
"""
|
||||||
Test range types
|
Test range types
|
||||||
|
@ -22,6 +22,7 @@ RBAC tests
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from ipatests.test_webui.ui_driver import UI_driver
|
from ipatests.test_webui.ui_driver import UI_driver
|
||||||
|
from ipatests.test_webui.ui_driver import screenshot
|
||||||
|
|
||||||
ROLE_ENTITY = 'role'
|
ROLE_ENTITY = 'role'
|
||||||
ROLE_DEF_FACET = 'member_user'
|
ROLE_DEF_FACET = 'member_user'
|
||||||
@ -71,6 +72,7 @@ PERMISSION_DATA = {
|
|||||||
|
|
||||||
class test_rbac(UI_driver):
|
class test_rbac(UI_driver):
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_crud(self):
|
def test_crud(self):
|
||||||
"""
|
"""
|
||||||
Basic CRUD: RBAC
|
Basic CRUD: RBAC
|
||||||
|
@ -22,12 +22,14 @@ Realm domains tests
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from ipatests.test_webui.ui_driver import UI_driver
|
from ipatests.test_webui.ui_driver import UI_driver
|
||||||
|
from ipatests.test_webui.ui_driver import screenshot
|
||||||
|
|
||||||
ENTITY = 'realmdomains'
|
ENTITY = 'realmdomains'
|
||||||
|
|
||||||
|
|
||||||
class test_realmdomains(UI_driver):
|
class test_realmdomains(UI_driver):
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_read(self):
|
def test_read(self):
|
||||||
"""
|
"""
|
||||||
Realm domains mod tests
|
Realm domains mod tests
|
||||||
|
@ -22,6 +22,7 @@ Selfservice tests
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from ipatests.test_webui.ui_driver import UI_driver
|
from ipatests.test_webui.ui_driver import UI_driver
|
||||||
|
from ipatests.test_webui.ui_driver import screenshot
|
||||||
|
|
||||||
ENTITY = 'selfservice'
|
ENTITY = 'selfservice'
|
||||||
PKEY = 'itest-selfservice-rule'
|
PKEY = 'itest-selfservice-rule'
|
||||||
@ -40,6 +41,7 @@ DATA = {
|
|||||||
|
|
||||||
class test_selfservice(UI_driver):
|
class test_selfservice(UI_driver):
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_crud(self):
|
def test_crud(self):
|
||||||
"""
|
"""
|
||||||
Basic CRUD: selfservice entity
|
Basic CRUD: selfservice entity
|
||||||
|
@ -22,6 +22,7 @@ SELinux user map tests
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from ipatests.test_webui.ui_driver import UI_driver
|
from ipatests.test_webui.ui_driver import UI_driver
|
||||||
|
from ipatests.test_webui.ui_driver import screenshot
|
||||||
import ipatests.test_webui.data_user as user
|
import ipatests.test_webui.data_user as user
|
||||||
import ipatests.test_webui.data_group as group
|
import ipatests.test_webui.data_group as group
|
||||||
import ipatests.test_webui.data_hostgroup as hostgroup
|
import ipatests.test_webui.data_hostgroup as hostgroup
|
||||||
@ -43,6 +44,7 @@ DATA = {
|
|||||||
|
|
||||||
class test_selinuxusermap(UI_driver):
|
class test_selinuxusermap(UI_driver):
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_crud(self):
|
def test_crud(self):
|
||||||
"""
|
"""
|
||||||
Basic CRUD: selinuxusermap
|
Basic CRUD: selinuxusermap
|
||||||
@ -50,6 +52,7 @@ class test_selinuxusermap(UI_driver):
|
|||||||
self.init_app()
|
self.init_app()
|
||||||
self.basic_crud(ENTITY, DATA)
|
self.basic_crud(ENTITY, DATA)
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_mod(self):
|
def test_mod(self):
|
||||||
"""
|
"""
|
||||||
Mod: selinuxusermap
|
Mod: selinuxusermap
|
||||||
@ -91,6 +94,7 @@ class test_selinuxusermap(UI_driver):
|
|||||||
self.delete(HOST_ENTITY, [host.data, host.data2])
|
self.delete(HOST_ENTITY, [host.data, host.data2])
|
||||||
self.delete(hostgroup.ENTITY, [hostgroup.DATA, hostgroup.DATA2])
|
self.delete(hostgroup.ENTITY, [hostgroup.DATA, hostgroup.DATA2])
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_actions(self):
|
def test_actions(self):
|
||||||
"""
|
"""
|
||||||
Test SELinux user map actions
|
Test SELinux user map actions
|
||||||
|
@ -22,6 +22,7 @@ Service tests
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from ipatests.test_webui.ui_driver import UI_driver
|
from ipatests.test_webui.ui_driver import UI_driver
|
||||||
|
from ipatests.test_webui.ui_driver import screenshot
|
||||||
|
|
||||||
ENTITY = 'service'
|
ENTITY = 'service'
|
||||||
|
|
||||||
@ -60,6 +61,7 @@ class sevice_tasks(UI_driver):
|
|||||||
|
|
||||||
class test_service(sevice_tasks):
|
class test_service(sevice_tasks):
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_crud(self):
|
def test_crud(self):
|
||||||
"""
|
"""
|
||||||
Basic CRUD: service
|
Basic CRUD: service
|
||||||
@ -68,6 +70,7 @@ class test_service(sevice_tasks):
|
|||||||
data = self.prep_data()
|
data = self.prep_data()
|
||||||
self.basic_crud(ENTITY, data)
|
self.basic_crud(ENTITY, data)
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_certificates(self):
|
def test_certificates(self):
|
||||||
"""
|
"""
|
||||||
Test service certificate actions
|
Test service certificate actions
|
||||||
@ -135,6 +138,7 @@ class test_service(sevice_tasks):
|
|||||||
self.navigate_to_entity(ENTITY, 'search')
|
self.navigate_to_entity(ENTITY, 'search')
|
||||||
self.delete_record(pkey, data.get('del'))
|
self.delete_record(pkey, data.get('del'))
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_ca_less(self):
|
def test_ca_less(self):
|
||||||
"""
|
"""
|
||||||
Test service certificate actions in CA-less install
|
Test service certificate actions in CA-less install
|
||||||
@ -170,6 +174,7 @@ class test_service(sevice_tasks):
|
|||||||
self.assert_action_panel_action(panel, 'view_cert')
|
self.assert_action_panel_action(panel, 'view_cert')
|
||||||
self.assert_action_panel_action(panel, 'get_cert')
|
self.assert_action_panel_action(panel, 'get_cert')
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_kerberos_flags(self):
|
def test_kerberos_flags(self):
|
||||||
"""
|
"""
|
||||||
Test Kerberos flags
|
Test Kerberos flags
|
||||||
|
@ -22,6 +22,7 @@ Sudo tests
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from ipatests.test_webui.ui_driver import UI_driver
|
from ipatests.test_webui.ui_driver import UI_driver
|
||||||
|
from ipatests.test_webui.ui_driver import screenshot
|
||||||
import ipatests.test_webui.data_sudo as sudo
|
import ipatests.test_webui.data_sudo as sudo
|
||||||
import ipatests.test_webui.data_netgroup as netgroup
|
import ipatests.test_webui.data_netgroup as netgroup
|
||||||
import ipatests.test_webui.data_user as user
|
import ipatests.test_webui.data_user as user
|
||||||
@ -32,6 +33,7 @@ from ipatests.test_webui.test_host import host_tasks, ENTITY as HOST_ENTITY
|
|||||||
|
|
||||||
class test_sudo(UI_driver):
|
class test_sudo(UI_driver):
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_crud(self):
|
def test_crud(self):
|
||||||
"""
|
"""
|
||||||
Basic CRUD: sudo
|
Basic CRUD: sudo
|
||||||
@ -42,6 +44,7 @@ class test_sudo(UI_driver):
|
|||||||
self.basic_crud(sudo.CMDGROUP_ENTITY, sudo.CMDGROUP_DATA,
|
self.basic_crud(sudo.CMDGROUP_ENTITY, sudo.CMDGROUP_DATA,
|
||||||
default_facet=sudo.CMDGROUP_DEF_FACET)
|
default_facet=sudo.CMDGROUP_DEF_FACET)
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_mod(self):
|
def test_mod(self):
|
||||||
"""
|
"""
|
||||||
Mod: sudo
|
Mod: sudo
|
||||||
@ -109,6 +112,7 @@ class test_sudo(UI_driver):
|
|||||||
self.delete(HOST_ENTITY, [host.data, host.data2])
|
self.delete(HOST_ENTITY, [host.data, host.data2])
|
||||||
self.delete(hostgroup.ENTITY, [hostgroup.DATA, hostgroup.DATA2])
|
self.delete(hostgroup.ENTITY, [hostgroup.DATA, hostgroup.DATA2])
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_actions(self):
|
def test_actions(self):
|
||||||
"""
|
"""
|
||||||
Test sudo rule actions
|
Test sudo rule actions
|
||||||
|
@ -22,6 +22,7 @@ Trust tests
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from ipatests.test_webui.ui_driver import UI_driver
|
from ipatests.test_webui.ui_driver import UI_driver
|
||||||
|
from ipatests.test_webui.ui_driver import screenshot
|
||||||
from ipatests.test_webui.task_range import range_tasks
|
from ipatests.test_webui.task_range import range_tasks
|
||||||
|
|
||||||
ENTITY = 'trust'
|
ENTITY = 'trust'
|
||||||
@ -100,6 +101,7 @@ class test_trust(trust_tasks):
|
|||||||
if not self.has_trusts():
|
if not self.has_trusts():
|
||||||
self.skip('Trusts not configured')
|
self.skip('Trusts not configured')
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_crud(self):
|
def test_crud(self):
|
||||||
"""
|
"""
|
||||||
Basic basic CRUD: trust
|
Basic basic CRUD: trust
|
||||||
@ -114,6 +116,7 @@ class test_trust(trust_tasks):
|
|||||||
self.navigate_to_entity('idrange')
|
self.navigate_to_entity('idrange')
|
||||||
self.delete_record(self.get_range_name())
|
self.delete_record(self.get_range_name())
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_range_types(self):
|
def test_range_types(self):
|
||||||
|
|
||||||
self.init_app()
|
self.init_app()
|
||||||
@ -144,6 +147,7 @@ class test_trust(trust_tasks):
|
|||||||
self.assert_record_value('Active Directory trust range with POSIX attributes', range_pkey, column)
|
self.assert_record_value('Active Directory trust range with POSIX attributes', range_pkey, column)
|
||||||
self.delete_record(range_pkey)
|
self.delete_record(range_pkey)
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_config_mod(self):
|
def test_config_mod(self):
|
||||||
|
|
||||||
self.init_app()
|
self.init_app()
|
||||||
|
@ -22,6 +22,7 @@ User tests
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from ipatests.test_webui.ui_driver import UI_driver
|
from ipatests.test_webui.ui_driver import UI_driver
|
||||||
|
from ipatests.test_webui.ui_driver import screenshot
|
||||||
import ipatests.test_webui.data_user as user
|
import ipatests.test_webui.data_user as user
|
||||||
import ipatests.test_webui.data_group as group
|
import ipatests.test_webui.data_group as group
|
||||||
import ipatests.test_webui.data_netgroup as netgroup
|
import ipatests.test_webui.data_netgroup as netgroup
|
||||||
@ -37,6 +38,7 @@ except ImportError:
|
|||||||
|
|
||||||
class test_user(UI_driver):
|
class test_user(UI_driver):
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_crud(self):
|
def test_crud(self):
|
||||||
"""
|
"""
|
||||||
Basic CRUD: user
|
Basic CRUD: user
|
||||||
@ -44,6 +46,7 @@ class test_user(UI_driver):
|
|||||||
self.init_app()
|
self.init_app()
|
||||||
self.basic_crud(user.ENTITY, user.DATA)
|
self.basic_crud(user.ENTITY, user.DATA)
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_associations(self):
|
def test_associations(self):
|
||||||
"""
|
"""
|
||||||
User direct associations
|
User direct associations
|
||||||
@ -80,6 +83,7 @@ class test_user(UI_driver):
|
|||||||
self.delete(hbac.RULE_ENTITY, [hbac.RULE_DATA])
|
self.delete(hbac.RULE_ENTITY, [hbac.RULE_DATA])
|
||||||
self.delete(sudo.RULE_ENTITY, [sudo.RULE_DATA])
|
self.delete(sudo.RULE_ENTITY, [sudo.RULE_DATA])
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_indirect_associations(self):
|
def test_indirect_associations(self):
|
||||||
"""
|
"""
|
||||||
User indirect associations
|
User indirect associations
|
||||||
@ -134,6 +138,7 @@ class test_user(UI_driver):
|
|||||||
self.delete(hbac.RULE_ENTITY, [hbac.RULE_DATA])
|
self.delete(hbac.RULE_ENTITY, [hbac.RULE_DATA])
|
||||||
self.delete(sudo.RULE_ENTITY, [sudo.RULE_DATA])
|
self.delete(sudo.RULE_ENTITY, [sudo.RULE_DATA])
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_actions(self):
|
def test_actions(self):
|
||||||
"""
|
"""
|
||||||
Test user actions
|
Test user actions
|
||||||
@ -154,6 +159,7 @@ class test_user(UI_driver):
|
|||||||
# delete
|
# delete
|
||||||
self.delete_action(user.ENTITY, user.PKEY)
|
self.delete_action(user.ENTITY, user.PKEY)
|
||||||
|
|
||||||
|
@screenshot
|
||||||
def test_password_expiration_notification(self):
|
def test_password_expiration_notification(self):
|
||||||
"""
|
"""
|
||||||
Test password expiration notification
|
Test password expiration notification
|
||||||
|
Loading…
Reference in New Issue
Block a user