Skip to content

Commit

Permalink
Fix Mongodb service test so that it works with Ubuntu 20.04.
Browse files Browse the repository at this point in the history
  • Loading branch information
Donald Morton committed Feb 15, 2021
1 parent 96fb089 commit 64d5915
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions molecule/ui/tests/test_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 64d5915

Please sign in to comment.