mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Move tasks module to ipatests.pytest_plugins.integration.tasks
https://pagure.io/freeipa/issue/6798 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Milan Kubik <mkubik@redhat.com>
This commit is contained in:
parent
1406dbc8c2
commit
313ae46b57
@ -27,7 +27,7 @@ import argparse
|
||||
|
||||
from ipapython.ipa_log_manager import log_mgr, standard_logging_setup
|
||||
from ipatests.pytest_plugins.integration import config
|
||||
from ipatests.test_integration import tasks
|
||||
from ipatests.pytest_plugins.integration import tasks
|
||||
from ipatests.test_integration.host import Host
|
||||
from ipatests.pytest_plugins.integration import collect_logs
|
||||
|
||||
|
@ -32,6 +32,7 @@ from ipapython import ipautil
|
||||
from ipapython.ipa_log_manager import log_mgr
|
||||
from .config import Config
|
||||
from .env_config import get_global_config
|
||||
from . import tasks
|
||||
|
||||
log = log_mgr.get_logger(__name__)
|
||||
|
||||
@ -154,9 +155,6 @@ def integration_logs(class_integration_logs, request):
|
||||
def mh(request, class_integration_logs):
|
||||
"""IPA's multihost fixture object
|
||||
"""
|
||||
# TODO: cleanup modules
|
||||
from ipatests.test_integration import tasks
|
||||
|
||||
cls = request.cls
|
||||
|
||||
domain_description = {
|
||||
|
@ -22,7 +22,7 @@
|
||||
import pytest
|
||||
|
||||
from ipapython.ipa_log_manager import log_mgr
|
||||
from ipatests.test_integration import tasks
|
||||
from ipatests.pytest_plugins.integration import tasks
|
||||
from pytest_sourceorder import ordered
|
||||
|
||||
log = log_mgr.get_logger(__name__)
|
||||
|
@ -21,7 +21,7 @@
|
||||
# pylint: disable=no-member
|
||||
|
||||
import re
|
||||
from ipatests.test_integration import tasks
|
||||
from ipatests.pytest_plugins.integration import tasks
|
||||
from ipatests.test_integration.base import IntegrationTest
|
||||
|
||||
|
||||
|
@ -27,7 +27,7 @@ from ipaplatform.constants import constants
|
||||
from ipapython.ipa_log_manager import log_mgr
|
||||
from ipapython.dn import DN
|
||||
from ipatests.test_integration.base import IntegrationTest
|
||||
from ipatests.test_integration import tasks
|
||||
from ipatests.pytest_plugins.integration import tasks
|
||||
from ipatests.test_integration.test_dnssec import wait_until_record_is_signed
|
||||
from ipatests.util import assert_deepequal
|
||||
|
||||
|
@ -31,7 +31,7 @@ from ipapython import ipautil
|
||||
from ipaplatform.paths import paths
|
||||
from ipapython.dn import DN
|
||||
from ipatests.test_integration.base import IntegrationTest
|
||||
from ipatests.test_integration import tasks
|
||||
from ipatests.pytest_plugins.integration import tasks
|
||||
from ipalib.constants import DOMAIN_LEVEL_0
|
||||
|
||||
_DEFAULT = object()
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
from ipatests.test_integration.base import IntegrationTest
|
||||
from ipatests.test_integration import tasks
|
||||
from ipatests.pytest_plugins.integration import tasks
|
||||
|
||||
DIRSRV_CONFIG_MODS = """
|
||||
# https://fedorahosted.org/freeipa/ticket/4949
|
||||
|
@ -8,7 +8,7 @@ import dns.rdatatype
|
||||
import dns.rdataclass
|
||||
|
||||
from ipatests.test_integration.base import IntegrationTest
|
||||
from ipatests.test_integration import tasks
|
||||
from ipatests.pytest_plugins.integration import tasks
|
||||
from ipapython.dnsutil import DNSName
|
||||
|
||||
IPA_DEFAULT_MASTER_SRV_REC = (
|
||||
|
@ -8,7 +8,7 @@ import dns.name
|
||||
import time
|
||||
|
||||
from ipatests.test_integration.base import IntegrationTest
|
||||
from ipatests.test_integration import tasks
|
||||
from ipatests.pytest_plugins.integration import tasks
|
||||
from ipaplatform.paths import paths
|
||||
|
||||
test_zone = "dnssec.test."
|
||||
|
@ -18,7 +18,7 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
import os
|
||||
|
||||
from ipatests.test_integration import tasks
|
||||
from ipatests.pytest_plugins.integration import tasks
|
||||
from ipatests.test_integration.base import IntegrationTest
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@ from ipaplatform.paths import paths
|
||||
import pytest
|
||||
|
||||
from ipatests.test_integration.base import IntegrationTest
|
||||
from ipatests.test_integration import tasks
|
||||
from ipatests.pytest_plugins.integration import tasks
|
||||
|
||||
CLIENT_KEYTAB = paths.KRB5_KEYTAB
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
import six
|
||||
from ipatests.test_integration import tasks
|
||||
from ipatests.pytest_plugins.integration import tasks
|
||||
from ipatests.test_integration.base import IntegrationTest
|
||||
from ipaplatform.paths import paths
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
import os
|
||||
import re
|
||||
import string
|
||||
from ipatests.test_integration import tasks
|
||||
from ipatests.pytest_plugins.integration import tasks
|
||||
from ipatests.test_integration.base import IntegrationTest
|
||||
from ipatests.pytest_plugins.integration.env_config import get_global_config
|
||||
from ipaplatform.paths import paths
|
||||
|
@ -11,7 +11,7 @@ import pytest
|
||||
from ipalib.constants import DOMAIN_LEVEL_0
|
||||
from ipatests.pytest_plugins.integration.env_config import get_global_config
|
||||
from ipatests.test_integration.base import IntegrationTest
|
||||
from ipatests.test_integration import tasks
|
||||
from ipatests.pytest_plugins.integration import tasks
|
||||
|
||||
config = get_global_config()
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from ipatests.test_integration.base import IntegrationTest
|
||||
from ipatests.test_integration import tasks
|
||||
from ipatests.pytest_plugins.integration import tasks
|
||||
|
||||
|
||||
class TestKerberosFlags(IntegrationTest):
|
||||
|
@ -26,7 +26,7 @@ import re
|
||||
import nose
|
||||
from ipaplatform.paths import paths
|
||||
|
||||
from ipatests.test_integration import tasks
|
||||
from ipatests.pytest_plugins.integration import tasks
|
||||
|
||||
# importing test_trust under different name to avoid nose executing the test
|
||||
# base class imported from this module
|
||||
|
@ -5,7 +5,7 @@
|
||||
import pytest
|
||||
|
||||
from ipatests.test_integration.base import IntegrationTest
|
||||
from ipatests.test_integration.tasks import clear_sssd_cache
|
||||
from ipatests.pytest_plugins.integration.tasks import clear_sssd_cache
|
||||
|
||||
|
||||
test_data = []
|
||||
|
@ -5,12 +5,12 @@
|
||||
import time
|
||||
import pytest
|
||||
from ipatests.test_integration.base import IntegrationTest
|
||||
from ipatests.test_integration import tasks
|
||||
from ipatests.test_integration.tasks import assert_error
|
||||
from ipatests.pytest_plugins.integration import tasks
|
||||
from ipatests.pytest_plugins.integration.tasks import (
|
||||
assert_error, replicas_cleanup)
|
||||
from ipalib.constants import DOMAIN_LEVEL_0
|
||||
from ipalib.constants import DOMAIN_LEVEL_1
|
||||
from ipalib.constants import DOMAIN_SUFFIX_NAME
|
||||
from ipatests.test_integration.tasks import replicas_cleanup
|
||||
|
||||
|
||||
class ReplicaPromotionBase(IntegrationTest):
|
||||
|
@ -7,7 +7,7 @@ import pytest
|
||||
from ipalib.constants import DOMAIN_LEVEL_0
|
||||
from ipatests.pytest_plugins.integration.env_config import get_global_config
|
||||
from ipatests.test_integration.base import IntegrationTest
|
||||
from ipatests.test_integration import tasks
|
||||
from ipatests.pytest_plugins.integration import tasks
|
||||
|
||||
config = get_global_config()
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
from itertools import permutations
|
||||
|
||||
from ipatests.test_integration.base import IntegrationTest
|
||||
from ipatests.test_integration import tasks
|
||||
from ipatests.pytest_plugins.integration import tasks
|
||||
from ipalib.constants import DOMAIN_LEVEL_1, DOMAIN_SUFFIX_NAME, CA_SUFFIX_NAME
|
||||
|
||||
REMOVAL_ERR_TEMPLATE = ("Removal of '{hostname}' leads to disconnected "
|
||||
|
@ -20,7 +20,7 @@
|
||||
import os
|
||||
|
||||
from ipatests.test_integration.base import IntegrationTest
|
||||
from ipatests.test_integration import tasks
|
||||
from ipatests.pytest_plugins.integration import tasks
|
||||
|
||||
|
||||
class TestServicePermissions(IntegrationTest):
|
||||
|
@ -23,7 +23,7 @@ import pytest
|
||||
|
||||
from ipapython.dn import DN
|
||||
from ipatests.test_integration.base import IntegrationTest
|
||||
from ipatests.test_integration import tasks
|
||||
from ipatests.pytest_plugins.integration import tasks
|
||||
|
||||
|
||||
@pytest.mark.ds_acceptance
|
||||
|
@ -20,7 +20,8 @@
|
||||
import pytest
|
||||
|
||||
from ipatests.test_integration.base import IntegrationTest
|
||||
from ipatests.test_integration.tasks import clear_sssd_cache, modify_sssd_conf
|
||||
from ipatests.pytest_plugins.integration.tasks import (
|
||||
clear_sssd_cache, modify_sssd_conf)
|
||||
from ipatests.test_integration import util
|
||||
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from ipatests.test_integration import tasks
|
||||
from ipatests.pytest_plugins.integration import tasks
|
||||
|
||||
|
||||
def test_topology_star():
|
||||
|
@ -7,7 +7,7 @@ import re
|
||||
import pytest
|
||||
|
||||
from ipatests.test_integration.base import IntegrationTest
|
||||
from ipatests.test_integration import tasks
|
||||
from ipatests.pytest_plugins.integration import tasks
|
||||
from ipatests.pytest_plugins.integration.env_config import get_global_config
|
||||
from ipalib.constants import DOMAIN_SUFFIX_NAME
|
||||
from ipatests.util import assert_deepequal
|
||||
|
@ -21,7 +21,7 @@ import nose
|
||||
import re
|
||||
|
||||
from ipatests.test_integration.base import IntegrationTest
|
||||
from ipatests.test_integration import tasks
|
||||
from ipatests.pytest_plugins.integration import tasks
|
||||
from ipatests.test_integration import util
|
||||
from ipaplatform.paths import paths
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
import time
|
||||
|
||||
from ipatests.test_integration.base import IntegrationTest
|
||||
from ipatests.test_integration import tasks
|
||||
from ipatests.pytest_plugins.integration import tasks
|
||||
|
||||
WAIT_AFTER_ARCHIVE = 30 # give some time to replication
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user