File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
integration-tests/src/test/resources
java/io/imunity/upman/rest Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ unityServer.core.pkiConfigFile=src/test/resources/pki.properties
8
8
unityServer.core.templatesFile=src/test/resources/msgTemplates.properties
9
9
unityServer.core.workspaceDirectory=target/workspace
10
10
unityServer.core.defaultWebContentDirectory=../vaadin-styles/src/main/resources
11
+ unityServer.core.defaultWebPath=/home
11
12
12
13
unityServer.core.asyncStateUpdateInterval=20
13
14
unityServer.core.auditEventLogsEnabled=true
Original file line number Diff line number Diff line change @@ -88,19 +88,22 @@ public void setup() throws Exception
88
88
host = getHost ();
89
89
}
90
90
91
- protected HttpHost getHost () {
92
- return new HttpHost ("https" , "localhost" , 53458 );
91
+ protected HttpHost getHost ()
92
+ {
93
+ int port = httpServer .getUrls ()[0 ].getPort ();
94
+ return new HttpHost ("https" , "localhost" , port );
93
95
}
94
96
95
- protected HttpClient getClient () throws Exception
97
+ private HttpClient getClient () throws Exception
96
98
{
97
99
DefaultClientConfiguration clientCfg = new DefaultClientConfiguration ();
98
100
clientCfg .setCredential (getDemoCredential ());
99
101
clientCfg .setValidator (getDemoValidator ());
100
102
clientCfg .setSslEnabled (true );
101
103
clientCfg .setSslAuthn (false );
102
104
clientCfg .setHttpAuthn (true );
103
- return HttpUtils .createClient ("https://localhost:53456" , clientCfg );
105
+ int port = httpServer .getUrls ()[0 ].getPort ();
106
+ return HttpUtils .createClient ("https://localhost:" +port , clientCfg );
104
107
}
105
108
106
109
protected HttpClientContext getClientContext (HttpHost host )
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ unityServer.core.pkiConfigFile=src/test/resources/pki.properties
8
8
unityServer.core.workspaceDirectory=target/workspace
9
9
unityServer.core.auditEventLogsEnabled=false
10
10
11
- unityServer.core.httpServer.port=53458
11
+ unityServer.core.httpServer.port=0
12
12
unityServer.core.httpServer.host=localhost
13
13
unityServer.core.httpServer.fastRandom=true
14
14
You can’t perform that action at this time.
0 commit comments