summaryrefslogtreecommitdiffstats
path: root/ipatests/test_integration/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipatests/test_integration/util.py')
-rw-r--r--ipatests/test_integration/util.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/ipatests/test_integration/util.py b/ipatests/test_integration/util.py
index 1a1bb3fcc..b2b433519 100644
--- a/ipatests/test_integration/util.py
+++ b/ipatests/test_integration/util.py
@@ -20,6 +20,16 @@
import time
+TESTHOST_PREFIX = 'TESTHOST_'
+
+
+def check_config_dict_empty(dct, name):
+ """Ensure that no keys are left in a configuration dict"""
+ if dct:
+ raise ValueError('Extra keys in confuguration for %s: %s' %
+ (name, ', '.join(dct)))
+
+
def run_repeatedly(host, command, assert_zero_rc=True, test=None,
timeout=30, **kwargs):
"""