Ensure that Drupal site directories are present
This commit is contained in:
parent
53521f0e93
commit
ecb4c7a608
4 changed files with 17 additions and 8 deletions
|
@ -5,10 +5,8 @@ import testinfra.utils.ansible_runner
|
|||
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
|
||||
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
|
||||
|
||||
def test_drupal_site_directory_exists(host):
|
||||
directory = host.file('/var/www/test/sites/default')
|
||||
|
||||
def test_hosts_file(host):
|
||||
f = host.file('/etc/hosts')
|
||||
|
||||
assert f.exists
|
||||
assert f.user == 'root'
|
||||
assert f.group == 'root'
|
||||
assert directory.exists
|
||||
assert directory.is_directory
|
||||
|
|
Reference in a new issue