From 64d59154679e6da7033f75c32d84f99a53d325a0 Mon Sep 17 00:00:00 2001 From: Donald Morton Date: Mon, 15 Feb 2021 14:01:32 -0600 Subject: [PATCH] Fix Mongodb service test so that it works with Ubuntu 20.04. --- molecule/ui/tests/test_ui.py | 6 +----- requirements.txt | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/molecule/ui/tests/test_ui.py b/molecule/ui/tests/test_ui.py index 49c8461..96fdc02 100644 --- a/molecule/ui/tests/test_ui.py +++ b/molecule/ui/tests/test_ui.py @@ -15,11 +15,7 @@ def test_service_elasticsearch_running(host): def test_service_mongodb_running(host): print("Ensure MongoDB is running...") - if host.system_info.distribution == 'ubuntu' and host.system_info.codename == 'focal': - mongodb_service_name = 'mongodb' - else: - mongodb_service_name = 'mongod' - + mongodb_service_name = 'mongod' assert host.service(mongodb_service_name).is_running is True def test_is_graylog_installed(host): diff --git a/requirements.txt b/requirements.txt index 4ae2693..318f66c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,8 +2,8 @@ ansible==2.10.0 ansible-base==2.10.1 ansible-lint==4.3.5 chromedriver-binary-auto==0.1 -enrich==1.2.3 -molecule==3.2.0 +enrich==1.2.6 +molecule==3.2.3 molecule-docker==0.2.4 molecule-podman==0.3.0 molecule-vagrant==0.6