Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Yevhen Ivantsov committed Nov 26, 2024
1 parent 57013ec commit b9560ae
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ data:
<Manager pathname=""/>
<JarScanner scanManifest="false"/>
<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve"
threshold="{{ .Values.bamboo.tomcatConfig.stuckThreadDetectionValveThreshold | default "120" }}" />
threshold="{{ .Values.bamboo.tomcatConfig.stuckThreadDetectionValveThreshold | default "60" }}" />
</Context>

</Host>
Expand Down
2 changes: 1 addition & 1 deletion src/main/charts/bamboo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ bamboo:
proxyInternalIps:
trustedProxies:
requestAttributesEnabled:
stuckThreadDetectionValveThreshold: "120"
stuckThreadDetectionValveThreshold: "60"

# -- Custom server.xml to be mounted into /opt/atlassian/bamboo/conf
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ data:
<!-- Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties -->
<Manager pathname=""/>
<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve"
threshold="{{ .Values.confluence.tomcatConfig.stuckThreadDetectionValveThreshold | default "120" }}" />
threshold="{{ .Values.confluence.tomcatConfig.stuckThreadDetectionValveThreshold | default "60" }}" />
{{ if .Values.confluence.accessLog.enabled }}
<Valve className="org.apache.catalina.valves.AccessLogValve"
requestAttributesEnabled="true"
Expand Down
2 changes: 1 addition & 1 deletion src/main/charts/confluence/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@ confluence:
maxHttpHeaderSize: "8192"
proxyInternalIps:
trustedProxies:
stuckThreadDetectionValveThreshold: "120"
stuckThreadDetectionValveThreshold: "60"


# -- Custom server.xml to be mounted into /opt/atlassian/confluence/conf
Expand Down
1 change: 0 additions & 1 deletion src/main/charts/crowd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,6 @@ crowd:
maxHttpHeaderSize: "8192"
accessLogsMaxDays:
proxyInternalIps:
stuckThreadDetectionValveThreshold: "120"

# -- Specifies a list of additional Java libraries that should be added to the
# Crowd container. Each item in the list should specify the name of the volume
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ data:
<Manager pathname=""/>
<JarScanner scanManifest="false"/>
<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve"
threshold="{{ .Values.jira.tomcatConfig.stuckThreadDetectionValveThreshold | default "120" }}" />
threshold="{{ .Values.jira.tomcatConfig.stuckThreadDetectionValveThreshold | default "60" }}" />
</Context>

</Host>
Expand Down
2 changes: 1 addition & 1 deletion src/main/charts/jira/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ jira:
# proxyPort is set depending on ingress.https value (80 if http, 443 if https)
proxyPort:
maxHttpHeaderSize: "8192"
stuckThreadDetectionValveThreshold: "120"
stuckThreadDetectionValveThreshold: "60"

# -- Custom server.xml to be mounted into /opt/atlassian/jira/conf
#
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/test/ServerConfigTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ void server_config_config_map(Product product, String generatedByHelm, String re
assertThat(serverConfigMap.getConfigMapData().path("server.xml")).hasTextContaining("proxyPort=\"443\"");
assertThat(serverConfigMap.getConfigMapData().path("server.xml")).hasTextContaining("proxyName=\"" + String.format("%s.com", product.name()));
if (! product.name().equals("crowd")) {
assertThat(serverConfigMap.getConfigMapData().path("server.xml")).hasTextContaining("threshold=\"120\"");
assertThat(serverConfigMap.getConfigMapData().path("server.xml")).hasTextContaining("threshold=\"60\"");
}

}
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/expected_helm_output/bamboo/output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ data:
sslEnabled: null
sslPass: null
sslProtocol: null
stuckThreadDetectionValveThreshold: "120"
stuckThreadDetectionValveThreshold: "60"
trustedProxies: null
truststoreFile: null
truststorePass: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ data:
redirectPort: "8443"
scheme: null
secure: null
stuckThreadDetectionValveThreshold: "120"
stuckThreadDetectionValveThreshold: "60"
trustedProxies: null
uriEncoding: UTF-8
topologySpreadConstraints: []
Expand Down
1 change: 0 additions & 1 deletion src/test/resources/expected_helm_output/crowd/output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ data:
redirectPort: "8443"
scheme: null
secure: null
stuckThreadDetectionValveThreshold: "120"
topologySpreadConstraints: []
umask: "0022"
useHelmReleaseNameAsContainerName: false
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/expected_helm_output/jira/output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ data:
redirectPort: "8443"
scheme: null
secure: null
stuckThreadDetectionValveThreshold: "120"
stuckThreadDetectionValveThreshold: "60"
topologySpreadConstraints: []
useHelmReleaseNameAsContainerName: false
monitoring:
Expand Down

0 comments on commit b9560ae

Please sign in to comment.