From 166882f9f835607a532fbb84d4de8078c64aa364 Mon Sep 17 00:00:00 2001 From: Simone Esposito Date: Mon, 23 Dec 2024 15:37:31 +0100 Subject: [PATCH] add Docker file --- .java-version | 1 - .pre-commit-config.yaml | 11 -- CODEOWNERS | 3 - composer.json | 15 ++ host.json | 26 ---- local.settings.json.example | 6 - pom.xml | 273 ------------------------------------ tests/phpunit.xml | 245 ++++++++++++++++++++++++++++++++ 8 files changed, 260 insertions(+), 320 deletions(-) delete mode 100644 .java-version delete mode 100644 .pre-commit-config.yaml delete mode 100644 CODEOWNERS create mode 100644 composer.json delete mode 100644 host.json delete mode 100644 local.settings.json.example delete mode 100644 pom.xml create mode 100644 tests/phpunit.xml diff --git a/.java-version b/.java-version deleted file mode 100644 index b4de3947..00000000 --- a/.java-version +++ /dev/null @@ -1 +0,0 @@ -11 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml deleted file mode 100644 index 0d2e1f8e..00000000 --- a/.pre-commit-config.yaml +++ /dev/null @@ -1,11 +0,0 @@ -# 1. `pip install pre-commit` -# 2. `pre-commit install` -# 3. set GITGUARDIAN_API_KEY in your develop environment (get an api key here: https://dashboard.gitguardian.com/workspace/230910/settings/personal/personal-access-tokens) -# more info https://docs.gitguardian.com/internal-repositories-monitoring/integrations/git_hooks/pre_commit -repos: - - repo: https://github.com/gitguardian/ggshield - rev: v1.11.0 - hooks: - - id: ggshield - language_version: python3 - stages: [ commit ] diff --git a/CODEOWNERS b/CODEOWNERS deleted file mode 100644 index e514c2f9..00000000 --- a/CODEOWNERS +++ /dev/null @@ -1,3 +0,0 @@ -# see https://help.github.com/en/articles/about-code-owners#example-of-a-codeowners-file - -* @pagopa/pagopa-tech diff --git a/composer.json b/composer.json new file mode 100644 index 00000000..ad74c135 --- /dev/null +++ b/composer.json @@ -0,0 +1,15 @@ +{ + "name": "$vendor_name$/$package_name$", + "description": "$description$", + "minimum-stability": "$stability$", + "license": "$license$", + "authors": [ + { + "name": "$author$", + "email": "$email$" + } + ], + "require": { + $END$ + } +} \ No newline at end of file diff --git a/host.json b/host.json deleted file mode 100644 index c627a642..00000000 --- a/host.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "version": "2.0", - "extensionBundle": { - "id": "Microsoft.Azure.Functions.ExtensionBundle", - "version": "[2.*, 3.0.0)" - }, - "extensions": { - "http": { - "routePrefix": "" - } - }, - "logging": { - "fileLoggingMode": "always", - "logLevel": { - "default": "Information", - "Host.Results": "Error", - "Function": "Information", - "Host.Aggregator": "Trace" - }, - "applicationInsights": { - "samplingSettings": { - "isEnabled": false - } - } -} -} diff --git a/local.settings.json.example b/local.settings.json.example deleted file mode 100644 index 87c20b1f..00000000 --- a/local.settings.json.example +++ /dev/null @@ -1,6 +0,0 @@ -{ - "IsEncrypted": false, - "Values": { - "FUNCTIONS_WORKER_RUNTIME": "java", - } - } diff --git a/pom.xml b/pom.xml deleted file mode 100644 index 501884c8..00000000 --- a/pom.xml +++ /dev/null @@ -1,273 +0,0 @@ - - - 4.0.0 - - it.gov.pagopa.project - example-function - 0.0.1 - jar - - Azure Custom Fn - - - UTF-8 - 11 - 1.15.0 - 1.4.2 - com.microsoft.azure-20220215182005862 - 3.15.3.Final - - - - - - org.modelmapper - modelmapper - 3.0.0 - - - com.microsoft.azure.functions - azure-functions-java-library - ${azure.functions.java.library.version} - - - - - - - org.junit.jupiter - junit-jupiter - 5.8.2 - test - - - - org.mockito - mockito-core - 4.3.1 - test - - - org.mockito - mockito-junit-jupiter - 4.3.1 - test - - - - - com.sun.xml.ws - jaxws-ri - 2.3.3 - pom - - - - javax.xml.ws - jaxws-api - 2.3.1 - - - - com.sun.xml.bind - jaxb-core - 2.3.0.1 - - - - com.sun.xml.bind - jaxb-impl - 2.3.1 - - - - javax.xml.bind - jaxb-api - 2.3.1 - - - - - org.jboss.resteasy - resteasy-client - ${resteasy.version} - - - - org.jboss.resteasy - resteasy-jackson2-provider - ${resteasy.version} - - - - org.jboss.resteasy - resteasy-jaxb-provider - 6.0.0.Final - - - - - - - - com.fasterxml.jackson.core - jackson-core - 2.13.1 - - - - com.fasterxml.jackson.core - jackson-databind - 2.13.4.2 - - - - com.fasterxml.jackson.core - jackson-annotations - 2.13.1 - - - - com.fasterxml.jackson.dataformat - jackson-dataformat-xml - 2.13.1 - - - - - - - org.projectlombok - lombok - 1.18.20 - provided - - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.1 - - ${java.version} - ${java.version} - ${project.build.sourceEncoding} - - - - com.microsoft.azure - azure-functions-maven-plugin - ${azure.functions.maven.plugin.version} - - - ${functionAppName} - - - FUNCTIONS_EXTENSION_VERSION - ~3 - - - java-functions-group - java-functions-app-service-plan - westus - - windows - 11 - - - - - package-functions - - package - - - - - - - maven-clean-plugin - 3.1.0 - - - - obj - - - - - - - org.jacoco - jacoco-maven-plugin - 0.8.7 - - - **/config/* - - - - - - prepare-agent - - - - report - prepare-package - - report - - - - - - org.apache.maven.plugins - maven-surefire-plugin - 2.19.1 - - - - - org.junit.platform - junit-platform-surefire-provider - 1.0.1 - - - org.junit.jupiter - junit-jupiter-engine - 5.0.3 - - - - - ${argLine} - - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.2.0 - - - add-source - generate-sources - - add-source - - - - target/generated - - - - - - - - diff --git a/tests/phpunit.xml b/tests/phpunit.xml new file mode 100644 index 00000000..1977aefc --- /dev/null +++ b/tests/phpunit.xml @@ -0,0 +1,245 @@ + + + + + + + + + + + + + + + + + + + process/crawler/sendPaymentOutcomeV2/T00072_WorkflowWithSPOV2_ModUnico.php + + + process/crawler/activatePaymentNotice/SingleEvent/T00001_CreateAttemptAllInfoInEvent.php + process/crawler/activatePaymentNotice/SingleEvent/T00002_CreateAttemptNotAllInfoInEvent.php + process/crawler/activatePaymentNotice/SingleEvent/T00003_CreatePaymentAllInfoInEvent.php + process/crawler/activatePaymentNotice/SingleEvent/T00004_CreatePaymentNotAllInfoInEvent.php + process/crawler/activatePaymentNotice/SingleEvent/T00005_CreateNoPaymentNoInfo.php + process/crawler/activatePaymentNotice/SingleEvent/T00006_CreateAttemptAlreadyPresentInAnotherDayAllInfo.php + process/crawler/activatePaymentNotice/SingleEvent/T00007_CreateAttemptAlreadyPresentInAnotherDayNotAllInfo.php + process/crawler/activatePaymentNotice/SingleEvent/T00008_CreatePaymentAlreadyPresenteInAnotherDayAllInfoInEvent.php + process/crawler/activatePaymentNotice/SingleEvent/T00009_CreatePaymentAlreadyPresenteInAnotherDayNotAllInfoInEvent.php + process/crawler/activatePaymentNotice/BothEvents/T00011_CreateAttemptReqRespOneTransferAllInfoEvent.php + process/crawler/activatePaymentNotice/BothEvents/T00012_CreateAttemptReqRespTwoTransferAllInfoEvent.php + process/crawler/activatePaymentNotice/BothEvents/T00013_CreateAttemptReqRespOneTransferNotAllInfoEvent.php + process/crawler/activatePaymentNotice/BothEvents/T00014_CreateAttemptReqRespTwoTransferNotAllInfoEvent.php + process/crawler/activatePaymentNotice/BothEvents/T00015_CreatePaymentReqRespWithAllInfoAndFaultCode.php + process/crawler/activatePaymentNotice/BothEvents/T00016_CreateAttemptWith3TransferAndMetadata.php + process/crawler/nodoInviaCarrelloRPT/SingleEvent/T00020_CreateAttemptOneRPTOneTransfer.php + process/crawler/nodoInviaCarrelloRPT/SingleEvent/T00021_CreateAttemptOneRPTTwoTransfer.php + process/crawler/nodoInviaCarrelloRPT/SingleEvent/T00022_CreateAttemptTwoRPTTwoTransfer.php + process/crawler/nodoInviaCarrelloRPT/SingleEvent/T00023_CreateAttemptTwoRPTFirstRpt2TransferSecondRpt2Transfer1Bollo.php + process/crawler/nodoInviaCarrelloRPT/BothEvents/T00024_CreateAttemptOneRPT1TransferSameData.php + process/crawler/nodoInviaCarrelloRPT/BothEvents/T00025_CreateAttemptOneRPT2TransferSameData.php + process/crawler/nodoInviaCarrelloRPT/BothEvents/T00026_CreateAttemptTwoRPTTwoTransferForRPTSameData.php + process/crawler/nodoInviaCarrelloRPT/BothEvents/T00027_CreateAttemptTwoRPTTwoTransferForRPTWithResponseDifferentData.php + process/crawler/nodoInviaCarrelloRPT/BothEvents/T00028_CreateAttemptOneRPTTwoTransferWithFaultCodeInResponse.php + process/crawler/nodoInviaCarrelloRPT/BothEvents/T00029_CreateAttemptOneRPTTwoTransferWithSessionIdOriginalNotFound.php + process/crawler/sendPaymentOutcome/T00030_WorkflowPaymentMod3New2TransferSPOOK.php + process/crawler/sendPaymentOutcome/T00031_WorkflowPaymentMod3New2TransferSPOKO.php + process/crawler/sendPaymentOutcome/T00032_WorkflowPaymentMod3New2TransferSPOOKAndKO.php + process/crawler/sendPaymentOutcome/T00033_WorkflowPaymentMod3New1TransferMultipleSPOOK.php + process/crawler/sendPaymentOutcome/T00034_WorkflowPaymentMod3New1TransferSPOAnotherDay.php + process/crawler/pspInviaCarrelloRPT/T00040_UpdatePspWithNodoInviaCarrelloRPT_1_RPT.php + process/crawler/pspInviaCarrelloRPT/T00041_UpdatePspWithNodoInviaCarrelloRPT_1_RPT_FaultCode.php + process/crawler/pspInviaCarrelloRPT/T00042_UpdatePspWithNodoInviaCarrelloRPT_2_RPT.php + process/crawler/pspInviaCarrelloRPTCarte/T00043_UpdatePspWithNodoInviaCarrelloRPT_1_RPT_ExtraInfo.php + process/crawler/nodoInviaRPT/T00044_nodoInviaRPT_NoPreviousAttivaRPT.php + process/crawler/nodoAttivaRPT/T00045_nodoAttivaRPT_PreviousAttivaRPT.php + process/crawler/nodoAttivaRPT/T00046_nodoAttivaRPT_PreviousAttivaRPT_FaultCode.php + process/crawler/pspNotifyPayment/T00047_WorkFlow_WithPspNotifyPayment_CreditCard.php + process/crawler/pspNotifyPayment/T00048_WorkFlow_WithPspNotifyPayment_BancomatPay.php + process/crawler/pspNotifyPayment/T00049_WorkFlow_WithPspNotifyPayment_Paypal.php + process/crawler/nodoInviaRT/T00050_nodoInviaRT_Cart1RPT.php + process/crawler/nodoInviaRT/T00051_nodoInviaRT_Cart2RPT.php + process/crawler/paaInviaRT/T00052_paaInviaRT_Cart2RPT.php + process/crawler/activateIOPayment/T00053_activateIOPaymentNotice_2Transfer.php + process/crawler/activatePaymentNoticeV2/T00054_activatePaymentNoticeV2_2Transfer.php + process/crawler/activatePaymentNoticeV2/T00055_activatePaymentNoticeV2_MetadataTransferPayment.php + process/crawler/activatePaymentNoticeV2/T00056_activatePaymentNoticeV2_TransferWithBollo.php + process/crawler/activatePaymentNoticeV2/T00057_activatePaymentNoticeV2_WithFault.php + process/crawler/pspNotifyPaymentV2/T00058_pspNotifyPaymentV2_2Payment.php + process/crawler/nodoChiediInformazioniPagamento/T00059_WorkFlowWithNodoChiediInformazioniPagamento.php + process/crawler/nodoInoltraEsitoPagamentoCarta/T00060_WorkFlowWithNodoInoltraEsitoPagamento.php + process/crawler/nodoChiediAvanzamentoPagamento/T00061_WorkFlowWithNodoChiediAvanzamentoPagamento.php + process/crawler/closePaymentV1/T00062_WorkFlowWithClosePaymentV1.php + process/crawler/cdInfoWisp/T00063_WorkFlowWithCdInfoWisp.php + process/crawler/nodoInoltraEsitoPagamentoPayPal/T00064_WorkFlowWithNodoInoltraEsitoPagamentoPayPal.php + process/crawler/nodoNotificaAnnullamento/T00065_WorkflowWithAnnulloCarrelloRPT.php + process/crawler/nodoInoltraPagamentoMod1/T00066_WorkflowWithInoltroPagamentoMod1.php + process/crawler/nodoChiediCopiaRT/T00067_WorkflowWithNodoChiediCopiaRT.php + process/crawler/paGetPayment/T00068_WorkflowWithpaGetPayment.php + process/crawler/paSendRT/T00069_WorkflowWithpaSendRT.php + process/crawler/paGetPaymentV2/T00070_WorkflowWithPaGetPaymentV2.php + process/crawler/sendPaymentOutcomeV2/T00071_WorkflowWithSPOV2_Mod3.php + process/crawler/sendPaymentOutcomeV2/T00072_WorkflowWithSPOV2_ModUnico.php + + + + pagopa/methods/objects/RTTest.php + + + pagopa/database/SingleRowTest.php + pagopa/methods/req/activatePaymentNoticeTest.php + pagopa/methods/req/nodoInviaCarrelloRPTTest.php + pagopa/methods/req/sendPaymentOutcomeTest.php + pagopa/methods/req/pspInviaCarrelloRPTTest.php + pagopa/methods/req/pspInviaCarrelloRPTCarteTest.php + pagopa/methods/req/nodoInviaRPTTest.php + pagopa/methods/req/nodoAttivaRPTTest.php + pagopa/methods/req/pspNotifyPaymentTest.php + pagopa/methods/req/nodoInviaRTTest.php + pagopa/methods/req/paaInviaRTTest.php + pagopa/methods/req/activateIOPaymentTest.php + pagopa/methods/req/activatePaymentNoticeV2Test.php + pagopa/methods/req/pspNotifyPaymentV2Test.php + pagopa/methods/req/closePaymentV2Test.php + pagopa/methods/req/closePaymentV1Test.php + pagopa/methods/req/nodoChiediInformazioniPagamentoTest.php + pagopa/methods/req/nodoInoltraEsitoPagamentoCartaTest.php + pagopa/methods/req/nodoChiediAvanzamentoPagamentoTest.php + pagopa/methods/req/cdInfoWispTest.php + pagopa/methods/req/nodoInoltraEsitoPagamentoPayPalTest.php + pagopa/methods/req/nodoNotificaAnnullamentoTest.php + pagopa/methods/req/nodoInoltraPagamentoMod1Test.php + pagopa/methods/req/nodoChiediCopiaRTTest.php + pagopa/methods/req/paGetPaymentTest.php + pagopa/methods/req/paSendRTTest.php + pagopa/methods/req/paGetPaymentV2Test.php + pagopa/methods/req/sendPaymentOutcomeV2Test.php + + + pagopa/methods/resp/activatePaymentNoticeTest.php + pagopa/methods/resp/nodoInviaCarrelloRPTTest.php + pagopa/methods/resp/sendPaymentOutcomeTest.php + pagopa/methods/resp/pspInviaCarrelloRPTTest.php + pagopa/methods/resp/pspInviaCarrelloRPTCarteTest.php + pagopa/methods/resp/nodoInviaRPTTest.php + pagopa/methods/resp/nodoAttivaRPTTest.php + pagopa/methods/resp/pspNotifyPaymentTest.php + pagopa/methods/resp/nodoInviaRTTest.php + pagopa/methods/resp/paaInviaRTTest.php + pagopa/methods/resp/activateIOPaymentTest.php + pagopa/methods/resp/activatePaymentNoticeV2Test.php + pagopa/methods/resp/pspNotifyPaymentV2Test.php + pagopa/methods/resp/closePaymentV2Test.php + pagopa/methods/resp/closePaymentV1Test.php + pagopa/methods/resp/nodoChiediInformazioniPagamentoTest.php + pagopa/methods/resp/nodoInoltraEsitoPagamentoCartaTest.php + pagopa/methods/resp/nodoChiediAvanzamentoPagamentoTest.php + pagopa/methods/resp/cdInfoWispTest.php + pagopa/methods/resp/nodoInoltraEsitoPagamentoPayPalTest.php + pagopa/methods/resp/nodoNotificaAnnullamentoTest.php + pagopa/methods/resp/nodoInoltraPagamentoMod1Test.php + pagopa/methods/resp/nodoChiediCopiaRTTest.php + pagopa/methods/resp/paGetPaymentTest.php + pagopa/methods/resp/paSendRTTest.php + pagopa/methods/resp/paGetPaymentV2Test.php + pagopa/methods/resp/sendPaymentOutcomeV2Test.php + + + + pagopa/events/req/activatePaymentNoticeTest.php + pagopa/events/req/nodoInviaCarrelloRPTTest.php + pagopa/events/req/sendPaymentOutcomeTest.php + pagopa/events/req/pspInviaCarrelloRPTTest.php + pagopa/events/req/pspInviaCarrelloRPTCarteTest.php + pagopa/events/req/nodoInviaRPTTest.php + pagopa/events/req/nodoAttivaRPTTest.php + pagopa/events/req/pspNotifyPaymentTest.php + pagopa/events/req/nodoInviaRTTest.php + pagopa/events/req/paaInviaRTTest.php + pagopa/events/req/activateIOPaymentTest.php + pagopa/events/req/activatePaymentNoticeV2Test.php + pagopa/events/req/pspNotifyPaymentV2Test.php + pagopa/events/req/closePaymentV2Test.php + pagopa/events/req/closePaymentV1Test.php + pagopa/events/req/nodoChiediInformazioniPagamentoTest.php + pagopa/events/req/nodoInoltraEsitoPagamentoCartaTest.php + pagopa/events/req/nodoChiediAvanzamentoPagamentoTest.php + pagopa/events/req/cdInfoWispTest.php + pagopa/events/req/nodoInoltraEsitoPagamentoPayPalTest.php + pagopa/events/req/nodoNotificaAnnullamentoTest.php + pagopa/events/req/nodoInoltraPagamentoMod1Test.php + pagopa/events/req/nodoChiediCopiaRTTest.php + pagopa/events/req/paGetPaymentTest.php + pagopa/events/req/paSendRTTest.php + pagopa/events/req/paGetPaymentV2Test.php + pagopa/events/req/sendPaymentOutcomeV2Test.php + + + pagopa/events/resp/activatePaymentNoticeTest.php + pagopa/events/resp/nodoInviaCarrelloRPTTest.php + pagopa/events/resp/sendPaymentOutcomeTest.php + pagopa/events/resp/pspInviaCarrelloRPTTest.php + pagopa/events/resp/pspInviaCarrelloRPTCarteTest.php + pagopa/events/resp/nodoInviaRPTTest.php + pagopa/events/resp/nodoAttivaRPTTest.php + pagopa/events/resp/pspNotifyPaymentTest.php + pagopa/events/resp/nodoInviaRTTest.php + pagopa/events/resp/paaInviaRTTest.php + pagopa/events/resp/activateIOPaymentTest.php + pagopa/events/resp/pspNotifyPaymentV2Test.php + pagopa/events/resp/closePaymentV2Test.php + pagopa/events/resp/closePaymentV1Test.php + pagopa/events/resp/nodoChiediInformazioniPagamentoTest.php + pagopa/events/resp/nodoInoltraEsitoPagamentoCartaTest.php + pagopa/events/resp/nodoChiediAvanzamentoPagamentoTest.php + pagopa/events/resp/cdInfoWispTest.php + pagopa/events/resp/nodoInoltraEsitoPagamentoPayPalTest.php + pagopa/events/resp/nodoNotificaAnnullamentoTest.php + pagopa/events/resp/nodoInoltraPagamentoMod1Test.php + pagopa/events/resp/nodoChiediCopiaRTTest.php + pagopa/events/resp/paGetPaymentTest.php + pagopa/events/resp/paSendRTTest.php + pagopa/events/resp/paGetPaymentV2Test.php + pagopa/events/resp/sendPaymentOutcomeV2Test.php + + + process/normal/T0001.php + process/normal/T0002.php + process/normal/T0003.php + process/normal/T0004.php + process/normal/T0005.php + process/normal/T0006.php + process/normal/T0007.php + process/normal/T0008.php + process/normal/T0009.php + process/normal/T0010.php + process/normal/T0011.php + process/normal/T0012.php + process/normal/T0013.php + process/normal/T0014.php + process/normal/T0015.php + process/normal/T0016.php + process/normal/T0017.php + process/normal/T0018.php + process/normal/T0019.php + + + + + process/cache/TestAnalysisActivatePaymentNoticeReq.php + process/cache/TestAnalysisActivatePaymentNoticeResp.php + + + \ No newline at end of file