Skip to content

Commit c933864

Browse files
authored
Merge pull request #11 from cloudalchemy/paulfantom/tests
2 parents a1cf337 + 3953bba commit c933864

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1+
import pytest
12
import os
23
import testinfra.utils.ansible_runner
34

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

0 commit comments

Comments
 (0)