-
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.
Issue #445: Gestione idFlusso non univoco in FR
Modificata la unique della tabella fr  Modificato l'algoritmo di acquisizione dei flussi da pagoPA per idDominio, non per stazione.  Modificate le API Ragioneria v2 aggiungendo la possibilita' di indicare nel path della risorsa il idDominio  Deprecata nelle API Ragioneria v2 la risorsa /fr/{idFlusso} e /fr/{idFlusso}/{dataOraFlusso}  Modificata le API Ragioneria v3 aggiungendo alla risorsa fr il parametro idDominio  Aggiunti test di acquisizione da pagoPA di flussi con stesso identificativoFlusso, ma per domini diversi  Aggoimto test di ricerca e lettura tramite api Ragioneria v2, Ragioneria v3 e Backoffice v1 dei flussi indicati in presenza  Modificato e agggiunto test per il servizio di lettura FR senza passaggio di codDominio in modo che restituisca errore nel caso non sia univoco il risultato
- Loading branch information
Showing
34 changed files
with
657 additions
and
358 deletions.
There are no files selected for viewing
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
51 changes: 51 additions & 0 deletions
51
...rc/test/java/test/api/pagamento/v2/pagamenti/get/pagamento-get-applicazione-bollo.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,51 @@ | ||
Feature: Dettaglio pagamenti | ||
|
||
Background: | ||
|
||
* callonce read('classpath:utils/common-utils.feature') | ||
* callonce read('classpath:configurazione/v1/anagrafica.feature') | ||
|
||
Scenario: Lettura dettaglio pagamento bollo | ||
|
||
* def idPendenza = getCurrentTimeMillis() | ||
* def pagamentiBaseurl = getGovPayApiBaseUrl({api: 'pagamento', versione: 'v2', autenticazione: 'basic'}) | ||
* def pagamentoPost = read('classpath:test/api/pagamento/v2/pagamenti/post/msg/pagamento-post_spontaneo_entratariferita_bollo.json') | ||
* set pagamentoPost.pendenze[0].voci[0].codEntrata = codDovuto | ||
|
||
Given url pagamentiBaseurl | ||
And path '/pagamenti' | ||
And headers idA2ABasicAutenticationHeader | ||
And request pagamentoPost | ||
When method post | ||
Then status 201 | ||
And match response == { id: '#notnull', location: '#notnull', redirect: '#notnull', idSession: '#notnull' } | ||
|
||
* configure followRedirects = false | ||
* def idSession = response.idSession | ||
* def idPagamento = response.id | ||
|
||
Given url ndpsym_url + '/psp' | ||
And path '/eseguiPagamento' | ||
And param idSession = idSession | ||
And param idDominio = idDominio | ||
And param codice = "R01" | ||
And param riversamento = "0" | ||
When method get | ||
Then status 302 | ||
And match responseHeaders.Location == '#notnull' | ||
|
||
* call read('classpath:utils/pa-notifica-terminazione-byIdSession.feature') | ||
|
||
Given url pagamentiBaseurl | ||
And path '/pagamenti', idPagamento | ||
And headers idA2ABasicAutenticationHeader | ||
When method get | ||
Then status 200 | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
123 changes: 0 additions & 123 deletions
123
...test/api/ragioneria/v2/flussiRendicontazione/get/flussiRendicontazione-ec-esterni.feature
This file was deleted.
Oops, something went wrong.
129 changes: 129 additions & 0 deletions
129
...ragioneria/v2/flussiRendicontazione/get/flussiRendicontazione-getByDominioIdEData.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,129 @@ | ||
Feature: Accesso ai flussi di rendicontazione per idFlusso e dataOraFlusso | ||
|
||
Background: | ||
|
||
* callonce read('classpath:utils/api/v2/ragioneria/bunch-riconciliazioni-idFlussoNonUnivoco-v2.feature') | ||
|
||
Scenario: Ricerca rendicontazioni da applicazione applicazione_dominio1. | ||
|
||
* def applicazione = read('msg/applicazione_dominio1e2.json') | ||
* def backofficeBaseurl = getGovPayApiBaseUrl({api: 'backoffice', versione: 'v1', autenticazione: 'basic'}) | ||
* def ragioneriaBaseurl = getGovPayApiBaseUrl({api: 'ragioneria', versione: 'v2', 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') | ||
|
||
Given url ragioneriaBaseurl | ||
And path 'flussiRendicontazione' | ||
And headers idA2ABasicAutenticationHeader | ||
And param dataDa = dataInizioFR | ||
And param dataA = dataFineFR | ||
When method get | ||
Then status 200 | ||
And match response == | ||
""" | ||
{ | ||
numRisultati: 2, | ||
numPagine: 1, | ||
risultatiPerPagina: 25, | ||
pagina: 1, | ||
prossimiRisultati: '##null', | ||
risultati: '#[2]' | ||
} | ||
""" | ||
|
||
* def findResponse = response | ||
* def idDominio = findResponse.risultati[0].idDominio | ||
* def idFlusso = findResponse.risultati[0].idFlusso | ||
* def dataFlusso = findResponse.risultati[0].dataFlusso | ||
|
||
Given url ragioneriaBaseurl | ||
And path 'flussiRendicontazione', idDominio, idFlusso, dataFlusso | ||
And headers idA2ABasicAutenticationHeader | ||
When method get | ||
Then status 200 | ||
And match response.idFlusso == idFlusso | ||
And match response.dataFlusso == dataFlusso | ||
And match response.rendicontazioni == '#[6]' | ||
|
||
Given url ragioneriaBaseurl | ||
And path 'flussiRendicontazione', idDominio, idFlusso | ||
And headers idA2ABasicAutenticationHeader | ||
When method get | ||
Then status 200 | ||
And match response.idFlusso == idFlusso | ||
And match response.dataFlusso == dataFlusso | ||
And match response.rendicontazioni == '#[6]' | ||
|
||
Given url ragioneriaBaseurl | ||
And path 'flussiRendicontazione', idFlusso | ||
And headers idA2ABasicAutenticationHeader | ||
When method get | ||
Then status 422 | ||
|
||
Given url ragioneriaBaseurl | ||
And path 'flussiRendicontazione', idFlusso, dataFlusso | ||
And headers idA2ABasicAutenticationHeader | ||
When method get | ||
Then status 422 | ||
|
||
* def idDominio = findResponse.risultati[1].idDominio | ||
* def idFlusso = findResponse.risultati[1].idFlusso | ||
* def dataFlusso = findResponse.risultati[1].dataFlusso | ||
|
||
Given url ragioneriaBaseurl | ||
And path 'flussiRendicontazione', idDominio, idFlusso, dataFlusso | ||
And headers idA2ABasicAutenticationHeader | ||
When method get | ||
Then status 200 | ||
And match response.idFlusso == idFlusso | ||
And match response.dataFlusso == dataFlusso | ||
And match response.rendicontazioni == '#[4]' | ||
|
||
Given url ragioneriaBaseurl | ||
And path 'flussiRendicontazione', idDominio, idFlusso | ||
And headers idA2ABasicAutenticationHeader | ||
When method get | ||
Then status 200 | ||
And match response.idFlusso == idFlusso | ||
And match response.dataFlusso == dataFlusso | ||
And match response.rendicontazioni == '#[4]' | ||
|
||
Given url ragioneriaBaseurl | ||
And path 'flussiRendicontazione', idFlusso, dataFlusso | ||
And headers idA2ABasicAutenticationHeader | ||
When method get | ||
Then status 422 | ||
|
||
Given url ragioneriaBaseurl | ||
And path 'flussiRendicontazione', idFlusso | ||
And headers idA2ABasicAutenticationHeader | ||
When method get | ||
Then status 422 | ||
|
||
Scenario: Test per bug conteggio risultati backoffice | ||
|
||
Given url backofficeBaseurl | ||
And path 'flussiRendicontazione' | ||
And headers gpAdminBasicAutenticationHeader | ||
And param dataDa = dataInizioFR | ||
And param dataA = dataFineFR | ||
When method get | ||
Then status 200 | ||
And match response == | ||
""" | ||
{ | ||
numRisultati: 2, | ||
numPagine: 1, | ||
risultatiPerPagina: 25, | ||
pagina: 1, | ||
prossimiRisultati: '##null', | ||
risultati: '#[2]' | ||
} | ||
""" |
Oops, something went wrong.