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
88unityServer.core.templatesFile=src/test/resources/msgTemplates.properties
99unityServer.core.workspaceDirectory=target/workspace
1010unityServer.core.defaultWebContentDirectory=../vaadin-styles/src/main/resources
11+ unityServer.core.defaultWebPath=/home
1112
1213unityServer.core.asyncStateUpdateInterval=20
1314unityServer.core.auditEventLogsEnabled=true
Original file line number Diff line number Diff line change @@ -88,19 +88,22 @@ public void setup() throws Exception
8888 host = getHost ();
8989 }
9090
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 );
9395 }
9496
95- protected HttpClient getClient () throws Exception
97+ private HttpClient getClient () throws Exception
9698 {
9799 DefaultClientConfiguration clientCfg = new DefaultClientConfiguration ();
98100 clientCfg .setCredential (getDemoCredential ());
99101 clientCfg .setValidator (getDemoValidator ());
100102 clientCfg .setSslEnabled (true );
101103 clientCfg .setSslAuthn (false );
102104 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 );
104107 }
105108
106109 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
88unityServer.core.workspaceDirectory=target/workspace
99unityServer.core.auditEventLogsEnabled=false
1010
11- unityServer.core.httpServer.port=53458
11+ unityServer.core.httpServer.port=0
1212unityServer.core.httpServer.host=localhost
1313unityServer.core.httpServer.fastRandom=true
1414
You can’t perform that action at this time.
0 commit comments