-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Aggiunti test per la ricerca degli iuv nelle riscossioni associate ad una riconciliazione.
- Loading branch information
Showing
8 changed files
with
349 additions
and
13 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
...i/backoffice/v1/riconciliazioni/get/msg/riconciliazione-cumulativa-idflusso-response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"dominio":"#notnull", | ||
"idIncasso":"#notnull", | ||
"causale":"##string", | ||
"importo":"#notnull", | ||
"data":"#notnull", | ||
"sct":"#notnull", | ||
"idFlusso":"#notnull", | ||
"riscossioni":[ | ||
{ | ||
"idDominio":"#notnull", | ||
"iuv":"#notnull", | ||
"iur":"#notnull", | ||
"indice":"#notnull", | ||
"pendenza":"#notnull", | ||
"vocePendenza":"#notnull", | ||
"rpp":"#notnull", | ||
"stato":"#notnull", | ||
"tipo":"#notnull", | ||
"importo":"#notnull", | ||
"data":"#notnull", | ||
"allegato":"#ignore", | ||
"incasso":"#notnull" | ||
}, | ||
{ | ||
"idDominio":"#notnull", | ||
"iuv":"#notnull", | ||
"iur":"#notnull", | ||
"indice":"#notnull", | ||
"pendenza":"#notnull", | ||
"vocePendenza":"#notnull", | ||
"rpp":"#notnull", | ||
"stato":"#notnull", | ||
"tipo":"#notnull", | ||
"importo":"#notnull", | ||
"data":"#notnull", | ||
"allegato":"#ignore", | ||
"incasso":"#notnull" | ||
} | ||
] | ||
} |
120 changes: 120 additions & 0 deletions
120
...t/java/test/api/backoffice/v1/riconciliazioni/get/riconciliazioni-find-byIdFlusso.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
Feature: Ricerca delle riconciliazioni filtrate per id flusso rendicontazione | ||
|
||
Background: | ||
|
||
callonce read('classpath:utils/common-utils.feature') | ||
* callonce read('classpath:configurazione/v1/anagrafica_estesa.feature') | ||
* callonce read('classpath:utils/nodo-genera-rendicontazioni.feature') | ||
* callonce read('classpath:utils/govpay-op-acquisisci-rendicontazioni.feature') | ||
* def ragioneriaBaseurl = getGovPayApiBaseUrl({api: 'ragioneria', versione: 'v3', autenticazione: 'basic'}) | ||
|
||
Scenario: Riconciliazioni da applicazione autorizzata per dominio_1 e dominio_2 | ||
|
||
* call sleep(1000) | ||
* def dataInizio = getDateTime() | ||
* call sleep(1000) | ||
|
||
* def tipoRicevuta = "R01" | ||
* def riversamentoCumulativo = "true" | ||
|
||
* call read('classpath:utils/workflow/modello3/v2/modello3-pagamento.feature') | ||
* def iuv1 = iuv | ||
* def importo1 = importo | ||
|
||
* call read('classpath:utils/workflow/modello3/v2/modello3-pagamento.feature') | ||
* def iuv2 = iuv | ||
* def importo2 = importo | ||
|
||
* call read('classpath:utils/nodo-genera-rendicontazioni.feature') | ||
* def importo = response.response.rh[0].importo | ||
* def causale = response.response.rh[0].causale | ||
|
||
* call read('classpath:utils/govpay-op-acquisisci-rendicontazioni.feature') | ||
|
||
* def basicAutenticationHeader = getBasicAuthenticationHeader( { username: idA2A, password: pwdA2A } ) | ||
|
||
* def idRiconciliazione = getCurrentTimeMillis() | ||
* def idFlussoRendicontazione = estraiIdFlussoDallaCausale(causale) | ||
|
||
Given url ragioneriaBaseurl | ||
And path '/riconciliazioni', idDominio, idRiconciliazione | ||
And headers idA2ABasicAutenticationHeader | ||
And request { idFlussoRendicontazione: '#(idFlussoRendicontazione)', importo: '#(importo)' , sct : 'SCT0123456789'} | ||
When method put | ||
Then status 202 | ||
|
||
* def riconciliazioneLocation = responseHeaders['Location'][0] | ||
|
||
# Attesa batch elaborazione rendicontazioni | ||
* call sleep(5000) | ||
|
||
Given url ragioneriaBaseurl | ||
And path riconciliazioneLocation | ||
And headers idA2ABasicAutenticationHeader | ||
When method get | ||
Then status 200 | ||
|
||
* def idRiconciliazioneCum_DOM1_A2A = response.id | ||
* def riconciliazioneCum_DOM1_A2A = response | ||
|
||
* call sleep(1000) | ||
* def dataFine = getDateTime() | ||
* call sleep(1000) | ||
|
||
* def applicazione = read('msg/applicazione_dominio1e2.json') | ||
* def backofficeBaseurl = getGovPayApiBaseUrl({api: 'backoffice', versione: 'v1', autenticazione: 'basic'}) | ||
|
||
Given url backofficeBaseurl | ||
And path 'applicazioni', idA2A | ||
And headers gpAdminBasicAutenticationHeader | ||
And request applicazione | ||
When method put | ||
Then assert responseStatus == 200 || responseStatus == 201 | ||
|
||
* call read('classpath:configurazione/v1/operazioni-resetCache.feature') | ||
* def ragioneriaBaseurl = getGovPayApiBaseUrl({api: 'backoffice', versione: 'v1', autenticazione: 'basic'}) | ||
|
||
Given url backofficeBaseurl | ||
And path '/incassi' | ||
And headers idA2ABasicAutenticationHeader | ||
And param dataDa = dataInizio | ||
And param dataA = dataFine | ||
And param idFlusso = riconciliazioneCum_DOM1_A2A.idFlussoRendicontazione | ||
When method get | ||
Then status 200 | ||
And match response.risultati[0].idIncasso == riconciliazioneCum_DOM1_A2A.idFlussoRendicontazione | ||
And match response.risultati[0].idFlusso == riconciliazioneCum_DOM1_A2A.idFlussoRendicontazione | ||
And match response == | ||
""" | ||
{ | ||
numRisultati: 1, | ||
numPagine: 1, | ||
risultatiPerPagina: 25, | ||
pagina: 1, | ||
prossimiRisultati: '##null', | ||
risultati: '#[1]' | ||
} | ||
""" | ||
|
||
Scenario: Ricerca riconciliazioni con un idFlusso non presente | ||
|
||
Given url backofficeBaseurl | ||
And path '/incassi' | ||
And headers idA2ABasicAutenticationHeader | ||
And param dataDa = dataInizio | ||
And param dataA = dataFine | ||
And param idFlusso = 'XXX' | ||
When method get | ||
Then status 200 | ||
And match response == | ||
""" | ||
{ | ||
numRisultati: 0, | ||
numPagine: 1, | ||
risultatiPerPagina: 25, | ||
pagina: 1, | ||
prossimiRisultati: '##null', | ||
risultati: '#[0]' | ||
} | ||
""" | ||
|
128 changes: 128 additions & 0 deletions
128
...c/test/java/test/api/backoffice/v1/riconciliazioni/get/riconciliazioni-find-byIuv.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
Feature: Ricerca delle riconciliazioni filtrate per iuv | ||
|
||
Background: | ||
|
||
callonce read('classpath:utils/common-utils.feature') | ||
* callonce read('classpath:configurazione/v1/anagrafica_estesa.feature') | ||
* callonce read('classpath:utils/nodo-genera-rendicontazioni.feature') | ||
* callonce read('classpath:utils/govpay-op-acquisisci-rendicontazioni.feature') | ||
* def ragioneriaBaseurl = getGovPayApiBaseUrl({api: 'ragioneria', versione: 'v3', autenticazione: 'basic'}) | ||
|
||
Scenario: Riconciliazioni da applicazione autorizzata per dominio_1 e dominio_2 | ||
|
||
* call sleep(1000) | ||
* def dataInizio = getDateTime() | ||
* call sleep(1000) | ||
|
||
* def tipoRicevuta = "R01" | ||
* def riversamentoCumulativo = "true" | ||
|
||
* call read('classpath:utils/workflow/modello3/v2/modello3-pagamento.feature') | ||
* def iuv1 = iuv | ||
* def importo1 = importo | ||
|
||
* call read('classpath:utils/workflow/modello3/v2/modello3-pagamento.feature') | ||
* def iuv2 = iuv | ||
* def importo2 = importo | ||
|
||
* call read('classpath:utils/nodo-genera-rendicontazioni.feature') | ||
* def importo = response.response.rh[0].importo | ||
* def causale = response.response.rh[0].causale | ||
|
||
* call read('classpath:utils/govpay-op-acquisisci-rendicontazioni.feature') | ||
|
||
* def basicAutenticationHeader = getBasicAuthenticationHeader( { username: idA2A, password: pwdA2A } ) | ||
|
||
* def idRiconciliazione = getCurrentTimeMillis() | ||
* def idFlussoRendicontazione = estraiIdFlussoDallaCausale(causale) | ||
|
||
Given url ragioneriaBaseurl | ||
And path '/riconciliazioni', idDominio, idRiconciliazione | ||
And headers idA2ABasicAutenticationHeader | ||
And request { idFlussoRendicontazione: '#(idFlussoRendicontazione)', importo: '#(importo)' , sct : 'SCT0123456789'} | ||
When method put | ||
Then status 202 | ||
|
||
* def riconciliazioneLocation = responseHeaders['Location'][0] | ||
|
||
# Attesa batch elaborazione rendicontazioni | ||
* call sleep(5000) | ||
|
||
Given url ragioneriaBaseurl | ||
And path riconciliazioneLocation | ||
And headers idA2ABasicAutenticationHeader | ||
When method get | ||
Then status 200 | ||
|
||
* def idRiconciliazioneCum_DOM1_A2A = response.id | ||
* def riconciliazioneCum_DOM1_A2A = response | ||
|
||
* call sleep(1000) | ||
* def dataFine = getDateTime() | ||
* call sleep(1000) | ||
|
||
* def applicazione = read('msg/applicazione_dominio1e2.json') | ||
* def backofficeBaseurl = getGovPayApiBaseUrl({api: 'backoffice', versione: 'v1', autenticazione: 'basic'}) | ||
|
||
Given url backofficeBaseurl | ||
And path 'applicazioni', idA2A | ||
And headers gpAdminBasicAutenticationHeader | ||
And request applicazione | ||
When method put | ||
Then assert responseStatus == 200 || responseStatus == 201 | ||
|
||
* call read('classpath:configurazione/v1/operazioni-resetCache.feature') | ||
* def ragioneriaBaseurl = getGovPayApiBaseUrl({api: 'backoffice', versione: 'v1', autenticazione: 'basic'}) | ||
|
||
Given url backofficeBaseurl | ||
And path '/incassi' | ||
And headers idA2ABasicAutenticationHeader | ||
And param dataDa = dataInizio | ||
And param dataA = dataFine | ||
And param iuv = riconciliazioneCum_DOM1_A2A.riscossioni[0].iuv | ||
When method get | ||
Then status 200 | ||
And match response.risultati[0].idIncasso == riconciliazioneCum_DOM1_A2A.idFlussoRendicontazione | ||
And match response.risultati[0].idFlusso == riconciliazioneCum_DOM1_A2A.idFlussoRendicontazione | ||
And match response == | ||
""" | ||
{ | ||
numRisultati: 1, | ||
numPagine: 1, | ||
risultatiPerPagina: 25, | ||
pagina: 1, | ||
prossimiRisultati: '##null', | ||
risultati: '#[1]' | ||
} | ||
""" | ||
|
||
Given url backofficeBaseurl | ||
And path '/incassi', idDominio, idRiconciliazione | ||
And headers idA2ABasicAutenticationHeader | ||
When method get | ||
Then status 200 | ||
And match response == read('msg/riconciliazione-cumulativa-idflusso-response.json') | ||
|
||
|
||
Scenario: Ricerca riconciliazioni con uno iuv non presente | ||
|
||
Given url backofficeBaseurl | ||
And path '/incassi' | ||
And headers idA2ABasicAutenticationHeader | ||
And param dataDa = dataInizio | ||
And param dataA = dataFine | ||
And param idFlusso = 'XXX' | ||
When method get | ||
Then status 200 | ||
And match response == | ||
""" | ||
{ | ||
numRisultati: 0, | ||
numPagine: 1, | ||
risultatiPerPagina: 25, | ||
pagina: 1, | ||
prossimiRisultati: '##null', | ||
risultati: '#[0]' | ||
} | ||
""" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.