Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/postgres oracle new merged #353

Open
wants to merge 1,041 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
1041 commits
Select commit Hold shift + click to select a range
f7a1af2
upd sonfig and add subsription for method
Lucaaccenture Jun 4, 2024
1b11c8c
upd yaml with sub y and n
Lucaaccenture Jun 4, 2024
c53c3d1
add new scenario and update others
Lucaaccenture Jun 5, 2024
804c88c
fix run totale
lorenzo1046 Jun 5, 2024
20b19f6
Merge branch 'feature/POSTGRES_ORACLE_NEW' of https://github.com/pago…
lorenzo1046 Jun 5, 2024
650dd52
upd scenarios with checks pa new nmu ok
Lucaaccenture Jun 5, 2024
c384f60
upd checks pa new ok nmu
Lucaaccenture Jun 5, 2024
0c53d47
add checks all RE and add methods for check json and xml
Lucaaccenture Jun 6, 2024
debde8a
fix
lorenzo1046 Jun 6, 2024
b47fa87
Merge branch 'feature/POSTGRES_ORACLE_NEW' of https://github.com/pago…
lorenzo1046 Jun 6, 2024
c5b94ad
add new file for NM3 Pag OK Pa Old
lorenzo1046 Jun 6, 2024
aa8ddeb
upd scenarios and add print details field
Lucaaccenture Jun 7, 2024
926d353
upd scenario nmu paold 1
Lucaaccenture Jun 7, 2024
1438bd8
add new scenarios for NM3 Pa Old pagamento ok
lorenzo1046 Jun 7, 2024
27bf433
add scenario nmu paold ko
Lucaaccenture Jun 7, 2024
83201ff
add new scenario and upd others and upd steps and utils
Lucaaccenture Jun 7, 2024
7865d90
add test retry token scaduto
Lucaaccenture Jun 7, 2024
87d9159
add new scenarios for NM3 Pa Old
lorenzo1046 Jun 10, 2024
8a9ff5f
Merge branch 'feature/POSTGRES_ORACLE_NEW' of https://github.com/pago…
lorenzo1046 Jun 10, 2024
304b014
add methods calling primitive and add new scenarios NMU
Lucaaccenture Jun 10, 2024
1467f30
upd steps for check number record expected and obtained and add scena…
Lucaaccenture Jun 10, 2024
20b572b
add new scenarios for NM3 Pa Old
lorenzo1046 Jun 11, 2024
7c28e58
Merge branch 'feature/POSTGRES_ORACLE_NEW' of https://github.com/pago…
lorenzo1046 Jun 11, 2024
ffd891f
upd methods in steps and add 3 scenarios in NMU paNEW
Lucaaccenture Jun 11, 2024
d341753
add new scenarios for NM3 Pa Old
lorenzo1046 Jun 11, 2024
8fad00c
add new scenarios for NM3 Pa Old
lorenzo1046 Jun 11, 2024
49a95c6
add new scenarios for NM3 Pa Old
lorenzo1046 Jun 12, 2024
be6dae2
upd utils and steps and add new scenarios nmu pa new broadcast
Lucaaccenture Jun 12, 2024
8fae4db
add multi after, add 3 scenarios nmu pa new
Lucaaccenture Jun 13, 2024
865e473
upd tag after
Lucaaccenture Jun 13, 2024
a03966a
add new scenarios for NM3 Pa Old
lorenzo1046 Jun 13, 2024
8a2b51e
add new scenarios for NM3 Pa Old
lorenzo1046 Jun 13, 2024
be2dac3
upd utils and scenario nmu paold sessione scaduta
Lucaaccenture Jun 14, 2024
cce7c62
Merge branch 'feature/POSTGRES_ORACLE_NEW' of https://github.com/pago…
Lucaaccenture Jun 14, 2024
70b4838
add scenario sessione scaduta and upd utils single thread evo
Lucaaccenture Jun 17, 2024
89b38ae
add new scenarios for NM3 Pa Old
lorenzo1046 Jun 17, 2024
e893c94
ups utils and step and add scenarios NMU paOLD and paNEW
Lucaaccenture Jun 17, 2024
c28b6f2
Merge branch 'feature/POSTGRES_ORACLE_NEW' of https://github.com/pago…
Lucaaccenture Jun 17, 2024
a1a49ba
add new scenarios for NM3 Pa Old
lorenzo1046 Jun 18, 2024
42ba448
add scenarios paNew NMU pagamento ok
Lucaaccenture Jun 18, 2024
ba8ee7c
upd 18 scenarios nmu pa new checks
Lucaaccenture Jun 18, 2024
0cfa658
add new scenarios for NM3 Pa Old
lorenzo1046 Jun 18, 2024
e1dd1cb
Merge branch 'feature/POSTGRES_ORACLE_NEW' of https://github.com/pago…
lorenzo1046 Jun 18, 2024
bcc5591
add new scenarios for NM3 Pa Old
lorenzo1046 Jun 19, 2024
8681164
upd scenarios NMU pa NEW pagamento ok
Lucaaccenture Jun 19, 2024
5450746
pa new NMU completed
Lucaaccenture Jun 19, 2024
34a1962
add new scenarios for NM3 Pa Old
lorenzo1046 Jun 19, 2024
5395e69
add new scenario NM4 and add 2 new xml
Lucaaccenture Jun 20, 2024
cf99a36
Merge branch 'feature/POSTGRES_ORACLE_NEW' of https://github.com/pago…
Lucaaccenture Jun 20, 2024
dd4ef9b
upd scenario NM4
Lucaaccenture Jun 20, 2024
0739aa1
add new scenarios for NM3 Pa Old
lorenzo1046 Jun 20, 2024
3e79651
add new xml and new scenarios
Lucaaccenture Jun 20, 2024
9dc65f7
upd steps with RT step and add scenarios nm4 old and xml
Lucaaccenture Jun 21, 2024
825ae20
add scenarios retry token scaduto
Lucaaccenture Jun 21, 2024
3ea8d76
add new scenarios for nm3 paOld
lorenzo1046 Jun 21, 2024
331a50e
add 4 scenarios NM3 paNEW
Lucaaccenture Jun 24, 2024
6f4c8d5
add scenarios nm3 pa new
Lucaaccenture Jun 24, 2024
3175713
add new scenarios for nm3 paOld
lorenzo1046 Jun 24, 2024
b87fbbd
add 8 scenarios nme pa new attivazione fallita and add 2 xml
Lucaaccenture Jun 25, 2024
61cbcf1
add new scenarios for nm3 paOld
lorenzo1046 Jun 25, 2024
2f19c10
add 2 scenarios mod 4 completed and add files xml
Lucaaccenture Jun 26, 2024
0c11998
upd methods retrieve session
Lucaaccenture Jun 26, 2024
42c4679
upd 2 methods session retrieve
Lucaaccenture Jun 26, 2024
7b4d294
upd 3 retrieve session
Lucaaccenture Jun 26, 2024
2dbccad
prova test
Lucaaccenture Jun 26, 2024
cfe34eb
restore retrieve session token methods in steps
Lucaaccenture Jun 27, 2024
3527b49
add tag prova
Lucaaccenture Jun 27, 2024
790486c
add scenarios pa new NM3 standin
Lucaaccenture Jun 27, 2024
b74b67e
add scenario pa new NM3
Lucaaccenture Jun 27, 2024
4fe1e5b
add new scenarios for NM3 Pa Old
lorenzo1046 Jun 27, 2024
71225e6
add scenarios paNew NM3 broadcast
Lucaaccenture Jun 28, 2024
7db477c
add scenarios nm3 broadcast
Lucaaccenture Jul 3, 2024
02ef1f8
upd scenario broadcast nm3
Lucaaccenture Jul 3, 2024
3db35ba
fix step
lorenzo1046 Jul 3, 2024
7c1211e
fix step
lorenzo1046 Jul 4, 2024
c784172
add scenarios nm3 broadcast
Lucaaccenture Jul 4, 2024
2474b5b
connection blanked
Lucaaccenture Jul 9, 2024
d1647b4
upd utils delete azure
Lucaaccenture Jul 9, 2024
ab789a2
upd startintest and env
Lucaaccenture Jul 9, 2024
198b835
upd path files xml and json for remote run
Lucaaccenture Jul 10, 2024
b6359b4
add new scenarios for test INSERT
lorenzo1046 Jul 11, 2024
784214d
fix file insert
lorenzo1046 Jul 12, 2024
9e7f2c4
upd steps and add files xml and json
Lucaaccenture Jul 12, 2024
ad03972
fix standin scenarios
lorenzo1046 Jul 12, 2024
e2ee58a
Merge branch 'feature/POSTGRES_ORACLE_NEW' of https://github.com/pago…
lorenzo1046 Jul 12, 2024
9b00fe3
fix query automation oracle
lorenzo1046 Jul 12, 2024
4b6d52b
fix standin scenarios
lorenzo1046 Jul 12, 2024
15532c1
upd config postgres for cisco
Lucaaccenture Jul 16, 2024
7dc23ca
fix
lorenzo1046 Jul 17, 2024
e8977cb
add new tag PM
lorenzo1046 Jul 17, 2024
1ef5108
fix test Insert feature
lorenzo1046 Jul 17, 2024
54f0b22
Update pipeline-integration-test.yml
lorenzo1046 Jul 18, 2024
fdab1e3
tag prova
lorenzo1046 Jul 19, 2024
d115fbf
add variables config
Lucaaccenture Jul 22, 2024
f5f6d2f
fix
lorenzo1046 Jul 22, 2024
4e01d96
Merge branch 'feature/POSTGRES_ORACLE_NEW' of https://github.com/pago…
lorenzo1046 Jul 22, 2024
4e0e559
add wfesp insert file
Lucaaccenture Jul 22, 2024
0921c98
add new scenarios for insert task
lorenzo1046 Jul 22, 2024
63a26e0
fix
lorenzo1046 Jul 22, 2024
08e89fc
fix test INSERT_5
lorenzo1046 Jul 22, 2024
2304098
fix test lispay_opzione_2
lorenzo1046 Jul 23, 2024
ce44833
add scenarios retry a token scaduto NM3 pa Old
Lucaaccenture Jul 23, 2024
d7bcbd3
fix scenarios for run totale
lorenzo1046 Jul 23, 2024
e0ca585
fix steps RT generation
lorenzo1046 Jul 24, 2024
6854fce
upd RT xml
Lucaaccenture Jul 24, 2024
5135b59
add new scenarios for test insert and new body primitive closeV1 and …
lorenzo1046 Jul 24, 2024
6959c77
add scenario nm3 pa old
Lucaaccenture Jul 25, 2024
262295b
add new scenarios for test insert
lorenzo1046 Jul 25, 2024
5e80d67
add new scenarios for test insert and new method for calling parallel…
lorenzo1046 Jul 29, 2024
1900831
upd scenario nmu paold
Lucaaccenture Jul 29, 2024
bfcba4c
add new scenarios for test insert and create new body primitives and …
lorenzo1046 Jul 29, 2024
c7be765
fix file feature pagamento.ok MOD4 after a modify into the RT_generat…
lorenzo1046 Jul 29, 2024
7cc162a
fix proxies into the environment.py file
lorenzo1046 Jul 29, 2024
b896c47
fix environment
lorenzo1046 Jul 29, 2024
d355afc
add scenarios nm3 GEC
Lucaaccenture Jul 30, 2024
e2c56a4
upd scenarios nm3
Lucaaccenture Jul 30, 2024
8e0b17c
fix steps and utils for step insert DB
lorenzo1046 Jul 30, 2024
fb600d1
upd scenarios nm3 and add new scenarios GEC
Lucaaccenture Jul 31, 2024
d9f6280
upd scenarios nm3 and add new scenarios GEC
Lucaaccenture Jul 31, 2024
5067606
add alternative condition for check primitive response in parallel st…
lorenzo1046 Jul 31, 2024
6cad64f
upd scenarios nm3 and add new scenarios GEC
Lucaaccenture Jul 31, 2024
7e372c7
add new scenarios for test insert
lorenzo1046 Jul 31, 2024
84be8a9
upd scenarios nm3 and add new scenarios GEC
Lucaaccenture Jul 31, 2024
308b5e5
upd scenarios nm3 and add new scenarios GEC
Lucaaccenture Jul 31, 2024
7b401fd
add new scenarios GEC
Lucaaccenture Aug 1, 2024
a1604a9
add new scenarios GEC and upd other scenarios
Lucaaccenture Aug 1, 2024
09f3037
add new scenarios GEC
Lucaaccenture Aug 1, 2024
36ad04a
add new scenario for test INSERT
lorenzo1046 Aug 1, 2024
669a455
add new restore with stored procedure
lorenzo1046 Aug 2, 2024
de9f80e
Update nodo_online.feature
lorenzo1046 Aug 2, 2024
8615731
add scenario nm3 pa new GEC
Lucaaccenture Aug 5, 2024
851682d
add scenario nm3 pa new gec
Lucaaccenture Aug 5, 2024
b471bfc
add scenario nm3 pa new GEC
Lucaaccenture Aug 5, 2024
29e66d5
fix environment
lorenzo1046 Aug 5, 2024
41ef15d
upd scenario NM3 paold
Lucaaccenture Aug 6, 2024
489c33d
environment
lorenzo1046 Aug 6, 2024
f1991d3
fix test INSERT
lorenzo1046 Aug 6, 2024
07ace9e
upd scenario nme pa new and add proxy in the services
Lucaaccenture Aug 7, 2024
0fe112e
fix new step restore configurations with before and after all
lorenzo1046 Aug 7, 2024
5c20e9f
upd nm3 panew add checks 25 test
Lucaaccenture Aug 8, 2024
9308b30
fix nodo_online feature
lorenzo1046 Aug 8, 2024
40070dd
add scenarios GEC for NM3 paNew
Lucaaccenture Aug 8, 2024
3d8d6e2
Merge pull request #352 from pagopa/feature/provaProcedure_ORA_PG
lorenzo1046 Aug 8, 2024
07cea3c
add print environment
lorenzo1046 Aug 8, 2024
d995846
upd env steps and pa new nm3 after
Lucaaccenture Aug 8, 2024
49651e6
upd after
Lucaaccenture Aug 8, 2024
6906f49
upd env delete raise e
Lucaaccenture Aug 8, 2024
168bb85
add scenario gec standin paNew nm3
Lucaaccenture Aug 9, 2024
549974f
upd pagamenti ok nm3 pa new
Lucaaccenture Aug 9, 2024
90dd40d
delete secret folder
Lucaaccenture Aug 9, 2024
3127b6f
add scenarios pa new nm3 retry
Lucaaccenture Aug 12, 2024
34b4cb8
delete comment env
Lucaaccenture Aug 12, 2024
a6ad9ca
upd features nm3 and nmu
Lucaaccenture Aug 12, 2024
f92f750
upd steps with proxy for jobs and add scenarios for nm3 panew retry
Lucaaccenture Aug 13, 2024
137c3ab
upd pa new pagamento ok nm3
Lucaaccenture Aug 13, 2024
4ee00a6
add scenario retry nm3 pa new
Lucaaccenture Aug 14, 2024
8c21250
add scenarios retry panew nm3
Lucaaccenture Aug 14, 2024
e7903b5
upd send rest with local proxy
Lucaaccenture Aug 14, 2024
769d7b7
upd scenarios NMU
Lucaaccenture Aug 14, 2024
88e1e7d
upd scenarios nmu paold
Lucaaccenture Aug 16, 2024
b40cf37
upd scenarios
Lucaaccenture Aug 19, 2024
a8ca812
upd scenari NM3 add 5 sec and checks RE
Lucaaccenture Aug 20, 2024
72c13ca
upd nm3 scenarios
Lucaaccenture Aug 20, 2024
960c72d
new folder path new way testing
Lucaaccenture Aug 21, 2024
36b1720
add tag PRIMITIVE and ALL for primitive test and add tag FLOW and FLO…
Lucaaccenture Aug 21, 2024
f84f2b4
add tag payment method for primitve test
Lucaaccenture Aug 21, 2024
3ee6a10
upd steps sends soap and upd scenarios insert
Lucaaccenture Aug 21, 2024
ba5457e
upd steps and Insert scenarios
Lucaaccenture Aug 22, 2024
0656d86
new folder FLOWS and PRIMITIVES
Lucaaccenture Aug 23, 2024
cd4c945
upd env and scenarios with new folder and delete after in feature, up…
Lucaaccenture Aug 23, 2024
84b44f0
upd folders newwaytesting
Lucaaccenture Aug 23, 2024
9c6fc3f
upd scenario nmu
Lucaaccenture Aug 23, 2024
46db1ae
upd environment after scenario with refresh
Lucaaccenture Aug 23, 2024
268b755
upd nmu scenario
Lucaaccenture Aug 23, 2024
d16d862
upd nmu paold scenario
Lucaaccenture Aug 24, 2024
2739a4a
fix INSERT_22
lorenzo1046 Aug 26, 2024
a4adf9b
add new feature for PG 108
lorenzo1046 Aug 26, 2024
5f4a069
prova bug prd
lorenzo1046 Aug 27, 2024
246e4dd
fix
lorenzo1046 Aug 27, 2024
553972b
fix scenario IDMP_SPO_23
lorenzo1046 Sep 2, 2024
0db3707
add env config sit oracle
lorenzo1046 Sep 2, 2024
c79fd8f
fix
lorenzo1046 Sep 2, 2024
6846ba8
fix
lorenzo1046 Sep 2, 2024
afa83ff
fix subkey
lorenzo1046 Sep 2, 2024
20ce156
fix utils
lorenzo1046 Sep 2, 2024
921d61d
fix yaml
lorenzo1046 Sep 2, 2024
f07e03b
fix config sit oracle e yaml
lorenzo1046 Sep 2, 2024
c7c6d88
fix subkey yaml
lorenzo1046 Sep 2, 2024
051528d
fix yaml subkey
lorenzo1046 Sep 2, 2024
b10a9f1
add subkey for PG remote run
lorenzo1046 Sep 3, 2024
b42cc11
install python-dotenv
lorenzo1046 Sep 3, 2024
81c20db
add allure capture
lorenzo1046 Sep 3, 2024
c93c191
fix NM4 scenario NO PROFILO
lorenzo1046 Sep 4, 2024
7a521e5
fix scenarios for NO PROFILO paOld
lorenzo1046 Sep 4, 2024
208568d
change path for INSERT tests
lorenzo1046 Sep 6, 2024
a96d90d
upd env and steps with restore by functions both postgres and oracle
Lucaaccenture Sep 9, 2024
0334082
upd file path agent for remote oracle
Lucaaccenture Sep 9, 2024
c73f224
add print path root
Lucaaccenture Sep 9, 2024
9654ad8
fix current directory path
lorenzo1046 Sep 9, 2024
cb8dcba
fix file path
lorenzo1046 Sep 9, 2024
66f41b0
add new method for search path file in utils
lorenzo1046 Sep 9, 2024
44ab1c6
add substring_current_directory in file path
lorenzo1046 Sep 9, 2024
545a4e2
fix scenarios no profilo
lorenzo1046 Sep 9, 2024
8186f6b
fix steps
lorenzo1046 Sep 9, 2024
73b745e
test pag_110 completed and upd test nmu paold sessione scaduta
Lucaaccenture Sep 10, 2024
5c4b6e5
upd description test bug fix for pag-110
Lucaaccenture Sep 10, 2024
98a90a3
upd order by in scenarios
Lucaaccenture Sep 10, 2024
26a9d17
upd order by with inserted timestamp
Lucaaccenture Sep 11, 2024
827f8cc
delete wait 5 sec scenarios no opt and add method in utils for pollin…
Lucaaccenture Sep 11, 2024
a5a0e5a
fix test traduttore
lorenzo1046 Sep 11, 2024
3e3aaf3
upd method query with polling
Lucaaccenture Sep 11, 2024
0969609
Merge branch 'feature/POSTGRES_ORACLE_NEW_MERGED' of https://github.c…
Lucaaccenture Sep 11, 2024
318cd31
upd method query with polling
Lucaaccenture Sep 11, 2024
4ceb3a6
upd steps and utils for new method query with polling
Lucaaccenture Sep 11, 2024
7730ff1
upd nmu paold scenarios sessione scaduta
Lucaaccenture Sep 11, 2024
fd6712a
upd steps for method verify number record with query with polling
Lucaaccenture Sep 11, 2024
99cea0f
upd metheod verify num record for num 0
Lucaaccenture Sep 11, 2024
c06befb
upd scenario
Lucaaccenture Sep 12, 2024
1e135cc
upd steps subkey
Lucaaccenture Sep 12, 2024
b42cb3c
fix env
lorenzo1046 Sep 12, 2024
e738601
upd scenarios and upd method query with polling
Lucaaccenture Sep 13, 2024
2ba092c
Merge branch 'feature/POSTGRES_ORACLE_NEW_MERGED' of https://github.c…
Lucaaccenture Sep 13, 2024
c1fadf6
upd method query with polling
Lucaaccenture Sep 13, 2024
946c65d
upd sleep to 0.5 and add method in utils query cache
Lucaaccenture Sep 13, 2024
7c57613
upd scenarios and upd methos in steps and utils new record refresh an…
Lucaaccenture Sep 14, 2024
c97944f
upd refresh in env, utils and steps with query on table cache
Lucaaccenture Sep 15, 2024
36f073a
upd env, steps and utils and upd scenarios with new method waiting af…
Lucaaccenture Sep 16, 2024
6852dbe
upd steps print file json instead file path
Lucaaccenture Sep 16, 2024
36039fd
upd steps for none field postgres and oracle and upd db operation for…
Lucaaccenture Sep 17, 2024
4943287
upd utils method query new record cache query cache
Lucaaccenture Sep 17, 2024
3a6e624
upd query new record cache in utils
Lucaaccenture Sep 17, 2024
d8c5e1f
upd utils method query new record cache
Lucaaccenture Sep 17, 2024
2d12a88
add limit 1 query oracle in utils method query new record cache
Lucaaccenture Sep 17, 2024
37b684c
upd in db operation case sensitive add lower
Lucaaccenture Sep 17, 2024
496d308
upd print timeout new record refresh in utils
Lucaaccenture Sep 17, 2024
a4d7b60
upd checks the value for none
Lucaaccenture Sep 18, 2024
1f104d1
add test bug fix 112, add xsd folder and add method in steps to valid…
Lucaaccenture Sep 19, 2024
4845c99
upd method in steps for validating xml response
Lucaaccenture Sep 19, 2024
bd23c80
add dependecies lxml and dotenv
Lucaaccenture Sep 20, 2024
44fd024
delete sudo commands for lxml and dotenv
Lucaaccenture Sep 20, 2024
63ec3d1
add sudo commands for lxml dotenv in file yml
Lucaaccenture Sep 20, 2024
acf3ced
upd steps and db operation for executequery
Lucaaccenture Sep 23, 2024
c364bf2
upd execute query with context
Lucaaccenture Sep 25, 2024
a520a69
add context in query new record cache in env
Lucaaccenture Sep 25, 2024
3f4d4fc
update feature file
marcoa67 Sep 25, 2024
f73f5c3
upd query for postgres in method query new record cache in utils
Lucaaccenture Sep 26, 2024
361ee87
add skip print query for configuration in db operation
Lucaaccenture Sep 26, 2024
ea5586a
fix
lorenzo1046 Oct 9, 2024
603427f
fix
lorenzo1046 Oct 9, 2024
8c940bb
fix
lorenzo1046 Oct 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
48 changes: 36 additions & 12 deletions .azuredevops/pipeline-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ parameters:
values:
- dev
- sit
default: dev
default: sit

