You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/institution-ms/app/src/test/java/it/pagopa/selfcare/mscore/integration_test/steps/DelegationSteps.java
Copy file name to clipboardExpand all lines: apps/institution-ms/app/src/test/java/it/pagopa/selfcare/mscore/integration_test/steps/InstitutionSteps.java
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,6 @@ public void createMockInstitutionWithId(String id) {
Scenario: Not found while creating institution from pda
@@ -948,7 +938,6 @@ Feature: Institution
948
938
| istatCode | 06068501219 |
949
939
| origin | ADE |
950
940
| originId | 0987654321 |
951
-
| institutionType | PG |
952
941
| description | TestPGInstitution |
953
942
And The response body contains field "id"
954
943
@@ -971,7 +960,6 @@ Feature: Institution
971
960
| istatCode | 06068501219 |
972
961
| origin | INFOCAMERE |
973
962
| originId | 01501320442 |
974
-
| institutionType | PG |
975
963
| zipCode | 00121 |
976
964
| description | test0 |
977
965
And The response body contains field "id"
@@ -1013,7 +1001,6 @@ Feature: Institution
1013
1001
Then The status code is 201
1014
1002
And The response body contains:
1015
1003
| externalId | 00310810825 |
1016
-
| institutionType | PA |
1017
1004
| origin | IPA |
1018
1005
| taxCode | 00310810825 |
1019
1006
@@ -1256,7 +1243,10 @@ Feature: Institution
1256
1243
"tokenId": "123456789",
1257
1244
"contractPath": "testContractPath",
1258
1245
"activatedAt": "2025-02-28T15:00:00Z",
1259
-
"isAggregator": false
1246
+
"isAggregator": false,
1247
+
"institutionType": "PA",
1248
+
"origin": "MOCK",
1249
+
"originId": "x1"
1260
1250
}
1261
1251
"""
1262
1252
When I send a POST request to "/institutions/{id}/onboarding"
@@ -1280,12 +1270,12 @@ Feature: Institution
1280
1270
And The following request body:
1281
1271
"""
1282
1272
{
1283
-
"productId": "prod-pn",
1273
+
"productId": "prod-io",
1284
1274
"tokenId": "123456789",
1285
1275
"contractPath": "testContractPath",
1286
1276
"activatedAt": "2025-02-28T15:00:00Z",
1287
1277
"isAggregator": false,
1288
-
"institutionType": "PT",
1278
+
"institutionType": "PA",
1289
1279
"origin": "SELC",
1290
1280
"originId": "xxx"
1291
1281
}
@@ -1303,7 +1293,7 @@ Feature: Institution
1303
1293
| prod-pagopa | ACTIVE |
1304
1294
| prod-idpay | DELETED |
1305
1295
| prod-pn | SUSPENDED |
1306
-
And Onboarding for institutionId "123" and productId "prod-pn" was saved to db successfully with token "MOCK_TOKEN" contract "MOCK_CONTRACT", a module of 10, institutionType "PA", origin "MOCK" and originId "123x"
1296
+
And Onboarding for institutionId "123" and productId "prod-io" was saved to db successfully with token "MOCK_TOKEN" contract "MOCK_CONTRACT", a module of 10, institutionType "PA", origin "MOCK" and originId "123x"
1307
1297
1308
1298
Scenario: Do not persist PecNotification with PT institution type
1309
1299
Given User login with username "j.doe" and password "test"
@@ -1312,7 +1302,8 @@ Feature: Institution
1312
1302
And The following request body:
1313
1303
"""
1314
1304
{
1315
-
"productId": "prod-io"
1305
+
"productId": "prod-io",
1306
+
"institutionType": "PT"
1316
1307
}
1317
1308
"""
1318
1309
When I send a POST request to "/institutions/{id}/onboarding"
@@ -1325,6 +1316,30 @@ Feature: Institution
1325
1316
And The response body contains field "id"
1326
1317
And Count of MailNotification with institutionId "067327d3-bdd6-408d-8655-87e8f1960046" is 0
1327
1318
1319
+
@RemoveMockInstitutionAfterScenario
1320
+
Scenario: Attempt to persistOnboarding with existing productId but different institutionType
1321
+
Given User login with username "j.doe" and password "test"
1322
+
And A mock institution with id "123"
1323
+
And The following path params:
1324
+
| id | 123 |
1325
+
And The following request body:
1326
+
"""
1327
+
{
1328
+
"productId": "prod-pn",
1329
+
"tokenId": "123456789",
1330
+
"contractPath": "testContractPath",
1331
+
"activatedAt": "2025-02-28T15:00:00Z",
1332
+
"isAggregator": false,
1333
+
"institutionType": "PT",
1334
+
"origin": "SELC",
1335
+
"originId": "xxx"
1336
+
}
1337
+
"""
1338
+
When I send a POST request to "/institutions/{id}/onboarding"
0 commit comments