-
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.
Allineata lettura delle liste di flussi rendicontazione nelle API-Rag…
…ioneria a quanto fatto per le API-Backoffice. Corretto check autorizzazione del dettaglio di un flusso di rendicontazione per tutte le API.
- Loading branch information
Showing
16 changed files
with
353 additions
and
119 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
21 changes: 21 additions & 0 deletions
21
...java/test/api/backoffice/v1/flussiRendicontazione/get/msg/applicazione_dominio1_star.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,21 @@ | ||
{ | ||
"principal": '#(idA2A)', | ||
"codificaAvvisi": { | ||
"codificaIuv": "34", | ||
"regExpIuv": ".*", | ||
"generazioneIuvInterna": false | ||
}, | ||
"domini": [ { "idDominio": "#(idDominio)", "unitaOperative": [ "*"] } ], | ||
"tipiPendenza": ['*'], | ||
"apiPagamenti": false, | ||
"apiPendenze": false, | ||
"apiRagioneria": false, | ||
"acl": [ | ||
{ "servizio": "Rendicontazioni e Incassi", "autorizzazioni": [ "R", "W" ] } | ||
], | ||
"servizioIntegrazione": { | ||
"url": '#(ente_api_url + "/v1")', | ||
"versioneApi": "REST v1" | ||
}, | ||
"abilitato": true | ||
} |
100 changes: 100 additions & 0 deletions
100
...st/api/ragioneria/v2/flussiRendicontazione/get/flussiRendicontazione-find-auth-uo.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,100 @@ | ||
Feature: Ricerca e lettura di flussi di rendicontazione con autorizzazione per UO | ||
|
||
Background: | ||
|
||
* callonce read('classpath:utils/api/v1/ragioneria/bunch-rendicontazioni.feature') | ||
* def rendicontazioneSchema = read('msg/rendicontazione.json') | ||
|
||
Scenario Outline: Lettura dettaglio applicazione [<applicazione>] del flusso di rendicontazione [<idFlusso>] | ||
|
||
* def applicazione = read('msg/<applicazione>') | ||
* 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 = dataInizio | ||
When method get | ||
Then status 200 | ||
And match response == | ||
""" | ||
{ | ||
numRisultati: <numRisultati>, | ||
numPagine: 1, | ||
risultatiPerPagina: 25, | ||
pagina: 1, | ||
prossimiRisultati: '##null', | ||
risultati: '#[<numRisultati>]' | ||
} | ||
""" | ||
|
||
Given url ragioneriaBaseurl | ||
And path '/flussiRendicontazione', <idFlusso> | ||
And headers idA2ABasicAutenticationHeader | ||
When method get | ||
Then status <httpStatus> | ||
And match response == read('msg/<risposta>') | ||
|
||
Examples: | ||
| applicazione | idFlusso | httpStatus | risposta | numRisultati | | ||
| applicazione_star.json | idflusso_dom1 | 200 | flussoRendicontazioni.json | 5 | | ||
| applicazione_star.json | idflusso_dom1_uo | 200 | flussoRendicontazioni.json | 5 | | ||
| applicazione_star.json | idflusso_dom1_uo2 | 200 | flussoRendicontazioni.json | 5 | | ||
| applicazione_star.json | idflusso_dom2_uo | 200 | flussoRendicontazioni.json | 5 | | ||
| applicazione_star.json | idflusso_dom2 | 200 | flussoRendicontazioni.json | 5 | | ||
| applicazione_dominio1e2.json | idflusso_dom1 | 200 | flussoRendicontazioni.json | 5 | | ||
| applicazione_dominio1e2.json | idflusso_dom1_uo | 200 | flussoRendicontazioni.json | 5 | | ||
| applicazione_dominio1e2.json | idflusso_dom1_uo2 | 200 | flussoRendicontazioni.json | 5 | | ||
| applicazione_dominio1e2.json | idflusso_dom2_uo | 200 | flussoRendicontazioni.json | 5 | | ||
| applicazione_dominio1e2.json | idflusso_dom2 | 200 | flussoRendicontazioni.json | 5 | | ||
| applicazione_dominio1.json | idflusso_dom1 | 200 | flussoRendicontazioni.json | 3 | | ||
| applicazione_dominio1.json | idflusso_dom1_uo | 200 | flussoRendicontazioni.json | 3 | | ||
| applicazione_dominio1.json | idflusso_dom1_uo2 | 200 | flussoRendicontazioni.json | 3 | | ||
| applicazione_dominio1.json | idflusso_dom2_uo | 403 | errore_auth.json | 3 | | ||
| applicazione_dominio1.json | idflusso_dom2 | 403 | errore_auth.json | 3 | | ||
| applicazione_dominio2.json | idflusso_dom1 | 403 | errore_auth.json | 2 | | ||
| applicazione_dominio2.json | idflusso_dom1_uo | 403 | errore_auth.json | 2 | | ||
| applicazione_dominio2.json | idflusso_dom1_uo2 | 403 | errore_auth.json | 2 | | ||
| applicazione_dominio2.json | idflusso_dom2_uo | 200 | flussoRendicontazioni.json | 2 | | ||
| applicazione_dominio2.json | idflusso_dom2 | 200 | flussoRendicontazioni.json | 2 | | ||
| applicazione_none.json | idflusso_dom1 | 403 | errore_auth.json | 0 | | ||
| applicazione_none.json | idflusso_dom1_uo | 403 | errore_auth.json | 0 | | ||
| applicazione_none.json | idflusso_dom1_uo2 | 403 | errore_auth.json | 0 | | ||
| applicazione_none.json | idflusso_dom2_uo | 403 | errore_auth.json | 0 | | ||
| applicazione_none.json | idflusso_dom2 | 403 | errore_auth.json | 0 | | ||
| applicazione_dominio1e2_ec.json | idflusso_dom1 | 200 | flussoRendicontazioni.json | 2 | | ||
| applicazione_dominio1e2_ec.json | idflusso_dom1_uo | 403 | errore_auth.json | 2 | | ||
| applicazione_dominio1e2_ec.json | idflusso_dom1_uo2 | 403 | errore_auth.json | 2 | | ||
| applicazione_dominio1e2_ec.json | idflusso_dom2_uo | 403 | errore_auth.json | 2 | | ||
| applicazione_dominio1e2_ec.json | idflusso_dom2 | 200 | flussoRendicontazioni.json | 2 | | ||
| applicazione_dominio1_ec.json | idflusso_dom1 | 200 | flussoRendicontazioni.json | 1 | | ||
| applicazione_dominio1_ec.json | idflusso_dom1_uo | 403 | errore_auth.json | 1 | | ||
| applicazione_dominio1_ec.json | idflusso_dom1_uo2 | 403 | errore_auth.json | 1 | | ||
| applicazione_dominio1_ec.json | idflusso_dom2_uo | 403 | errore_auth.json | 1 | | ||
| applicazione_dominio1_ec.json | idflusso_dom2 | 403 | errore_auth.json | 1 | | ||
| applicazione_dominio1_uo1.json | idflusso_dom1 | 403 | errore_auth.json | 1 | | ||
| applicazione_dominio1_uo1.json | idflusso_dom1_uo | 200 | flussoRendicontazioni.json | 1 | | ||
| applicazione_dominio1_uo1.json | idflusso_dom1_uo2 | 403 | errore_auth.json | 1 | | ||
| applicazione_dominio1_uo1.json | idflusso_dom2_uo | 403 | errore_auth.json | 1 | | ||
| applicazione_dominio1_uo1.json | idflusso_dom2 | 403 | errore_auth.json | 1 | | ||
| applicazione_dominio1_uo1e2.json | idflusso_dom1 | 403 | errore_auth.json | 2 | | ||
| applicazione_dominio1_uo1e2.json | idflusso_dom1_uo | 200 | flussoRendicontazioni.json | 2 | | ||
| applicazione_dominio1_uo1e2.json | idflusso_dom1_uo2 | 200 | flussoRendicontazioni.json | 2 | | ||
| applicazione_dominio1_uo1e2.json | idflusso_dom2_uo | 403 | errore_auth.json | 2 | | ||
| applicazione_dominio1_uo1e2.json | idflusso_dom2 | 403 | errore_auth.json | 2 | | ||
| applicazione_dominio1_star.json | idflusso_dom1 | 200 | flussoRendicontazioni.json | 3 | | ||
| applicazione_dominio1_star.json | idflusso_dom1_uo | 200 | flussoRendicontazioni.json | 3 | | ||
| applicazione_dominio1_star.json | idflusso_dom1_uo2 | 200 | flussoRendicontazioni.json | 3 | | ||
| applicazione_dominio1_star.json | idflusso_dom2_uo | 403 | errore_auth.json | 3 | | ||
| applicazione_dominio1_star.json | idflusso_dom2 | 403 | errore_auth.json | 3 | | ||
|
19 changes: 19 additions & 0 deletions
19
...t/java/test/api/ragioneria/v2/flussiRendicontazione/get/msg/applicazione_dominio1_ec.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,19 @@ | ||
{ | ||
"principal": '#(idA2A)', | ||
"codificaAvvisi": { | ||
"codificaIuv": "34", | ||
"regExpIuv": ".*", | ||
"generazioneIuvInterna": false | ||
}, | ||
"domini": [ { "idDominio": "#(idDominio)", "unitaOperative": [ "EC"] } ], | ||
"tipiPendenza": ['*'], | ||
"apiPagamenti": false, | ||
"apiPendenze": false, | ||
"apiRagioneria": true, | ||
"acl": [ ], | ||
"servizioIntegrazione": { | ||
"url": '#(ente_api_url + "/v1")', | ||
"versioneApi": "REST v1" | ||
}, | ||
"abilitato": true | ||
} |
19 changes: 19 additions & 0 deletions
19
...java/test/api/ragioneria/v2/flussiRendicontazione/get/msg/applicazione_dominio1_star.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,19 @@ | ||
{ | ||
"principal": '#(idA2A)', | ||
"codificaAvvisi": { | ||
"codificaIuv": "34", | ||
"regExpIuv": ".*", | ||
"generazioneIuvInterna": false | ||
}, | ||
"domini": [ { "idDominio": "#(idDominio)", "unitaOperative": [ "*"] } ], | ||
"tipiPendenza": ['*'], | ||
"apiPagamenti": false, | ||
"apiPendenze": false, | ||
"apiRagioneria": true, | ||
"acl": [ ], | ||
"servizioIntegrazione": { | ||
"url": '#(ente_api_url + "/v1")', | ||
"versioneApi": "REST v1" | ||
}, | ||
"abilitato": true | ||
} |
19 changes: 19 additions & 0 deletions
19
.../java/test/api/ragioneria/v2/flussiRendicontazione/get/msg/applicazione_dominio1_uo1.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,19 @@ | ||
{ | ||
"principal": '#(idA2A)', | ||
"codificaAvvisi": { | ||
"codificaIuv": "34", | ||
"regExpIuv": ".*", | ||
"generazioneIuvInterna": false | ||
}, | ||
"domini": [ { "idDominio": "#(idDominio)", "unitaOperative": [ "#(idUnitaOperativa)"] } ], | ||
"tipiPendenza": ['*'], | ||
"apiPagamenti": false, | ||
"apiPendenze": false, | ||
"apiRagioneria": true, | ||
"acl": [ ], | ||
"servizioIntegrazione": { | ||
"url": '#(ente_api_url + "/v1")', | ||
"versioneApi": "REST v1" | ||
}, | ||
"abilitato": true | ||
} |
19 changes: 19 additions & 0 deletions
19
...ava/test/api/ragioneria/v2/flussiRendicontazione/get/msg/applicazione_dominio1_uo1e2.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,19 @@ | ||
{ | ||
"principal": '#(idA2A)', | ||
"codificaAvvisi": { | ||
"codificaIuv": "34", | ||
"regExpIuv": ".*", | ||
"generazioneIuvInterna": false | ||
}, | ||
"domini": [ { "idDominio": "#(idDominio)", "unitaOperative": [ "#(idUnitaOperativa)", "#(idUnitaOperativa2)"] } ], | ||
"tipiPendenza": ['*'], | ||
"apiPagamenti": false, | ||
"apiPendenze": false, | ||
"apiRagioneria": true, | ||
"acl": [ ], | ||
"servizioIntegrazione": { | ||
"url": '#(ente_api_url + "/v1")', | ||
"versioneApi": "REST v1" | ||
}, | ||
"abilitato": true | ||
} |
19 changes: 19 additions & 0 deletions
19
...st/java/test/api/ragioneria/v2/flussiRendicontazione/get/msg/applicazione_dominio1e2.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,19 @@ | ||
{ | ||
"principal": '#(idA2A)', | ||
"codificaAvvisi": { | ||
"codificaIuv": "34", | ||
"regExpIuv": ".*", | ||
"generazioneIuvInterna": false | ||
}, | ||
"domini": [ '#(idDominio)', '#(idDominio_2)' ], | ||
"tipiPendenza": ['*'], | ||
"apiPagamenti": false, | ||
"apiPendenze": false, | ||
"apiRagioneria": true, | ||
"acl": [ ], | ||
"servizioIntegrazione": { | ||
"url": '#(ente_api_url + "/v1")', | ||
"versioneApi": "REST v1" | ||
}, | ||
"abilitato": true | ||
} |
19 changes: 19 additions & 0 deletions
19
...java/test/api/ragioneria/v2/flussiRendicontazione/get/msg/applicazione_dominio1e2_ec.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,19 @@ | ||
{ | ||
"principal": '#(idA2A)', | ||
"codificaAvvisi": { | ||
"codificaIuv": "34", | ||
"regExpIuv": ".*", | ||
"generazioneIuvInterna": false | ||
}, | ||
"domini": [ { "idDominio": "#(idDominio)", "unitaOperative": [ "EC"] }, { "idDominio": "#(idDominio_2)", "unitaOperative": [ "EC"] } ], | ||
"tipiPendenza": ['*'], | ||
"apiPagamenti": false, | ||
"apiPendenze": false, | ||
"apiRagioneria": true, | ||
"acl": [ ], | ||
"servizioIntegrazione": { | ||
"url": '#(ente_api_url + "/v1")', | ||
"versioneApi": "REST v1" | ||
}, | ||
"abilitato": true | ||
} |
19 changes: 19 additions & 0 deletions
19
...src/test/java/test/api/ragioneria/v2/flussiRendicontazione/get/msg/applicazione_none.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,19 @@ | ||
{ | ||
"principal": '#(idA2A)', | ||
"codificaAvvisi": { | ||
"codificaIuv": "34", | ||
"regExpIuv": ".*", | ||
"generazioneIuvInterna": false | ||
}, | ||
"domini": [ ], | ||
"tipiPendenza": [ ], | ||
"apiPagamenti": false, | ||
"apiPendenze": false, | ||
"apiRagioneria": true, | ||
"acl": [ ], | ||
"servizioIntegrazione": { | ||
"url": '#(ente_api_url + "/v1")', | ||
"versioneApi": "REST v1" | ||
}, | ||
"abilitato": true | ||
} |
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
Oops, something went wrong.