- name: folder
displayName: Integration test folder
Expand All @@ -22,14 +22,19 @@ parameters:
default: runnable,test
displayName: Integration test tags


variables:
archiveName: nodo-dei-pagamenti-NRT.zip
destinationFolderExtractArtifact: nodo/extracted
deploy-pool: nodopagamenti-agent-pool-sit
${{ if eq(parameters['env'], 'dev') }}:
NODO_URL: "https://api.dev.platform.pagopa.it/nodo-dev"
NODO_URL: "https://api.dev.platform.pagopa.it/nodo-dev"
file_config: $(Build.SourcesDirectory)/src/integ-test/bdd-test/resources/config_dev.json
file_behave: src/integ-test/bdd-test/resources/config_dev.json
${{ if eq(parameters['env'], 'sit') }}:
NODO_URL: "https://api.dev.platform.pagopa.it/nodo"
file_config: $(Build.SourcesDirectory)/src/integ-test/bdd-test/resources/config_sit_oracle.json
file_behave: src/integ-test/bdd-test/resources/config_sit_oracle.json

stages:
- stage: prepare_env
Expand Down Expand Up @@ -73,7 +78,8 @@ stages:
contents=$(jq "$key = \"$value\"" $file) && echo "${contents}" > $file
}

file=$(Build.SourcesDirectory)/src/integ-test/bdd-test/resources/config.json
file=$(file_config)
echo ">>>>>>>>>>>>> name is $file"

