Skip to content

Commit

Permalink
remove OMD version service name constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
stdevel committed Sep 15, 2022
1 parent 6c407ab commit ec302ab
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions molecule/default/tests/test_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit ec302ab

Please sign in to comment.