summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Fayans <ofayans@redhat.com>2016-08-04 09:22:31 +0200
committerMartin Basti <mbasti@redhat.com>2016-08-05 13:16:29 +0200
commitbd5746c538a4e1e7f312de7475eaaa4ce6446cc3 (patch)
tree0522db16d874b4d41a3d2d5ce2b6e4c3f670df93
parentd8fe5863d297b74efff9ba6bbb2e8134e457d6e4 (diff)
downloadfreeipa-bd5746c538a4e1e7f312de7475eaaa4ce6446cc3.tar.gz
freeipa-bd5746c538a4e1e7f312de7475eaaa4ce6446cc3.tar.xz
freeipa-bd5746c538a4e1e7f312de7475eaaa4ce6446cc3.zip
Fixed incorrect domainlevel determination in tests
https://fedorahosted.org/freeipa/ticket/6167 Reviewed-By: Martin Basti <mbasti@redhat.com>
-rw-r--r--ipatests/test_integration/tasks.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ipatests/test_integration/tasks.py b/ipatests/test_integration/tasks.py
index 8cd9ec71b..21f5d9a96 100644
--- a/ipatests/test_integration/tasks.py
+++ b/ipatests/test_integration/tasks.py
@@ -301,6 +301,7 @@ def get_replica_filename(replica):
def domainlevel(host):
# Dynamically determines the domainlevel on master. Needed for scenarios
# when domainlevel is changed during the test execution.
+ kinit_admin(host)
result = host.run_command(['ipa', 'domainlevel-get'], raiseonerr=False)
level = 0
domlevel_re = re.compile('.*(\d)')