# replace $file ".services.\"nodo-dei-pagamenti\".url" "https://10.230.8.5:443/nodo-pagamenti/api/v1"
# replace $file ".services.\"nodo-dei-pagamenti\".healthcheck" "/monitor/health"
Expand All @@ -82,35 +88,46 @@ stages:
# replace $file ".services.\"nodo-dei-pagamenti\".refresh_config_service" "/config/refresh/ALL"

replace $file ".services.\"nodo-dei-pagamenti\".url" "$(NODO_URL)"
replace $file ".services.\"nodo-dei-pagamenti\".healthcheck" "/monitoring/v1/monitor/health"
replace $file ".services.\"nodo-dei-pagamenti\".soap_service" " "
replace $file ".services.\"nodo-dei-pagamenti\".rest_service" " "
replace $file ".services.\"nodo-dei-pagamenti\".refresh_config_service" "/monitoring/v1/config/refresh/ALL"
replace $file ".services.\"nodo-dei-pagamenti\".healthcheck" "-monitoring/monitoring/v1/monitor/health"
replace $file ".services.\"nodo-dei-pagamenti\".soap_service" ""
replace $file ".services.\"nodo-dei-pagamenti\".rest_service" ""
replace $file ".services.\"nodo-dei-pagamenti\".refresh_config_service" "https://api.dev.platform.pagopa.it/nodo-monitoring/monitoring/v1/config/refresh/ALL"
replace $file ".services.\"nodo-dei-pagamenti\".subscription_key_name" "N"

