diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 16:03:42 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 16:03:42 +0000 |
commit | 66cec45960ce1d9c794e9399de15c138acb18aed (patch) | |
tree | 59cd19d69e9d56b7989b080da7c20ef1a3fe2a5a /ansible_collections/google/cloud/molecule/gcsfuse/tests | |
parent | Initial commit. (diff) | |
download | ansible-66cec45960ce1d9c794e9399de15c138acb18aed.tar.xz ansible-66cec45960ce1d9c794e9399de15c138acb18aed.zip |
Adding upstream version 7.3.0+dfsg.upstream/7.3.0+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/google/cloud/molecule/gcsfuse/tests')
-rw-r--r-- | ansible_collections/google/cloud/molecule/gcsfuse/tests/test_default.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ansible_collections/google/cloud/molecule/gcsfuse/tests/test_default.py b/ansible_collections/google/cloud/molecule/gcsfuse/tests/test_default.py new file mode 100644 index 00000000..bb43defb --- /dev/null +++ b/ansible_collections/google/cloud/molecule/gcsfuse/tests/test_default.py @@ -0,0 +1,23 @@ +from __future__ import (absolute_import, division, print_function) +import os +import testinfra.utils.ansible_runner + +__metaclass__ = type + +testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( + os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') + + +def test_service(host): + service = host.service('docker') + + assert service.is_running + assert service.is_enabled + + +def test_hosts_file(host): + f = host.file('/etc/hosts') + + assert f.exists + assert f.user == 'root' + assert f.group == 'root' |