mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 16:33:08 -06:00
DCD-352: Make the name of the shared home dir configurable by product.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import os
|
||||
import pytest
|
||||
|
||||
import testinfra.utils.ansible_runner
|
||||
|
||||
@@ -42,6 +43,16 @@ def test_install_permissions(host):
|
||||
assert host.file('/opt/atlassian/confluence/current/work/').user == 'confluence'
|
||||
assert host.file('/opt/atlassian/confluence/current/temp/').user == 'confluence'
|
||||
|
||||
@pytest.mark.parametrize('directory', [
|
||||
'/var/atlassian/application-data/confluence/',
|
||||
'/media/atl/confluence/shared-home/'
|
||||
])
|
||||
def test_home_directories(host, directory):
|
||||
d = host.file(directory)
|
||||
assert d.exists
|
||||
assert d.user == 'confluence'
|
||||
|
||||
|
||||
# def test_dbconfig_file(host):
|
||||
# f = host.file('/var/atlassian/application-data/jira/dbconfig.xml')
|
||||
# assert f.exists
|
||||
|
||||
Reference in New Issue
Block a user