We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a1cf337 + 3953bba commit c933864Copy full SHA for c933864
molecule/latest/tests/test_latest.py
@@ -1,5 +1,17 @@
1
+import pytest
2
import os
3
import testinfra.utils.ansible_runner
4
5
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
6
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