replace $file ".services.\"mock-ec\".url" "https://api.dev.platform.pagopa.it/mock-ec/api/v1"
replace $file ".services.\"mock-ec\".healthcheck" "/info"
replace $file ".services.\"mock-ec\".soap_service" ""
replace $file ".services.\"mock-ec\".rest_service" ""
replace $file ".services.\"mock-ec\".subscription_key_name" "Y"

replace $file ".services.\"secondary-mock-ec\".url" "https://api.dev.platform.pagopa.it/secondary-mock-ec/api/v1"
replace $file ".services.\"secondary-mock-ec\".healthcheck" "/info"
replace $file ".services.\"secondary-mock-ec\".soap_service" ""
replace $file ".services.\"secondary-mock-ec\".rest_service" ""
replace $file ".services.\"secondary-mock-ec\".subscription_key_name" "Y"

replace $file ".services.\"mock-psp\".url" "https://api.dev.platform.pagopa.it/mock-psp-service/api/v1"
replace $file ".services.\"mock-psp\".healthcheck" "/info"
replace $file ".services.\"mock-psp\".soap_service" ""
replace $file ".services.\"mock-psp\".rest_service" ""
replace $file ".services.\"mock-psp\".subscription_key_name" "Y"

replace $file ".services.\"secondary-mock-psp\".url" "https://api.dev.platform.pagopa.it/secondary-mock-psp-service/api/v1"
replace $file ".services.\"secondary-mock-psp\".healthcheck" "/info"
replace $file ".services.\"secondary-mock-psp\".soap_service" ""
replace $file ".services.\"secondary-mock-psp\".rest_service" ""
replace $file ".services.\"secondary-mock-psp\".subscription_key_name" "Y"

