summaryrefslogtreecommitdiffstats
path: root/ipatests
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-09-22 12:01:47 +0200
committerPetr Vobornik <pvoborni@redhat.com>2014-09-25 10:27:31 +0200
commitdafdd68a6ed7030d7f7a153144b36443603e884f (patch)
tree4d7eddaba7d85b976142dd03e08dca1ba5859926 /ipatests
parenta56c1e58696a2489bf5bf8dd5aca603977c76a1c (diff)
downloadfreeipa-dafdd68a6ed7030d7f7a153144b36443603e884f.tar.gz
freeipa-dafdd68a6ed7030d7f7a153144b36443603e884f.tar.xz
freeipa-dafdd68a6ed7030d7f7a153144b36443603e884f.zip
webui-ci: case-insensitive record check
Indirect association are no longer lower cased, which caused a issue in CI. Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
Diffstat (limited to 'ipatests')
-rw-r--r--ipatests/test_webui/ui_driver.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/ipatests/test_webui/ui_driver.py b/ipatests/test_webui/ui_driver.py
index 9819260ba..bf78fcb57 100644
--- a/ipatests/test_webui/ui_driver.py
+++ b/ipatests/test_webui/ui_driver.py
@@ -1638,12 +1638,13 @@ class UI_driver(object):
Assert that record is in current search table
"""
has = self.has_record(pkey, parent, table_name)
+ has |= self.has_record(pkey.lower(), parent, table_name)
if negative:
assert not has, "Record exists when it shouldn't: %s" % pkey
else:
assert has, 'Record does not exist: %s' % pkey
- def assert_indirect_record(self, pkey, entity, facet, negative=False, switch=True, lower=True):
+ def assert_indirect_record(self, pkey, entity, facet, negative=False, switch=True):
"""
Switch to indirect facet and assert record.
@@ -1655,8 +1656,6 @@ class UI_driver(object):
self.check_option(radio_name, 'indirect')
self.wait_for_request(n=2)
key = pkey
- if lower:
- key = key.lower()
self.assert_record(key, negative=negative)
def assert_record_value(self, expected, pkey, column, parent=None, table_name=None):