ITPLAT-518 remove fg from molecule test for bbdc

This commit is contained in:
Brett Meehan
2021-03-03 14:05:47 +11:00
parent 561ca14058
commit ce7b3b3e43

View File

@@ -9,7 +9,7 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
def test_service_file(host): def test_service_file(host):
systemd_prefix = "/lib" if host.system_info.distribution == "ubuntu" else "/usr/lib" systemd_prefix = "/lib" if host.system_info.distribution == "ubuntu" else "/usr/lib"
f = host.file(systemd_prefix+'/systemd/system/bitbucket.service') f = host.file(systemd_prefix+'/systemd/system/bitbucket.service')
assert f.contains("^ExecStart=/opt/atlassian/bitbucket/current/bin/start-bitbucket.sh -fg --no-search$") assert f.contains("^ExecStart=/opt/atlassian/bitbucket/current/bin/start-bitbucket.sh --no-search$")
assert f.contains("^UMask=0027$") assert f.contains("^UMask=0027$")
assert f.contains("^LimitNOFILE=4096$") assert f.contains("^LimitNOFILE=4096$")
assert f.contains("^Environment=BITBUCKET_HOME=/media/atl/bitbucket$") assert f.contains("^Environment=BITBUCKET_HOME=/media/atl/bitbucket$")