mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 16:33:08 -06:00
DCD-373: Add tests removed by mistake
This commit is contained in:
@@ -10,10 +10,14 @@ platforms:
|
|||||||
image: amazonlinux:2
|
image: amazonlinux:2
|
||||||
groups:
|
groups:
|
||||||
- aws_node_local
|
- aws_node_local
|
||||||
|
ulimits:
|
||||||
|
- nofile:262144:262144
|
||||||
- name: ubuntu_lts
|
- name: ubuntu_lts
|
||||||
image: ubuntu:bionic
|
image: ubuntu:bionic
|
||||||
groups:
|
groups:
|
||||||
- aws_node_local
|
- aws_node_local
|
||||||
|
ulimits:
|
||||||
|
- nofile:262144:262144
|
||||||
provisioner:
|
provisioner:
|
||||||
name: ansible
|
name: ansible
|
||||||
options:
|
options:
|
||||||
|
|||||||
@@ -30,6 +30,22 @@ def test_dbconfig_file(host):
|
|||||||
assert f.contains("<pool-test-on-borrow>true</pool-test-on-borrow>")
|
assert f.contains("<pool-test-on-borrow>true</pool-test-on-borrow>")
|
||||||
|
|
||||||
|
|
||||||
|
def test_setenv_file(host):
|
||||||
|
f = host.file('/opt/atlassian/jira-software/current/bin/setenv.sh')
|
||||||
|
assert f.exists
|
||||||
|
assert f.contains('^JVM_MINIMUM_MEMORY="PLACEHOLDER"')
|
||||||
|
assert f.contains('^JVM_MAXIMUM_MEMORY="PLACEHOLDER"')
|
||||||
|
assert f.contains('^JIRA_HOME="/var/atlassian/application-data/jira"')
|
||||||
|
assert f.contains('^export CATALINA_OPTS="')
|
||||||
|
|
||||||
|
|
||||||
|
def test_cluster_file(host):
|
||||||
|
f = host.file('/var/atlassian/application-data/jira/cluster.properties')
|
||||||
|
assert f.exists
|
||||||
|
assert f.contains('jira.node.id = FAKEID')
|
||||||
|
assert f.contains('jira.shared.home = /media/atl/jira/shared')
|
||||||
|
|
||||||
|
|
||||||
def test_server_file(host):
|
def test_server_file(host):
|
||||||
f = host.file('/opt/atlassian/jira-software/current/conf/server.xml')
|
f = host.file('/opt/atlassian/jira-software/current/conf/server.xml')
|
||||||
assert f.exists
|
assert f.exists
|
||||||
|
|||||||
Reference in New Issue
Block a user