File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
main/groovy/com/eficode/devstack/deployment/impl
test/groovy/com/eficode/devstack/deployment/impl Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 66
77 <groupId >com.eficode</groupId >
88 <artifactId >devstack</artifactId >
9- <version >2.3.0 -SNAPSHOT</version >
9+ <version >2.3.1 -SNAPSHOT</version >
1010 <packaging >jar</packaging >
1111
1212 <name >DevStack</name >
Original file line number Diff line number Diff line change @@ -104,7 +104,9 @@ class JsmH2Deployment implements Deployment{
104104 assert jsmContainer. startContainer() : " Error starting JSM container:" + jsmContainer. id
105105 log. info(" \t Started JSM container" )
106106
107-
107+ log. info(" \t Creating jira-config.properties" )
108+ String cmdJiraConfigProperties = " echo \" jira.websudo.is.disabled=true\" >> jira-config.properties; chown jira:jira jira-config.properties && echo status: \$ ?"
109+ assert jsmContainer. runBashCommandInContainer(cmdJiraConfigProperties). find {it == " status: 0" } : " Error creating jira-config.properties file"
108110
109111 log. info(" \t Setting up local H2 database" )
110112 assert jiraRest. setupH2Database() : " Error setting up H2 database for JSM"
Original file line number Diff line number Diff line change @@ -49,6 +49,11 @@ class JsmH2DeploymentTest extends DevStackSpec {
4949 Unirest . get(baseurl). asEmpty(). status == 200
5050 jsmDep. jsmContainer. inspectContainer(). networkSettings. ports. find { it. key == " $port /tcp" }
5151
52+ // Make sure websudo was disabled
53+ jsmDep. jsmContainer. runBashCommandInContainer(" cat jira-config.properties" ). find {it == " jira.websudo.is.disabled=true" }
54+ jsmDep. jsmContainer. containerLogs. find {it. matches(" .*jira.websudo.is.disabled.*:.*true.*" )}
55+
56+
5257
5358 where :
5459 baseurl | port | dockerHost | certPath
You can’t perform that action at this time.
0 commit comments