replace $file ".services.\"apicfg-testing-support\".url" "https://api.dev.platform.pagopa.it/apiconfig/testing-support/p/v1"
replace $file ".services.\"apicfg-testing-support\".healthcheck" "/info"
replace $file ".services.\"apicfg-testing-support\".soap_service" ""
replace $file ".services.\"apicfg-testing-support\".rest_service" ""
replace $file ".services.\"apicfg-testing-support\".subscription_key_name" "Y"

replace $file ".services.\"mock-pm\".url" "https://api.dev.platform.pagopa.it/mock-pm-sit/api/v1"
replace $file ".services.\"mock-pm\".healthcheck" "/info"
replace $file ".services.\"mock-pm\".soap_service" ""
replace $file ".services.\"mock-pm\".rest_service" ""
# replace $file ".services.\"mock-pm\".url" "https://api.dev.platform.pagopa.it/mock-pm-sit/api/v1"
# replace $file ".services.\"mock-pm\".healthcheck" "/info"
# replace $file ".services.\"mock-pm\".soap_service" ""
# replace $file ".services.\"mock-pm\".rest_service" ""


replace $file ".db_configuration.nodo_cfg.host" $(db-cfg-host-${{ parameters.env }})
Expand Down Expand Up @@ -143,6 +160,8 @@ stages:
replace $file ".db_configuration.wfesp.password" $(db-wfesp-password-${{ parameters.env }})
replace $file ".db_configuration.wfesp.port" $(db-wfesp-port-${{ parameters.env }})

