mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
DCD-386: Rework product_startup to support more systemd params and add tests for some corner cases.
This commit is contained in:
11
roles/product_startup/molecule/default/tests/test_default.py
Normal file
11
roles/product_startup/molecule/default/tests/test_default.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import os
|
||||
|
||||
import testinfra.utils.ansible_runner
|
||||
|
||||
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
|
||||
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
|
||||
|
||||
|
||||
def test_service_file(host):
|
||||
f = host.file('/etc/systemd/system/jira-software.service')
|
||||
assert f.contains("^ExecStart=/opt/atlassian/jira-software/current/bin/start-jira.sh -fg$")
|
||||
Reference in New Issue
Block a user