From bd7214b91c1cb83a8a776a09bae8610b72b8a5c5 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Thu, 28 Jan 2021 09:46:28 -0500 Subject: [PATCH] ipatests: Update NSSDatabase DBM test on non-DBM-capable installs The string was updated to include the directory the for the database but this was not reflected in the test and not picked up because the tests were executed on Fedora 32 which supports dbm so the test wasn't executed. https://pagure.io/freeipa/issue/8675 Signed-off-by: Rob Crittenden Reviewed-By: Florence Blanc-Renaud --- ipatests/test_ipapython/test_certdb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipatests/test_ipapython/test_certdb.py b/ipatests/test_ipapython/test_certdb.py index 7c0558da8..5b57a222a 100644 --- a/ipatests/test_ipapython/test_certdb.py +++ b/ipatests/test_ipapython/test_certdb.py @@ -76,8 +76,8 @@ def test_dbm_raise(): with pytest.raises(ValueError) as e: NSSDatabase(dbtype="dbm") assert ( - str(e.value) == "NSS is built without support of the legacy " - "database(DBM)" + "NSS is built without support of the legacy database(DBM)" + in str(e.value) )