DCD-791: Make linter happy and add symlink test.

This commit is contained in:
Steve Smith
2019-11-27 11:59:00 +11:00
parent 883df8e1ea
commit 0a716a29ed
2 changed files with 12 additions and 2 deletions

View File

@@ -16,6 +16,16 @@ def test_conf_init_file(host):
assert f.exists assert f.exists
assert f.contains('confluence.home = /var/atlassian/application-data/confluence') assert f.contains('confluence.home = /var/atlassian/application-data/confluence')
def test_conf_attachment_symlinks(host):
assert host.file('/var/atlassian/application-data/confluence').is_directory
assert host.file('/media/atl/confluence/shared-home/attachments/').is_directory
f = host.file('/var/atlassian/application-data/confluence/attachments')
assert f.is_symlink and f.linked_to == '/media/atl/confluence/shared-home/attachments'
f = host.file('/var/atlassian/application-data/confluence/shared-home')
assert f.is_symlink and f.linked_to == '/media/atl/confluence/shared-home'
def test_setenv_file(host): def test_setenv_file(host):
f = host.file('/opt/atlassian/confluence/current/bin/setenv.sh') f = host.file('/opt/atlassian/confluence/current/bin/setenv.sh')
assert f.exists assert f.exists

View File

@@ -27,8 +27,8 @@
group: "{{ atl_product_user }}" group: "{{ atl_product_user }}"
vars: vars:
- links: - links:
- ["{{ atl_product_home_shared }}/", "{{ atl_product_home }}/shared-home"] - ["{{ atl_product_home_shared }}/", "{{ atl_product_home }}/shared-home"]
- ["{{ atl_product_home_shared }}/attachments/", "{{ atl_product_home }}/attachments"] - ["{{ atl_product_home_shared }}/attachments/", "{{ atl_product_home }}/attachments"]
with_nested: with_nested:
- "{{ links }}" - "{{ links }}"