From ec302ab739ba16670c27f3186ae526de1a3b7fb2 Mon Sep 17 00:00:00 2001 From: Christian Stankowic Date: Thu, 15 Sep 2022 13:44:18 +0200 Subject: [PATCH] remove OMD version service name constraint --- molecule/default/tests/test_default.py | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/molecule/default/tests/test_default.py b/molecule/default/tests/test_default.py index e68e722..f72aa91 100644 --- a/molecule/default/tests/test_default.py +++ b/molecule/default/tests/test_default.py @@ -53,17 +53,10 @@ def test_services(host): """ # get variables from file ansible_vars = host.ansible("include_vars", "file=main.yml") - # check services - for pkg in ansible_vars["ansible_facts"]["omd_package"]: - if host.ansible("setup")["ansible_facts"]["ansible_os_family"].lower() == "debian": # noqa: E501 - # service name includes omd version - omd_srv = host.service(pkg.replace( - "omd", "omd-%s" % ansible_vars["ansible_facts"]["omd_version"]) - ) - else: - omd_srv = host.service("omd") - assert omd_srv.is_running - assert omd_srv.is_enabled + # check service + omd_srv = host.service("omd") + assert omd_srv.is_running + assert omd_srv.is_enabled def test_sites(host):