* corresponding audit event according to the table name
*
* @param map
- * the map from which we will retrive the fields enum values
+ * the map from which we will retrieve the fields enum values
* @param table
* the table we are going to store the record in.
* @return an AuditingGenericEvent event representing the audit record that is going to be
Either<List<CategoryDefinition>, ActionStatus> categories = elementDao
.getAllCategories(NodeTypeEnum.ResourceNewCategory, inTransaction);
if (categories.isRight()) {
- log.debug("failed to retrive resource categories from Titan");
+ log.debug("failed to retrieve resource categories from Titan");
responseFormat = componentsUtils.getResponseFormat(categories.right().value());
componentsUtils.auditResource(responseFormat, user, resource, actionEnum);
throw new ComponentException(categories.right().value());
log.debug("validating service category {} against valid categories list", list);
Either<List<CategoryDefinition>, ActionStatus> categorys = elementDao.getAllServiceCategories();
if (categorys.isRight()) {
- log.debug("failed to retrive service categories from Titan");
+ log.debug("failed to retrieve service categories from Titan");
ResponseFormat responseFormat = componentsUtils.getResponseFormat(categorys.right().value());
return Either.right(responseFormat);
}
String esPort = null;
MonitoringBusinessLogic monitoringBL = getMonitoringBL(request.getSession().getServletContext());
if (monitoringBL == null) {
- log.error("failed to retrive monitoringBL.");
+ log.error("failed to retrieve monitoringBL.");
} else {
esHost = monitoringBL.getEsHost();
esPort = monitoringBL.getEsPort();
private String getModifiedUrl(HttpServletRequest request) throws MalformedURLException {
Configuration config = getConfiguration(request);
if (config == null) {
- log.error(EcompLoggerErrorCode.UNKNOWN_ERROR,"FeProxyServlet getModifiedUrl", "sdc-FE", "failed to retrive configuration.");
+ log.error(EcompLoggerErrorCode.UNKNOWN_ERROR,"FeProxyServlet getModifiedUrl", "sdc-FE", "failed to retrieve configuration.");
throw new RuntimeException("failed to read FE configuration");
}
String uri = request.getRequestURI();
public String getModifiedUrl(HttpServletRequest request) {
Configuration config = getConfiguration(request);
if (config == null) {
- log.error("failed to retrive configuration.");
+ log.error("failed to retrieve configuration.");
}
// String scheme = request.getScheme();
String contextPath = request.getContextPath(); // /mywebapp
}
/**
- * the method will try to get a job if one is avilable it will be retrived
+ * the method will try to get a job if one is avilable it will be retrieved
* and handled. if no jobs are available the worker will block for 500
* milliseconds and then it wil check if it needs to shutdown. if not it
* will block again and so on until sutdown or a new job is available
}
/**
- * the method retrives all nodes matching the given node type from the graph
+ * the method retrieves all nodes matching the given node type from the graph
*
* @param nodeTypeEnum
* node type we want to lookup on the graph
private final int numOfRetries;
static HttpClientConfigImmutable getOrCreate(HttpClientConfig httpClientConfig) {
- // TODO: retrive from a pool if exist, otherwise create new
+ // TODO: retrieve from a pool if exist, otherwise create new
return new HttpClientConfigImmutable(httpClientConfig);
}
doReturn(entitlementPool).when(entitlementPoolDao).get(anyObject());
- EntitlementPoolEntity retrived = vendorLicenseManagerImpl.getEntitlementPool(entitlementPool);
+ EntitlementPoolEntity retrieved = vendorLicenseManagerImpl.getEntitlementPool(entitlementPool);
- Assert.assertEquals(retrived.getId(), entitlementPool.getId());
- Assert.assertEquals(retrived.getVendorLicenseModelId(),
+ Assert.assertEquals(retrieved.getId(), entitlementPool.getId());
+ Assert.assertEquals(retrieved.getVendorLicenseModelId(),
entitlementPool.getVendorLicenseModelId());
- Assert.assertEquals(retrived.getVersion(), entitlementPool.getVersion());
+ Assert.assertEquals(retrieved.getVersion(), entitlementPool.getVersion());
}
@Test
}
}
- private void validateHeatVspImageUpdate(String name, String value, String retrivedValue) {
- if (value != null && !value.equals(retrivedValue)) {
+ private void validateHeatVspImageUpdate(String name, String value, String retrievedValue) {
+ if (value != null && !value.equals(retrievedValue)) {
final ErrorCode updateHeatImageErrorBuilder =
ImageErrorBuilder.getImageHeatReadOnlyErrorBuilder(name);
throw new CoreException(updateHeatImageErrorBuilder);
componentId, imageId);
final String data = imageQuestionnaire.getData();
if (data != null) {
- String retrivedFormat = JsonUtil.json2Object(data, ImageDetails.class).getFormat();
- validateHeatVspImageUpdate("format", format, retrivedFormat);
+ String retrievedFormat = JsonUtil.json2Object(data, ImageDetails.class).getFormat();
+ validateHeatVspImageUpdate("format", format, retrievedFormat);
}
}
restResponse = ResourceRestUtils.getResourceListFilterByCriteria(ElementFactory.getDefaultUser(UserRoleEnum.DESIGNER), AssetTypeEnum.RESOURCES.getValue(), SearchCriteriaEnum.RESOURCE_TYPE.getValue(), ResourceTypeEnum.VFCMT.toString());
BaseRestUtils.checkSuccess(restResponse);
ResourceAssetStructure dataOutOfSearchResponseForResourceName = ResponseParser.getDataOutOfSearchExternalAPIResponseForResourceName(restResponse.getResponse(), parsedCreatedResponse.getName());
- Assert.assertEquals(parsedCreatedResponse.getUuid(), dataOutOfSearchResponseForResourceName.getUuid(), "Created resourceUUID not equal to search retrive resourceUUID.");
+ Assert.assertEquals(parsedCreatedResponse.getUuid(), dataOutOfSearchResponseForResourceName.getUuid(), "Created resourceUUID not equal to search retrieve resourceUUID.");
// 3. Use getSpecificMetadata external API to receive full information of the VFCMT.
RestResponse assetResponse = AssetRestUtils.getAssetMetadataByAssetTypeAndUuid(true, AssetTypeEnum.RESOURCES, dataOutOfSearchResponseForResourceName.getUuid());