From 1efa7c69609e13c06b9b193e42ca94c56c0c3c2e Mon Sep 17 00:00:00 2001 From: Lee Goolsbee Date: Fri, 4 Sep 2026 11:45:23 -0500 Subject: [PATCH] ITPLT-4737 Fix servicedesk absence assertion --- roles/product_install/molecule/default/tests/test_default.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/product_install/molecule/default/tests/test_default.py b/roles/product_install/molecule/default/tests/test_default.py index f9f37ac..1eab220 100644 --- a/roles/product_install/molecule/default/tests/test_default.py +++ b/roles/product_install/molecule/default/tests/test_default.py @@ -51,5 +51,5 @@ def test_completed_lockfile(host): def test_servicedesk_not_installed(host): plugins = host.file('/media/atl/jira/shared/plugins/installed-plugins') - assert (not plugins.exists) or ( - len(list(filter(lambda p: 'servicedesk' in p, jars))) == 0) + assert (not plugins.exists) or all( + 'servicedesk' not in plugin for plugin in plugins.listdir())