Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private List<List<String>> getAllParameterLocations(List<CatalogItemUserActionPa
.map(JsonNullable::get)
.map(list -> list.stream()
.map(CatalogItemUserActionParameterLocation::getLocation)
.map(String::toLowerCase).toList())
.toList())
.toList();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void evaluateRestrictions_returnsFalse_whenNoCommonValuesAcrossLists() {
}

@Test
void evaluateRestrictions_convertsLocationsToLowerCase() {
void evaluateRestrictions_doNotConvertsLocationsToLowerCase() {
//given
var projectKey = "projectKey";

Expand All @@ -152,8 +152,8 @@ void evaluateRestrictions_convertsLocationsToLowerCase() {
var result = evaluator.evaluate(evaluationRestrictions, params);

//then
assertEquals(true, result.getLeft());
assertEquals("", result.getRight());
assertEquals(false, result.getLeft());
assertEquals("This product is not provisionable in the project location.", result.getRight());
}

@Test
Expand All @@ -163,7 +163,7 @@ void evaluateRestrictions_returnsFalse_whenClustersAreNull() {

var parameters = new ArrayList<CatalogItemUserActionParameter>();

List<String> clusters = Collections.emptyList();
List<String> clusters = null;

var restrictions = UserActionEntityRestrictionsMother.of(restrictionLoc);
var params = RestrictionsParamsMother.of(parameters, clusters);
Expand Down
Loading