Handle empty configurations
@@ -92,6 +92,10 @@ public class InputValidationManagementServiceImpl implements InputValidationMana
for (Resource resource: resources) {
configurations.add(buildValidationConfigFromResource(resource));
}
+ if (configurations.isEmpty()) {
+ throw new InputValidationMgtClientException(ERROR_NO_CONFIGURATIONS_FOUND.getCode(),
+ String.format(ERROR_NO_CONFIGURATIONS_FOUND.getDescription(), tenantDomain));
+ }
return configurations;
}
