+ LOGGER.warn(EELFLoggerDelegate.auditLogger, "No test_info.yaml file was found");
+ return null;
+ }
+ try {
+ String testInfo = response.getEntity(String.class);
+ ObjectMapper yamlReader = new ObjectMapper(new YAMLFactory());
+ Object obj;
+ obj = yamlReader.readValue(testInfo, Object.class);
+ ObjectMapper mapper = new ObjectMapper();
+ mapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
+ mapper.configure(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY, true);
+ mapper.setSerializationInclusion(Include.NON_NULL);
+ ObjectMapper jsonWriter = new ObjectMapper();
+ return mapper.readValue(jsonWriter.writeValueAsString(obj), TestInfoYaml.class);
+ } catch (IOException e) {
+ LOGGER.error(EELFLoggerDelegate.errorLogger,
+ "Error when parsing test_info.yaml file. " + UserUtils.getStackTrace(e));