Skip to content
This repository was archived by the owner on Dec 8, 2023. It is now read-only.

Commit 1a933c4

Browse files
committed
molecule: fix tests
1 parent 768f9c7 commit 1a933c4

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

meta/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
galaxy_info:
33
author: Julien Pivotto
44
description: Deploy memcached_exporter
5-
role_name: memcached-exporter
5+
role_name: memcached_exporter
66
license: MIT
77
company: none
88
min_ansible_version: 2.7

molecule/latest/tests/test_latest.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,13 @@
44

55
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
66
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
7+
8+
9+
@pytest.mark.parametrize("files", [
10+
"/etc/systemd/system/memcached_exporter.service",
11+
"/usr/local/bin/memcached_exporter"
12+
])
13+
def test_files(host, files):
14+
f = host.file(files)
15+
assert f.exists
16+
assert f.is_file

0 commit comments

Comments
 (0)