replace $file ".env.SUBKEY" $(apim-subscription-key-${{ parameters.env }})

jq . $file
displayName: "Configure Global Properties"

Expand Down Expand Up @@ -208,13 +227,18 @@ stages:
echo 'Install Behave'
sudo pip3 install behave
sudo pip3 install -U -r $(Pipeline.Workspace)/$(destinationFolderExtractArtifact)/requirements.txt #Install Requirements
sudo pip3 install cx-Oracle
sudo pip3 install xmltodict
sudo pip3 install python-dotenv
echo python version
python3 -V
whereis behave
which behave
export PATH=/usr/local/bin/behave:/usr/bin:/usr/local/bin:$PATH #Add environment variables

behave --junit-directory=$(Pipeline.Workspace)/$(destinationFolderExtractArtifact)/report --junit $(Pipeline.Workspace)/$(destinationFolderExtractArtifact)/${{ parameters.folder }} --tags=${{ parameters.tags }}
fileBehave=$(Pipeline.Workspace)/$(destinationFolderExtractArtifact)/$(file_behave)

behave --junit-directory=$(Pipeline.Workspace)/$(destinationFolderExtractArtifact)/report --junit $(Pipeline.Workspace)/$(destinationFolderExtractArtifact)/${{ parameters.folder }} --tags=${{ parameters.tags }} -D conffile=$fileBehave

