@@ -1486,6 +1486,27 @@ describe('CLI', () => {
1486
1486
await assertServiceHealthy ( apiUrl , services . txSubmit , lastBlock , { withTip : false } ) ;
1487
1487
} ) ;
1488
1488
1489
+ it ( 'exposes a HTTP server with /tx-submit/health endpoint when SUBMIT_VALIDATE_HANDLES is true' , async ( ) => {
1490
+ proc = withLogging (
1491
+ fork ( exePath , [ 'start-provider-server' ] , {
1492
+ env : {
1493
+ API_URL : apiUrl ,
1494
+ CARDANO_NODE_CONFIG_PATH : cardanoNodeConfigPath ,
1495
+ DB_CACHE_TTL : dbCacheTtl ,
1496
+ HANDLE_POLICY_IDS ,
1497
+ LOGGER_MIN_SEVERITY : 'error' ,
1498
+ OGMIOS_URL : ogmiosConnection . address . webSocket ,
1499
+ POSTGRES_CONNECTION_STRING_HANDLE : postgresConnectionStringHandle ,
1500
+ SERVICE_NAMES : `${ ServiceNames . TxSubmit } ` ,
1501
+ SUBMIT_VALIDATE_HANDLES : 'true'
1502
+ } ,
1503
+ stdio : 'pipe'
1504
+ } )
1505
+ ) ;
1506
+
1507
+ await assertServiceHealthy ( apiUrl , services . txSubmit , lastBlock , { withTip : false } ) ;
1508
+ } ) ;
1509
+
1489
1510
it ( 'tx-submit uses the default Ogmios configuration if not specified when using env variables' , async ( ) => {
1490
1511
proc = withLogging (
1491
1512
fork ( exePath , [ 'start-provider-server' ] , {
@@ -1494,7 +1515,6 @@ describe('CLI', () => {
1494
1515
HANDLE_POLICY_IDS ,
1495
1516
HANDLE_PROVIDER_SERVER_URL ,
1496
1517
LOGGER_MIN_SEVERITY : 'error' ,
1497
- POSTGRES_CONNECTION_STRING_HANDLE : postgresConnectionStringHandle ,
1498
1518
SERVICE_NAMES : ServiceNames . TxSubmit
1499
1519
} ,
1500
1520
stdio : 'pipe'
0 commit comments