restServerParameters = new RestServerParameters(REST_SERVER_HOST, REST_SERVER_PORT, REST_SERVER_USER,
REST_SERVER_PASSWORD, REST_SERVER_HTTPS);
} else {
- restServerParameters = new RestServerParameters(null, 0, null, null, false);
+ restServerParameters = new RestServerParameters(null, 0, null, null, REST_SERVER_HTTPS);
}
return restServerParameters;
}
private static String KEYSTORE = System.getProperty("user.dir") + "/src/test/resources/ssl/policy-keystore";
@Test
- public void testHealthCheckSuccess()
+ public void testDistributionStatistic()
throws PolicyDistributionException, InterruptedException, KeyManagementException, NoSuchAlgorithmException {
final String reportString = "StatisticsReport [code=200, totalDistributionCount=0, distributionSuccessCount=0, "
+ "distributionFailureCount=0, totalDownloadCount=0, " + "downloadSuccessCount=0, downloadFailureCount=0]";
try {
response = invocationBuilder.get(StatisticsReport.class);
} catch (final Exception exp) {
- LOGGER.info("the server is not started yet. We will retry again");
- Thread.sleep(1000);
+ LOGGER.error("the server is not started yet. We will retry again", exp);
}
}
return response;