displayName: "Run integration test"

Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,6 @@ report-nodo
report/*
reports
/src/perf-test/k6/scenarios/*/test/output
src/integ-test/bdd-test/features/steps/jupyter_notebook.ipynb
get-pip.py
src/integ-test/bdd-test/features/steps/jupyter_notebook.ipynb
44 changes: 44 additions & 0 deletions .jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
pipeline {
agent { label 'NodoPagoPA' }
environment {
DOCKER_REGISTRY = "https://toolbox.sia.eu/docker_nodo_pagopa"
}
stages {

stage('Checkout Repo Test') {
steps {
withCredentials([gitUsernamePassword(credentialsId: 'openshift-server-sia', gitToolName: 'git-tool')]) {
sh 'git config --global http.sslVerify "false" '
sh 'git config --global http.postBuffer 1048576000'
sh 'git config --global http.proxy http://csproxy:8080'
sh 'git config --global https.proxy http://csproxy:8080'
sh 'git config --global -l'
sh 'git clone -b $BRANCH https://github.com/pagopa/pagopa-nodo-dei-pagamenti-test.git .'
}
}
}

stage('Build Integration Test image') {
steps {
script {
tag = "toolbox.sia.eu/docker_nodo_pagopa/integration-test:latest"

docker.withRegistry("${env.DOCKER_REGISTRY}", 'accenture_user' ) {
dockerImage = docker.build("${tag}", '--build-arg="tags=$TAGS" --build-arg="folder=$FOLDER" .')
}
}
}
}

stage('Push Integration Test image') {
steps{
script {
docker.withRegistry("${env.DOCKER_REGISTRY}", 'accenture_user' ) {
dockerImage.push()
}
sh("docker rmi ${tag}")
}
}
}
}
}
65 changes: 65 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
FROM toolbox.sia.eu/docker-pagopa/integration-test-base-image:1.0.0

ENV http_proxy=http://csproxy:8080
ENV https_proxy=http://csproxy:8080
ENV no_proxy=toolbox.sia.eu


#FROM python:3.9
#
##install jq and openjdk-17
#RUN apt-get update && \
# apt-get install -y jq && \
# apt-get install openjdk-17-jdk -y && \
# apt-get install libpq-dev python3-dev build-essential wget unzip -y
##install allure
#RUN wget https://github.com/allure-framework/allure2/releases/download/2.24.1/allure-2.24.1.zip && \
# unzip allure-2.24.1.zip && \
# rm allure-2.24.1.zip

#copy test script
ADD src/integ-test test/src/integ-test
ADD startIntTest.sh test/startIntTest.sh
ADD stopIntTest.sh test/stopIntTest.sh
ADD requirements.txt test/requirements.txt
ADD manualtrigger.py test/manualtrigger.py
ADD entrypoint.sh test/entrypoint.sh

#install requirements
RUN pip3 install -U -r test/requirements.txt

#install python-dotenv
RUN pip3 install python-dotenv

#install ps
RUN apt-get update && \
apt-get install -y procps

#setting env varialbes
ARG ARG_TAGS
ARG ARG_FOLDER
ENV tags=$ARG_TAGS
ENV folder=$ARG_FOLDER
ENV file_config=src/integ-test/bdd-test/resources/config_sit.json
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
ENV PATH=$PATH:$JAVA_HOME/bin:/allure-2.24.1/bin/

#set working directory
WORKDIR /test

RUN chmod +x startIntTest.sh
RUN chmod +x stopIntTest.sh
RUN chmod +x entrypoint.sh
RUN chmod -R 777 src/integ-test
RUN mkdir /test/allure
RUN chmod 777 /test/allure
RUN mkdir /test/allure/allure-result
RUN chmod 777 /test/allure/allure-result

RUN echo $tags
RUN echo $folder

