mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-07-29 16:11:31 -07:00
initial commit of stackdriver logging role for GCP
This commit is contained in:
parent
282f8e3b82
commit
42a304bdda
16 changed files with 282 additions and 0 deletions
|
@ -0,0 +1,15 @@
|
|||
import os
|
||||
|
||||
import testinfra.utils.ansible_runner
|
||||
|
||||
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
|
||||
os.environ['MOLECULE_INVENTORY_FILE']
|
||||
).get_hosts('all')
|
||||
|
||||
|
||||
def test_hosts_file(host):
|
||||
f = host.file('/etc/hosts')
|
||||
|
||||
assert f.exists
|
||||
assert f.user == 'root'
|
||||
assert f.group == 'root'
|
Loading…
Add table
Add a link
Reference in a new issue