blob: bc807df7fa8cf80f3c016de9a379ef341ae23afa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package org.openecomp.sdc.ci.tests.utils.rest;
import org.openecomp.sdc.ci.tests.api.Urls;
import org.openecomp.sdc.ci.tests.config.Config;
import org.openecomp.sdc.ci.tests.utils.Utils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.openecomp.sdc.ci.tests.datatypes.http.RestResponse;
public class CommonRestUtils extends BaseRestUtils {
private static Logger logger = LoggerFactory.getLogger(CommonRestUtils.class.getName());
public static RestResponse getHealthCheck() throws Exception {
Config config = Utils.getConfig();
String url = String.format(Urls.GET_HEALTH_CHECK_VIA_PROXY, config.getCatalogFeHost(), config.getCatalogFePort());
return sendGet(url, null);
}
}
|