ENV http_proxy=http://10.79.20.33:80
ENV https_proxy=http://10.79.20.33:80

ENTRYPOINT ["./entrypoint.sh"]
50 changes: 50 additions & 0 deletions DockerfilePRF
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
FROM toolbox.sia.eu/docker-pagopa/performance-test-base-image:1.0.0

ENV http_proxy=http://csproxy:8080
ENV https_proxy=http://csproxy:8080
ENV no_proxy=toolbox.sia.eu

#FROM alpine:latest
#
##Add bash
#RUN apk add --no-cache bash
##INSTALL k6
#RUN wget https://github.com/grafana/k6/releases/download/v0.47.0/k6-v0.47.0-linux-amd64.tar.gz
#RUN tar xzf k6-v0.47.0-linux-amd64.tar.gz
#RUN mv k6-v0.47.0-linux-amd64/k6 /usr/local/bin
#RUN rm -rf k6-v0.47.0-linux-amd64*
#RUN apk add python3
#RUN apk add py3-pip

#add arguments
ARG debugEnabled
ARG rampa
ARG blacklist
ENV debugEn=$debugEnabled
ENV ram=$rampa
ENV bl=$blacklist

# add k6 script and other sh
ADD entrypointPRF.sh test/entrypointPRF.sh
ADD startPerfTest.sh test/startPerfTest.sh
ADD manualtriggerPRF.py test/manualtriggerPRF.py
ADD src/perf-test test/src/perf-test
ADD requirementsPRF.txt test/requirementsPRF.txt
ADD stopPerfTest.sh test/stopPerfTest.sh

RUN pip3 install -U -r test/requirementsPRF.txt

#set working directory
WORKDIR /test

RUN chmod +x entrypointPRF.sh
RUN chmod +x startPerfTest.sh
RUN chmod +x stopPerfTest.sh
RUN chmod -R 777 src/perf-test

ENV http_proxy=http://10.79.20.33:80
ENV https_proxy=http://10.79.20.33:80
ENV K6_INFLUXDB_HTTP_PROXY=http://10.79.20.33:80
ENTRYPOINT ["./entrypointPRF.sh"]

#CMD ["/bin/sh"]
3 changes: 3 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
./startIntTest.sh false & \
python manualtrigger.py
3 changes: 3 additions & 0 deletions entrypointPRF.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
#./startPerfTest.sh $debugEn $ram $bl
python manualtriggerPRF.py
24 changes: 24 additions & 0 deletions helm-prf-test/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: v2
name: nodo_dei_pagamenti
description: A Helm chart for Kubernetes

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.0.0"
58 changes: 58 additions & 0 deletions helm-prf-test/templates/deployments/prf-test-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{{- if .Values.deployments.performance_test }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Values.deployments.performance_test.name }}
namespace: {{ .Values.namespace_performance_tests }}
# annotations:
# helm.sh/hook: post-install,post-upgrade
# helm.sh/hook-delete-policy: before-hook-creation
spec:
replicas: {{ .Values.deployments.performance_test.replicas }}
selector:
matchLabels:
app: {{ .Values.deployments.performance_test.name }}
strategy:
type: Recreate
template:
metadata:
labels:
app: {{ .Values.deployments.performance_test.name }}
annotations:
rollme: {{ randAlphaNum 10 | quote }}
spec:
containers:
- name: {{ .Values.deployments.performance_test.name }}
image: {{ .Values.deployments.performance_test.registry_url }}/{{ .Values.deployments.performance_test.image_name }}:{{ .Values.deployments.performance_test.image_version }}
imagePullPolicy: {{ .Values.deployments.performance_test.imagePullPolicy }}
env:
{{- tpl (.Values.deployments.performance_test.environment | toYaml) . | nindent 10 }}
ports:
{{- toYaml .Values.deployments.performance_test.ports | nindent 10 }}
resources:
{{- toYaml .Values.deployments.performance_test.resources | nindent 12 }}
{{- if .Values.deployments.performance_test.volumeMounts }}
volumeMounts:
{{- tpl (.Values.deployments.performance_test.volumeMounts | toYaml) . | nindent 10 }}
{{- end }}
{{- if .Values.deployments.performance_test.image_pull_secret }}
imagePullSecrets:
{{- toYaml .Values.deployments.performance_test.image_pull_secret | nindent 6 }}
{{- end }}
{{- if .Values.deployments.performance_test.hostAliases }}
hostAliases:
{{- toYaml .Values.deployments.performance_test.hostAliases | nindent 6 }}
{{- end }}
{{- if .Values.deployments.performance_test.nodeSelector }}
nodeSelector:
{{- toYaml .Values.deployments.performance_test.nodeSelector | nindent 8 }}
{{- end }}
{{- if .Values.deployments.performance_test.tolerations }}
tolerations:
{{- toYaml .Values.deployments.performance_test.tolerations | nindent 8 }}
{{- end }}
{{- if .Values.deployments.performance_test.volumes }}
volumes:
{{- tpl (.Values.deployments.performance_test.volumes | toYaml) . | nindent 8 }}
{{- end }}
{{- end }}
Loading
Loading