292d686 pytest: Migrate xunit-style setups to Pytest fixtures

57 files Authored by slev 4 years ago, Committed by abbra 4 years ago,
57 files changed. 436 lines added. 420 lines removed.
ipatests/pytest_ipa/integration/__init__.py
file modified
+7 -4
ipatests/test_cmdline/cmdline.py
file modified
+5 -3
ipatests/test_cmdline/test_ipagetkeytab.py
file modified
+24 -29
ipatests/test_integration/base.py
file modified
+0 -8
ipatests/test_integration/test_nfs.py
file modified
+7 -2
ipatests/test_integration/test_ntp_options.py
file modified
+14 -8
ipatests/test_integration/test_ordering.py
file modified
+5 -2
ipatests/test_integration/test_replica_promotion.py
file modified
+16 -10
ipatests/test_ipalib/test_rpc.py
file modified
+12 -10
ipatests/test_ipalib/test_text.py
file modified
+7 -5
ipatests/test_ipapython/test_ipautil.py
file modified
+2 -1
ipatests/test_ipapython/test_keyring.py
file modified
+2 -1
ipatests/test_ipapython/test_session_storage.py
file modified
+2 -1
ipatests/test_ipaserver/test_changepw.py
file modified
+9 -6
ipatests/test_ipaserver/test_install/test_installer.py
file modified
+9 -5
ipatests/test_ipaserver/test_kadmin.py
file modified
+3 -3
ipatests/test_ipaserver/test_ldap.py
file modified
+12 -8
ipatests/test_ipaserver/test_migratepw.py
file modified
+9 -9
ipatests/test_ipaserver/test_topology_plugin.py
file modified
+6 -4
ipatests/test_webui/test_automember.py
file modified
+2 -2
ipatests/test_webui/test_automount.py
file modified
+2 -2
ipatests/test_webui/test_cert.py
file modified
+2 -3
ipatests/test_webui/test_dns.py
file modified
+2 -3
ipatests/test_webui/test_host.py
file modified
+2 -2
ipatests/test_webui/test_loginscreen.py
file modified
+12 -12
ipatests/test_webui/test_range.py
file modified
+2 -2
ipatests/test_webui/test_trust.py
file modified
+6 -2
ipatests/test_webui/test_vault.py
file modified
+6 -2
ipatests/test_webui/ui_driver.py
file modified
+9 -6
ipatests/test_xmlrpc/test_add_remove_cert_cmd.py
file modified
+23 -15
ipatests/test_xmlrpc/test_attr.py
file modified
+1 -1
ipatests/test_xmlrpc/test_automember_plugin.py
file modified
+13 -13
ipatests/test_xmlrpc/test_ca_plugin.py
file modified
+3 -3
ipatests/test_xmlrpc/test_caacl_plugin.py
file modified
+6 -6
ipatests/test_xmlrpc/test_caacl_profile_enforcement.py
file modified
+9 -9
ipatests/test_xmlrpc/test_cert_plugin.py
file modified
+16 -24
ipatests/test_xmlrpc/test_cert_request_ip_address.py
file modified
+1 -1
ipatests/test_xmlrpc/test_certmap_plugin.py
file modified
+4 -4
ipatests/test_xmlrpc/test_certprofile_plugin.py
file modified
+4 -4
ipatests/test_xmlrpc/test_dns_plugin.py
file modified
+14 -27
ipatests/test_xmlrpc/test_external_members.py
file modified
+2 -3
ipatests/test_xmlrpc/test_group_plugin.py
file modified
+5 -5
ipatests/test_xmlrpc/test_host_plugin.py
file modified
+13 -13
ipatests/test_xmlrpc/test_hostgroup_plugin.py
file modified
+4 -4
ipatests/test_xmlrpc/test_location_plugin.py
file modified
+4 -4
ipatests/test_xmlrpc/test_nesting.py
file modified
+11 -11
ipatests/test_xmlrpc/test_permission_plugin.py
file modified
+2 -4
ipatests/test_xmlrpc/test_range_plugin.py
file modified
+33 -29
ipatests/test_xmlrpc/test_replace.py
file modified
+1 -1
ipatests/test_xmlrpc/test_stageuser_plugin.py
file modified
+16 -16
ipatests/test_xmlrpc/test_sudocmd_plugin.py
file modified
+3 -3
ipatests/test_xmlrpc/test_sudocmdgroup_plugin.py
file modified
+5 -5
ipatests/test_xmlrpc/test_trust_plugin.py
file modified
+2 -4
ipatests/test_xmlrpc/test_user_plugin.py
file modified
+17 -22
ipatests/test_xmlrpc/test_vault_plugin.py
file modified
+2 -5
ipatests/test_xmlrpc/xmlrpc_test.py
file modified
+16 -19
ipatests/util.py
file modified
+10 -10
    pytest: Migrate xunit-style setups to Pytest fixtures
    
    Even though Pytest supports xunit style setups, unittest and nose
    tests, this support is limited and may be dropped in the future
    releases. Worst of all is that the mixing of various test
    frameworks results in weird conflicts and of course, is not widely
    tested.
    
    This is a part of work to remove the mixing of test idioms in the
    IPA's test suite:
    1) replace xunit style
    2) employ the fixtures' interdependencies
    
    Related: https://pagure.io/freeipa/issue/7989
    Signed-off-by: Stanislav Levin <slev@altlinux.org>
    Reviewed-By: Christian Heimes <cheimes@redhat.com>
    
        
file modified
+10 -10