Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User profile replica #173

Merged
merged 46 commits into from
Jul 18, 2024

merged dev into userProfile

974c6e6
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

User profile replica #173

merged dev into userProfile
974c6e6
Select commit
Loading
Failed to load commit list.
GitHub Actions / Coverage build 527 succeeded Jul 18, 2024 in 0s

Code Coverage 92.62 %

This run completed at 07/18/2024 10:44:51

Details

Coverage Report: JaCoCo

  • S3PreSignerLocalTest (QuarkusTest)
Outcome Value
Code Coverage % 92.62%
✔️ Number of Lines Covered 2471
❌ Number of Lines Missed 197
Total Number of Lines 2668

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/mapper

❌ BpmnVersionMapperImpl.java

Lines Missed:

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

Lines Missed:

✔️ UserProfilesMapper.java

All Lines Covered!

✔️ BpmnVersionMapper.java

All Lines Covered!

✔️ UserMapper.java

All Lines Covered!

✔️ ProfileMapperImpl.java

All Lines Covered!

❌ BpmnConfigMapperImpl.java

Lines Missed:

✔️ WorkflowResourceMapper.java

All Lines Covered!

✔️ ResourceEntityMapper.java

All Lines Covered!

❌ UserProfilesMapperImpl.java

Lines Missed:

✔️ ProfileMapper.java

All Lines Covered!

❌ ResourceFileMapper.java
❌ WorkflowResourceMapperImpl.java

Lines Missed:

        catch ( DatatypeConfigurationException ex ) {
❌ UserMapperImpl.java

Lines Missed:

        }
✔️ ResourceFileMapperImpl.java

All Lines Covered!

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

✔️ ProfileResource.java

All Lines Covered!

✔️ InfoResource.java

All Lines Covered!

❌ WorkflowResourceResource.java

Lines Missed:

❌ ResourceEntityResource.java

Lines Missed:

✔️ UserProfilesResource.java

All Lines Covered!

❌ BpmnResource.java

Lines Missed:

✔️ UserResource.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

❌ UserProfilesRepository.java

Lines Missed:

                Parameters.with("pKList", pKList));
❌ ProfileRepository.java

Lines Missed:

❌ UserRepository.java

Lines Missed:

❌ 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
❌ ObjectStorePutResponse.java
❌ ResourceFileDTO.java
❌ BpmnBankConfigDTO.java
❌ DemoValidation.java
❌ ResourceDTO.java
❌ ATMLayerErrorResponse.java
❌ BufferWithMedata.java
❌ BpmnDTO.java
❌ WorkflowResourceDTO.java
❌ ProfileDTO.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

✔️ UserServiceImpl.java

All Lines Covered!

✔️ BpmnFileStorageServiceImpl.java

All Lines Covered!

✔️ ResourceFileServiceImpl.java

All Lines Covered!

✔️ ProfileServiceImpl.java

All Lines Covered!

❌ WorkflowResourceStorageServiceImpl.java

Lines Missed:

❌ WorkflowResourceServiceImpl.java

Lines Missed:

❌ ResourceEntityServiceImpl.java

Lines Missed:

❌ BpmnVersionServiceImpl.java

Lines Missed:

                                .recoverWithUni(failure -> {
                .transformToUni(bpmnVersion -> {
  • Line #255
                                                        .recoverWithUni(failure -> {
✔️ BpmnBankConfigService.java

All Lines Covered!

❌ UserProfilesServiceImpl.java

Lines Missed:

                                    List<UserProfiles> userProfilesToAdd = userProfilesToUpdate.stream().filter(j -> !userProfilesSavedIds.contains(j.getUserProfilesPK().getProfileId())).toList();
❌ 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!

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:

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

✔️ BpmnBankConfig.java

All Lines Covered!

✔️ ResourceFile.java

All Lines Covered!

✔️ UserProfiles.java

All Lines Covered!

❌ BpmnBankConfigPK.java
❌ Profile.java
❌ UserProfilesPK.java
✔️ BpmnVersion.java

All Lines Covered!

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

All Lines Covered!

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

❌ BpmnEntityValidator.java

Lines Missed:

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

❌ ProfileCreationDto.java
❌ UserWithProfilesDTO.java
❌ BranchDto.java
❌ DeployedBPMNProcessDefinitionDto.java
❌ DeployResponseDto.java
❌ BpmnUpgradeDto.java
❌ UserProfilesInsertionDTO.java
❌ BranchConfigs.java
❌ LinkDto.java
❌ UserInsertionWithProfilesDTO.java
❌ BankKeyDto.java
❌ BankConfigTripletDto.java

Lines Missed:

❌ BpmnAssociationDto.java
❌ UserInsertionDTO.java
❌ FileS3Dto.java
❌ BankConfigDeleteDto.java
❌ ResourceCreationDto.java
❌ UserProfilesDTO.java
❌ TerminalConfigs.java
❌ BpmnCreationDto.java
❌ WorkflowResourceCreationDto.java
❌ DeployedDMNDecisionDefinitionDto.java

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

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

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

❌ CDNProperties.java
❌ ObjectStoreProperties.java