-
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.
- Loading branch information
Showing
76 changed files
with
795 additions
and
333 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
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
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
11 changes: 0 additions & 11 deletions
11
...st/java/test/api/backoffice/v1/intermediari/put/msg/intermediarioSubscriptionKeyAuth.json
This file was deleted.
Oops, something went wrong.
68 changes: 68 additions & 0 deletions
68
...st/java/test/api/backoffice/v1/operazioni/get/operazioni-get-tracciatiGovpay-mail.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,68 @@ | ||
Feature: Creazione Tracciato GovPay | ||
|
||
Background: | ||
|
||
* callonce read('classpath:utils/workflow/modello1/v1/modello1-bunch-pagamenti-v2.feature') | ||
* callonce read('classpath:utils/api/v1/ragioneria/bunch-riconciliazioni-v2.feature') | ||
* def basicAutenticationHeader = getBasicAuthenticationHeader( { username: govpay_backoffice_user, password: govpay_backoffice_password } ) | ||
* def dominio = read('classpath:test/api/backoffice/v1/domini/put/msg/dominio-connettore-govpay.json') | ||
|
||
* set dominio.servizioGovPay.tipoConnettore = 'EMAIL' | ||
* set dominio.servizioGovPay.emailIndirizzi = ['[email protected]'] | ||
* set dominio.servizioGovPay.emailAllegato = false | ||
* set dominio.servizioGovPay.downloadBaseUrl = "http://localhost:8080/govpay/backend/api/backoffice/rs/form/v1/tracciatiNotificaPagamenti" | ||
* set dominio.servizioGovPay.versioneZip = '1.0' | ||
* set dominio.servizioGovPay.contenuti = ['RPP', 'SINTESI_PAGAMENTI', 'SINTESI_FLUSSI_RENDICONTAZIONE', 'FLUSSI_RENDICONTAZIONE'] | ||
* set dominio.servizioGovPay.tipiPendenza = [ '*' ] | ||
|
||
* def patchRequest = | ||
""" | ||
[ | ||
{ | ||
"op": "REPLACE", | ||
"path": "/mailBatch", | ||
"value": { | ||
"abilitato": true, | ||
"mailserver": { | ||
"host": "smtp.link.it", | ||
"port": "25", | ||
"username": "govcloud", | ||
"password": "G65trw%$3we", | ||
"from": "[email protected]", | ||
"readTimeout": 180000, | ||
"connectionTimeout": 20000, | ||
"sslConfig": { | ||
"abilitato": false | ||
}, | ||
"startTls" : false | ||
} | ||
} | ||
} | ||
] | ||
""" | ||
|
||
Scenario: Configurazione Dominio per spedizione tracciati govpay via rest e invocazione delle operazioni di creazione e spedizione tracciato | ||
|
||
Given url backofficeBaseurl | ||
And path 'configurazioni' | ||
And headers basicAutenticationHeader | ||
And request patchRequest | ||
When method patch | ||
Then assert responseStatus == 200 | ||
|
||
Given url backofficeBaseurl | ||
And path 'domini', idDominio | ||
And headers basicAutenticationHeader | ||
And request dominio | ||
When method put | ||
Then assert responseStatus == 200 || responseStatus == 201 | ||
|
||
* call read('classpath:configurazione/v1/operazioni-resetCache.feature') | ||
|
||
* call read('classpath:utils/govpay-op-elaborazione-tracciati-notifica-pagamenti.feature') | ||
|
||
# * call sleep(30000) | ||
|
||
* call read('classpath:utils/govpay-op-spedizione-tracciati-notifica-pagamenti.feature') | ||
|
||
* call sleep(60000) |
22 changes: 22 additions & 0 deletions
22
integration-test/src/test/java/test/api/backoffice/v1/profilo/get/massive-login.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,22 @@ | ||
Feature: Simulazione login alla console gui. | ||
|
||
Background: | ||
|
||
* callonce read('classpath:utils/common-utils.feature') | ||
* callonce read('classpath:configurazione/v1/anagrafica.feature') | ||
|
||
Scenario: Acquisizione del profilo autenticato basic | ||
|
||
* def gpAdminBasicAutenticationHeader = getBasicAuthenticationHeader( { username: govpay_backoffice_user, password: govpay_backoffice_password } ) | ||
* def backofficeBaseurl = getGovPayApiBaseUrl({api: 'backoffice', versione: 'v1', autenticazione: 'form'}) | ||
|
||
* configure cookies = null | ||
|
||
Given url backofficeBaseurl | ||
And path '/profilo' | ||
And headers gpAdminBasicAutenticationHeader | ||
When method get | ||
Then status 200 | ||
|
||
# Karate mette sempre il cookie quindi usiamo un loop di curl | ||
# for i in {1..10}; do curl -s -k 'GET' -H 'Authorization: Basic Z3BhZG1pbjpQYXNzd29yZDEh' 'http://localhost:8080/govpay/backend/api/backoffice/rs/form/v1/profilo'; done |
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
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
108 changes: 108 additions & 0 deletions
108
...test/java/test/api/backoffice/v1/riconciliazioni/get/riconciliazioni-find-byStato.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,108 @@ | ||
Feature: Validazione sintattica filtri di ricerca per stato | ||
|
||
Background: | ||
|
||
* callonce read('classpath:utils/common-utils.feature') | ||
* callonce read('classpath:configurazione/v1/anagrafica.feature') | ||
* def backofficeBaseurl = getGovPayApiBaseUrl({api: 'backoffice', versione: 'v1', autenticazione: 'basic'}) | ||
* def nomeAPI = '/incassi' | ||
|
||
Scenario: Validazione sintattica filtri per stato | ||
|
||
# No filtri | ||
|
||
Given url backofficeBaseurl | ||
And path nomeAPI | ||
And headers gpAdminBasicAutenticationHeader | ||
When method get | ||
Then status 200 | ||
And match response == | ||
""" | ||
{ | ||
maxRisultati: '#number', | ||
numRisultati: '#number', | ||
numPagine: '#number', | ||
risultatiPerPagina: 25, | ||
pagina: 1, | ||
prossimiRisultati: '#ignore', | ||
risultati: '#array' | ||
} | ||
""" | ||
|
||
# Filtro stato = 'IN_ELABORAZIONE' | ||
|
||
Given url backofficeBaseurl | ||
And path nomeAPI | ||
And param stato = 'IN_ELABORAZIONE' | ||
And headers gpAdminBasicAutenticationHeader | ||
When method get | ||
Then status 200 | ||
And match response == | ||
""" | ||
{ | ||
maxRisultati: '#number', | ||
numRisultati: '#number', | ||
numPagine: '#number', | ||
risultatiPerPagina: 25, | ||
pagina: 1, | ||
prossimiRisultati: '#ignore', | ||
risultati: '#array' | ||
} | ||
""" | ||
|
||
# Filtro stato = 'ACQUISITO' | ||
|
||
Given url backofficeBaseurl | ||
And path nomeAPI | ||
And param stato = 'ACQUISITO' | ||
And headers gpAdminBasicAutenticationHeader | ||
When method get | ||
Then status 200 | ||
And match response == | ||
""" | ||
{ | ||
maxRisultati: '#number', | ||
numRisultati: '#number', | ||
numPagine: '#number', | ||
risultatiPerPagina: 25, | ||
pagina: 1, | ||
prossimiRisultati: '#ignore', | ||
risultati: '#array' | ||
} | ||
""" | ||
|
||
# Filtro stato = 'ERRORE' | ||
|
||
Given url backofficeBaseurl | ||
And path nomeAPI | ||
And param stato = 'ERRORE' | ||
And headers gpAdminBasicAutenticationHeader | ||
When method get | ||
Then status 200 | ||
And match response == | ||
""" | ||
{ | ||
maxRisultati: '#number', | ||
numRisultati: '#number', | ||
numPagine: '#number', | ||
risultatiPerPagina: 25, | ||
pagina: 1, | ||
prossimiRisultati: '#ignore', | ||
risultati: '#array' | ||
} | ||
""" | ||
|
||
# Filtro stato non valido | ||
|
||
* def dataDaNonValida = 'STATO_NON_VALIDO' | ||
* def dataDaParamName = 'stato' | ||
|
||
Given url backofficeBaseurl | ||
And path nomeAPI | ||
And param dataDa = dataDaNonValida | ||
And headers gpAdminBasicAutenticationHeader | ||
When method get | ||
Then status 400 | ||
|
||
* match response == { categoria: 'RICHIESTA', codice: 'SINTASSI', descrizione: 'Richiesta non valida', dettaglio: '#notnull' } | ||
* match response.dettaglio contains 'STATO_NON_VALIDO' |
Oops, something went wrong.