diff options
author | Christian Heimes <cheimes@redhat.com> | 2017-03-21 16:33:34 +0100 |
---|---|---|
committer | Tomas Krizek <tkrizek@redhat.com> | 2017-03-22 13:42:04 +0100 |
commit | 24161a619049e0fb3b954592f64ee6d561320d2c (patch) | |
tree | ab17ea01c2f8bec7bc6dd2e2773e7b6934e77d46 /ipatests/test_integration/test_sudo.py | |
parent | 5587a37e2345de4e76813e00f4b2751d24c618fc (diff) | |
download | freeipa-24161a619049e0fb3b954592f64ee6d561320d2c.tar.gz freeipa-24161a619049e0fb3b954592f64ee6d561320d2c.tar.xz freeipa-24161a619049e0fb3b954592f64ee6d561320d2c.zip |
Move remaining util functions to tasks module
https://pagure.io/freeipa/issue/6798
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Milan Kubik <mkubik@redhat.com>
Diffstat (limited to 'ipatests/test_integration/test_sudo.py')
-rw-r--r-- | ipatests/test_integration/test_sudo.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ipatests/test_integration/test_sudo.py b/ipatests/test_integration/test_sudo.py index 37d0df8ae..aa4f11c76 100644 --- a/ipatests/test_integration/test_sudo.py +++ b/ipatests/test_integration/test_sudo.py @@ -21,8 +21,7 @@ import pytest from ipatests.test_integration.base import IntegrationTest from ipatests.pytest_plugins.integration.tasks import ( - clear_sssd_cache, modify_sssd_conf) -from ipatests.test_integration import util + clear_sssd_cache, get_host_ip_with_hostmask, modify_sssd_conf) class TestSudo(IntegrationTest): @@ -299,7 +298,7 @@ class TestSudo(IntegrationTest): def test_sudo_rule_restricted_to_one_hostmask_setup(self): # We need to detect the hostmask first - full_ip = util.get_host_ip_with_hostmask(self.client) + full_ip = get_host_ip_with_hostmask(self.client) # Make a note for the next test, which needs to be skipped # if hostmask detection failed @@ -342,7 +341,7 @@ class TestSudo(IntegrationTest): raise pytest.skip("Hostmask could not be detected") # Detect the hostmask first to delete the hostmask based rule - full_ip = util.get_host_ip_with_hostmask(self.client) + full_ip = get_host_ip_with_hostmask(self.client) # Remove the client's hostmask from the rule self.master.run_command(['ipa', '-n', 'sudorule-remove-host', |