Skip to content
This repository was archived by the owner on Dec 8, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
galaxy_info:
author: Julien Pivotto
description: Deploy memcached_exporter
role_name: memcached-exporter
role_name: memcached_exporter
license: MIT
company: none
min_ansible_version: 2.7
Expand Down
10 changes: 10 additions & 0 deletions molecule/latest/tests/test_latest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,13 @@

testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')


@pytest.mark.parametrize("files", [
"/etc/systemd/system/memcached_exporter.service",
"/usr/local/bin/memcached_exporter"
])
def test_files(host, files):
f = host.file(files)
assert f.exists
assert f.is_file