DCD-386: Tweaks to Bitbucket layout and tests.

This commit is contained in:
Steve Smith
2019-06-11 03:32:28 +00:00
parent 0d6204a85c
commit f8641a0044
4 changed files with 9 additions and 4 deletions

View File

@@ -8,6 +8,8 @@
atl_product_edition: "bitbucket"
atl_product_user: "bitbucket"
atl_product_home: "{{ atl_shared_mountpoint }}/{{ atl_product_edition }}"
atl_product_home_shared: "{{ atl_product_home }}/shared"
atl_nfs_mountpoint: "{{ atl_shared_mountpoint }}/bitbucket/shared"
atl_nfs_target: "{{ atl_shared_mountpoint }}/bitbucket/shared"
@@ -15,7 +17,7 @@
atl_startup_systemd_params:
- "UMask=0027"
- "LimitNOFILE=4096"
- "Environment=BITBUCKET_HOME={{ atl_product_home_shared }}"
- "Environment=BITBUCKET_HOME={{ atl_product_home }}"
atl_startup_exec_options:
- "-fg"
- "--no-search"

View File

@@ -23,7 +23,7 @@ atl_product_home: "{{ atl_home_base }}/{{ atl_product_family }}"
atl_product_shared_home_map:
confluence: "confluence/shared-home"
jira: "jira/shared"
stash: "bitbucket"
stash: "bitbucket/shared"
atl_product_home_shared: "{{ atl_shared_mountpoint }}/{{ atl_product_shared_home_map[atl_product_family] }}"
atl_product_shared_plugins: "{{ atl_product_home_shared }}/plugins/installed-plugins"

View File

@@ -8,7 +8,7 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
def test_version_downloaded(host):
verfile = host.file('/media/atl/stash/shared/bitbucket.version')
verfile = host.file('/media/atl/bitbucket/shared/bitbucket.version')
assert verfile.exists
def test_symlink_created(host):
@@ -21,7 +21,7 @@ def test_unpacked(host):
assert verfile.exists
def test_version_file_is_latest(host):
verfile = host.file('/media/atl/stash/shared/bitbucket.version')
verfile = host.file('/media/atl/bitbucket/shared/bitbucket.version')
assert verfile.exists
upstream_fd = urllib.request.urlopen("https://marketplace.atlassian.com/rest/2/applications/bitbucket/versions/latest")

View File

@@ -6,6 +6,9 @@
atl_product_family: "stash"
atl_product_edition: "bitbucket"
atl_product_home: "{{ atl_shared_mountpoint }}/{{ atl_product_edition }}"
atl_product_home_shared: "{{ atl_product_home }}/shared"
atl_startup_systemd_params:
- "UMask=0027"
- "LimitNOFILE=4096"