See gh-15695
This commit is contained in:
Johnny Lim
2019-01-14 16:54:04 +09:00
committed by Stephane Nicoll
parent b22561877d
commit af3ed9ff9f
10 changed files with 25 additions and 34 deletions

View File

@@ -38,7 +38,7 @@ public final class EndpointId {
private static final Log logger = LogFactory.getLog(EndpointId.class);
private static Set<String> loggedWarnings = new HashSet<>();
private static final Set<String> loggedWarnings = new HashSet<>();
private static final Pattern VALID_PATTERN = Pattern.compile("[a-zA-Z0-9\\.\\-]+");

View File

@@ -138,8 +138,8 @@ public class ElasticsearchJestHealthIndicatorTests {
status);
}
else {
json = "{\n" + " \"error\": \"Server Error\",\n" + " \"status\": "
+ responseCode + "\n" + "}";
json = "{\n" + " \"error\": \"Server Error\",\n" + " \"status\": \""
+ status + "\"\n" + "}";
}
searchResult.setJsonString(json);
searchResult.setJsonObject(new JsonParser().parse(json).getAsJsonObject());