Skip to content

Fix BpmnFile max size #624

Fix BpmnFile max size

Fix BpmnFile max size #624

GitHub Actions / Coverage build 624 succeeded Oct 14, 2024 in 0s

Code Coverage 91.38 %

This run completed at 10/14/2024 12:48:45

Details

Coverage Report: JaCoCo

  • IntegrationTest (QuarkusTest)
Outcome Value
Code Coverage % 91.38%
✔️ Number of Lines Covered 2322
❌ Number of Lines Missed 219
Total Number of Lines 2541

Details:

it/gov/pagopa/atmlayer/service/model/client

❌ ProcessClient.java

it/gov/pagopa/atmlayer/service/model/strategy

✔️ ObjectStoreStrategy.java

All Lines Covered!

✔️ ObjectStoreStrategyConfig.java

All Lines Covered!

it/gov/pagopa/atmlayer/service/model/resource

✔️ InfoResource.java

All Lines Covered!

❌ WorkflowResourceResource.java

Lines Missed:

❌ ResourceEntityResource.java

Lines Missed:

❌ BpmnResource.java

Lines Missed:

it/gov/pagopa/atmlayer/service/model/mapper

❌ BpmnVersionMapperImpl.java

Lines Missed:

        catch ( DatatypeConfigurationException ex ) {
❌ BpmnConfigMapper.java
❌ ResourceEntityMapperImpl.java

Lines Missed:

✔️ BpmnVersionMapper.java

All Lines Covered!

❌ BpmnConfigMapperImpl.java

Lines Missed:

✔️ WorkflowResourceMapper.java

All Lines Covered!

❌ ResourceEntityMapper.java

Lines Missed:

                    } catch (NoSuchAlgorithmException | IOException e) {
❌ ResourceFileMapper.java
❌ WorkflowResourceMapperImpl.java

Lines Missed:

        catch ( DatatypeConfigurationException ex ) {
✔️ ResourceFileMapperImpl.java

All Lines Covered!

it/gov/pagopa/atmlayer/service/model/model/filestorage

✔️ FormData.java

All Lines Covered!

✔️ FileObject.java

All Lines Covered!

it/gov/pagopa/atmlayer/service/model

✔️ App.java

All Lines Covered!

it/gov/pagopa/atmlayer/service/model/repository

❌ BpmnBankConfigRepository.java

Lines Missed:

❌ ResourceFileRepository.java

Lines Missed:

❌ WorkflowResourceRepository.java

Lines Missed:

                .page(page, size)
                .list();
❌ ResourceEntityRepository.java

Lines Missed:

❌ BpmnVersionRepository.java

Lines Missed:

                .transformToUni(session ->
                                .setParameter(BPMN_ID, uuid)
                                .getResultList());

it/gov/pagopa/atmlayer/service/model/model

❌ PageInfo.java
❌ BpmnIdDto.java
❌ ObjectStoreResponse.java
❌ ResourceFileDTO.java
❌ BpmnBankConfigDTO.java
❌ DemoValidation.java
❌ ResourceDTO.java
❌ ATMLayerErrorResponse.java
❌ BufferWithMedata.java
❌ BpmnDTO.java
❌ WorkflowResourceDTO.java
❌ ErrorResponse.java
❌ BpmnProcessDTO.java
❌ ATMLayerValidationErrorResponse.java
❌ BpmnFrontEndDTO.java
❌ InfoResponse.java
❌ WorkflowResourceFrontEndDTO.java
❌ ResourceFrontEndDTO.java

it/gov/pagopa/atmlayer/service/model/exception

✔️ AtmLayerException.java

All Lines Covered!

it/gov/pagopa/atmlayer/service/model/service/impl

✔️ BpmnFileStorageServiceImpl.java

All Lines Covered!

✔️ ResourceFileServiceImpl.java

All Lines Covered!

❌ WorkflowResourceStorageServiceImpl.java

Lines Missed:

❌ WorkflowResourceServiceImpl.java

Lines Missed:

❌ ResourceEntityServiceImpl.java

Lines Missed:

                    } catch (AtmLayerException ex) {
❌ BpmnVersionServiceImpl.java

Lines Missed:

                                .recoverWithUni(failure -> {
  • Line #259
                                                        .recoverWithUni(failure -> {
✔️ BpmnBankConfigService.java

All Lines Covered!

❌ ResourceEntityStorageServiceImpl.java

Lines Missed:

❌ S3ObjectStoreServiceImpl.java

Lines Missed:

        } catch (Exception e) {

it/gov/pagopa/atmlayer/service/model/exception/mapper

❌ GlobalExceptionMapperImpl.java

Lines Missed:

it/gov/pagopa/atmlayer/service/model/configurations

✔️ CorsFilter.java

All Lines Covered!

✔️ S3PreSignerLocal.java

All Lines Covered!

❌ DirManager.java

Lines Missed:

it/gov/pagopa/atmlayer/service/model/enumeration

✔️ FileParsingUtilityValues.java

All Lines Covered!

✔️ UtilityValues.java

All Lines Covered!

✔️ AppErrorCodeEnum.java

All Lines Covered!

✔️ StatusEnum.java

All Lines Covered!

✔️ ObjectStoreStrategyEnum.java

All Lines Covered!

✔️ DeployableResourceType.java

All Lines Covered!

✔️ BankConfigUtilityValues.java

All Lines Covered!

✔️ AppErrorType.java

All Lines Covered!

✔️ S3ResourceTypeEnum.java

All Lines Covered!

✔️ NoDeployableResourceType.java

All Lines Covered!

it/gov/pagopa/atmlayer/service/model/utils

❌ ConstraintViolationMappingUtils.java
❌ BpmnUtils.java

Lines Missed:

✔️ FileStorageS3Utils.java

All Lines Covered!

❌ EnumConverter.java

Lines Missed:

❌ CommonUtils.java

Lines Missed:

✔️ ConstraintViolationMappingUtilsImpl.java

All Lines Covered!

❌ FileUtilities.java

Lines Missed:

        } catch (IOException e) {
        } catch (IOException e) {

it/gov/pagopa/atmlayer/service/model/entity

✔️ BpmnBankConfig.java

All Lines Covered!

✔️ ResourceFile.java

All Lines Covered!

❌ BpmnBankConfigPK.java
✔️ BpmnVersion.java

All Lines Covered!

❌ WorkflowResource.java
❌ BpmnVersionPK.java
✔️ ResourceEntity.java

All Lines Covered!

it/gov/pagopa/atmlayer/service/model/validators

✔️ BpmnEntityValidator.java

All Lines Covered!

it/gov/pagopa/atmlayer/service/model/dto

❌ BranchDto.java
❌ DeployedBPMNProcessDefinitionDto.java
❌ DeployResponseDto.java
❌ BpmnUpgradeDto.java
❌ BranchConfigs.java
❌ LinkDto.java
❌ BankKeyDto.java
❌ BankConfigTripletDto.java

Lines Missed:

❌ BpmnAssociationDto.java
❌ FileS3Dto.java
❌ BankConfigDeleteDto.java
❌ ResourceCreationDto.java
❌ ResourceMultipleCreationDtoJSON.java
❌ TerminalConfigs.java
❌ BpmnCreationDto.java
❌ WorkflowResourceCreationDto.java
❌ DeployedDMNDecisionDefinitionDto.java

it/gov/pagopa/atmlayer/service/model/service

❌ ResourceEntityStorageService.java
❌ WorkflowResourceStorageService.java
❌ BpmnFileStorageService.java
❌ S3ObjectStoreService.java
❌ BpmnVersionService.java
❌ ObjectStoreService.java
❌ ResourceEntityService.java
❌ WorkflowResourceService.java
❌ ResourceFileService.java

it/gov/pagopa/atmlayer/service/model/properties

❌ CDNProperties.java
❌ ObjectStoreProperties.java