Skip to content

Commit

Permalink
Corretta patch versione RPT.
Browse files Browse the repository at this point in the history
  • Loading branch information
pintorig committed Mar 18, 2022
1 parent 67bfbd2 commit e743a57
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,25 @@ And match response == { idDominio: '#(idDominio)', numeroAvviso: '#regex[0-9]{18
}
"""

Scenario: Caricamento pendenza multibeneficiario e pagamento a iniziativa psp con api SANP-SPC 2.3.0.

* def idPendenza = getCurrentTimeMillis()
* def pendenzaPut = read('msg/pendenza-put_multibeneficiario.json')
* set pendenzaPut.idTipoPendenza = codLibero
* def versionePagamento = 2

Given url pendenzeBaseurl
And path '/pendenze', idA2A, idPendenza
And headers idA2ABasicAutenticationHeader
And request pendenzaPut
When method put
Then status 201
And match response == { idDominio: '#(idDominio)', numeroAvviso: '#regex[0-9]{18}', UUID: '#notnull' }

* def numeroAvviso = response.numeroAvviso
* def iuv = getIuvFromNumeroAvviso(numeroAvviso)
* def ccp = getCurrentTimeMillis()
* def importo = pendenzaPut.importo
* def tipoRicevuta = "R01"
* call read('classpath:utils/psp-paGetPayment.feature')

2 changes: 1 addition & 1 deletion src/main/resources/db/sql/mysql/patch/3.5.sql
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ CREATE VIEW v_rendicontazioni_ext AS
DROP VIEW IF EXISTS v_rpt_versamenti;

ALTER TABLE rpt ADD COLUMN versione VARCHAR(35);
UPDATE rpt SET versione = 'SANP_230';
UPDATE rpt SET versione = 'SANP_230' WHERE versione IS NULL;
ALTER TABLE rpt MODIFY COLUMN versione VARCHAR(35) NOT NULL;

CREATE VIEW v_rpt_versamenti AS
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/db/sql/oracle/patch/3.5.sql
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ CREATE VIEW v_rendicontazioni_ext AS
DROP VIEW IF EXISTS v_rpt_versamenti;

ALTER TABLE rpt ADD versione VARCHAR2(35 CHAR);
UPDATE rpt SET versione = 'SANP_230';
UPDATE rpt SET versione = 'SANP_230' WHERE versione IS NULL;
ALTER TABLE rpt MODIFY (versione NOT NULL);

CREATE VIEW v_rpt_versamenti AS
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/db/sql/postgresql/patch/3.5.sql
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ CREATE VIEW v_rendicontazioni_ext AS
DROP VIEW IF EXISTS v_rpt_versamenti;

ALTER TABLE rpt ADD COLUMN versione VARCHAR(35);
UPDATE rpt SET versione = 'SANP_230';
UPDATE rpt SET versione = 'SANP_230' WHERE versione IS NULL;
ALTER TABLE rpt ALTER COLUMN versione SET NOT NULL;

CREATE VIEW v_rpt_versamenti AS
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/db/sql/sqlserver/patch/3.5.sql
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ CREATE VIEW v_rendicontazioni_ext AS
DROP VIEW IF EXISTS v_rpt_versamenti;

ALTER TABLE rpt ADD versione VARCHAR(35);
UPDATE rpt SET versione = 'SANP_230';
UPDATE rpt SET versione = 'SANP_230' WHERE versione IS NULL;
ALTER TABLE rpt ALTER COLUMN versione VARCHAR(35) NOT NULL;

CREATE VIEW v_rpt_versamenti AS
Expand Down

0 comments on commit e743a57

Please sign in to comment.