diff --git a/roles/jira_config/molecule/default/molecule.yml b/roles/jira_config/molecule/default/molecule.yml index 33c377c..7f082f6 100644 --- a/roles/jira_config/molecule/default/molecule.yml +++ b/roles/jira_config/molecule/default/molecule.yml @@ -10,10 +10,14 @@ platforms: image: amazonlinux:2 groups: - aws_node_local + ulimits: + - nofile:262144:262144 - name: ubuntu_lts image: ubuntu:bionic groups: - aws_node_local + ulimits: + - nofile:262144:262144 provisioner: name: ansible options: diff --git a/roles/jira_config/molecule/default/tests/test_default.py b/roles/jira_config/molecule/default/tests/test_default.py index d34ecde..58b83f9 100644 --- a/roles/jira_config/molecule/default/tests/test_default.py +++ b/roles/jira_config/molecule/default/tests/test_default.py @@ -30,6 +30,22 @@ def test_dbconfig_file(host): assert f.contains("true") +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): f = host.file('/opt/atlassian/jira-software/current/conf/server.xml') assert f.exists