1+ // Note: All tests in this file are skipped because the DB HAFAS endpoint
2+ // has been permanently shut down.
3+ // See https://github.com/public-transport/hafas-client/issues/331
4+
15import tap from 'tap' ;
26import isRoughlyEqual from 'is-roughly-equal' ;
37import maxBy from 'lodash/maxBy.js' ;
@@ -109,7 +113,7 @@ const potsdamHbf = '8012666';
109113const berlinSüdkreuz = '8011113' ;
110114const kölnHbf = '8000207' ;
111115
112- tap . test ( 'journeys – Berlin Schwedter Str. to München Hbf' , async ( t ) => {
116+ tap . skip ( 'journeys – Berlin Schwedter Str. to München Hbf' , async ( t ) => {
113117 const res = await client . journeys ( blnSchwedterStr , münchenHbf , {
114118 results : 4 ,
115119 departure : when ,
@@ -165,7 +169,7 @@ tap.skip('refreshJourney – valid tickets', async (t) => {
165169
166170// todo: journeys, only one product
167171
168- tap . test ( 'journeys – fails with no product' , async ( t ) => {
172+ tap . skip ( 'journeys – fails with no product' , async ( t ) => {
169173 await journeysFailsWithNoProduct ( {
170174 test : t ,
171175 fetchJourneys : client . journeys ,
@@ -177,7 +181,7 @@ tap.test('journeys – fails with no product', async (t) => {
177181 t . end ( ) ;
178182} ) ;
179183
180- tap . test ( 'Berlin Schwedter Str. to Torfstraße 17' , async ( t ) => {
184+ tap . skip ( 'Berlin Schwedter Str. to Torfstraße 17' , async ( t ) => {
181185 const torfstr = {
182186 type : 'location' ,
183187 address : 'Torfstraße 17' ,
@@ -199,7 +203,7 @@ tap.test('Berlin Schwedter Str. to Torfstraße 17', async (t) => {
199203 t . end ( ) ;
200204} ) ;
201205
202- tap . test ( 'Berlin Schwedter Str. to ATZE Musiktheater' , async ( t ) => {
206+ tap . skip ( 'Berlin Schwedter Str. to ATZE Musiktheater' , async ( t ) => {
203207 const atze = {
204208 type : 'location' ,
205209 id : '991598902' ,
@@ -223,7 +227,7 @@ tap.test('Berlin Schwedter Str. to ATZE Musiktheater', async (t) => {
223227 t . end ( ) ;
224228} ) ;
225229
226- tap . test ( 'journeys: via works – with detour' , async ( t ) => {
230+ tap . skip ( 'journeys: via works – with detour' , async ( t ) => {
227231 // Going from Westhafen to Wedding via Württembergalle without detour
228232 // is currently impossible. We check if the routing engine computes a detour.
229233 const res = await client . journeys ( westhafen , wedding , {
@@ -245,7 +249,7 @@ tap.test('journeys: via works – with detour', async (t) => {
245249// todo: walkingSpeed "Berlin - Charlottenburg, Hallerstraße" -> jungfernheide
246250// todo: without detour
247251
248- tap . test ( 'journeys – all routing modes work' , async ( t ) => {
252+ tap . skip ( 'journeys – all routing modes work' , async ( t ) => {
249253 for ( const mode in routingModes ) {
250254 await client . journeys ( berlinHbf , münchenHbf , {
251255 results : 1 ,
@@ -272,7 +276,7 @@ tap.skip('earlier/later journeys, Jungfernheide -> München Hbf', async (t) => {
272276} ) ;
273277
274278if ( ! process . env . VCR_MODE ) {
275- tap . test ( 'journeys – leg cycle & alternatives' , async ( t ) => {
279+ tap . skip ( 'journeys – leg cycle & alternatives' , async ( t ) => {
276280 await testLegCycleAlternatives ( {
277281 test : t ,
278282 fetchJourneys : client . journeys ,
@@ -284,7 +288,7 @@ if (!process.env.VCR_MODE) {
284288 } ) ;
285289}
286290
287- tap . test ( 'refreshJourney' , async ( t ) => {
291+ tap . skip ( 'refreshJourney' , async ( t ) => {
288292 const T_MOCK = 1710831600 * 1000 ; // 2024-03-19T08:00:00+01:00
289293 const when = createWhen ( dbProfile . timezone , dbProfile . locale , T_MOCK ) ;
290294 const validate = createValidate ( { ...cfg , when} ) ;
@@ -390,7 +394,7 @@ tap.skip('journeysFromTrip – U Mehringdamm to U Naturkundemuseum, reroute to S
390394 }
391395} ) ;
392396
393- tap . test ( 'trip details' , async ( t ) => {
397+ tap . skip ( 'trip details' , async ( t ) => {
394398 const res = await client . journeys ( berlinHbf , münchenHbf , {
395399 results : 1 , departure : when ,
396400 } ) ;
@@ -418,7 +422,7 @@ tap.test('trip details', async (t) => {
418422 t . end ( ) ;
419423} ) ;
420424
421- tap . test ( 'departures at Berlin Schwedter Str.' , async ( t ) => {
425+ tap . skip ( 'departures at Berlin Schwedter Str.' , async ( t ) => {
422426 const res = await client . departures ( blnSchwedterStr , {
423427 duration : 5 , when,
424428 } ) ;
@@ -432,7 +436,7 @@ tap.test('departures at Berlin Schwedter Str.', async (t) => {
432436 t . end ( ) ;
433437} ) ;
434438
435- tap . test ( 'departures with station object' , async ( t ) => {
439+ tap . skip ( 'departures with station object' , async ( t ) => {
436440 const res = await client . departures ( {
437441 type : 'station' ,
438442 id : jungfernheide ,
@@ -448,7 +452,7 @@ tap.test('departures with station object', async (t) => {
448452 t . end ( ) ;
449453} ) ;
450454
451- tap . test ( 'departures at Berlin Hbf in direction of Berlin Ostbahnhof' , async ( t ) => {
455+ tap . skip ( 'departures at Berlin Hbf in direction of Berlin Ostbahnhof' , async ( t ) => {
452456 await testDeparturesInDirection ( {
453457 test : t ,
454458 fetchDepartures : client . departures ,
@@ -461,7 +465,7 @@ tap.test('departures at Berlin Hbf in direction of Berlin Ostbahnhof', async (t)
461465 t . end ( ) ;
462466} ) ;
463467
464- tap . test ( 'arrivals at Berlin Schwedter Str.' , async ( t ) => {
468+ tap . skip ( 'arrivals at Berlin Schwedter Str.' , async ( t ) => {
465469 const res = await client . arrivals ( blnSchwedterStr , {
466470 duration : 5 , when,
467471 } ) ;
@@ -475,7 +479,7 @@ tap.test('arrivals at Berlin Schwedter Str.', async (t) => {
475479 t . end ( ) ;
476480} ) ;
477481
478- tap . test ( 'nearby Berlin Jungfernheide' , async ( t ) => {
482+ tap . skip ( 'nearby Berlin Jungfernheide' , async ( t ) => {
479483 const nearby = await client . nearby ( {
480484 type : 'location' ,
481485 latitude : 52.530273 ,
@@ -499,7 +503,7 @@ tap.test('nearby Berlin Jungfernheide', async (t) => {
499503 t . end ( ) ;
500504} ) ;
501505
502- tap . test ( 'locations named Jungfernheide' , async ( t ) => {
506+ tap . skip ( 'locations named Jungfernheide' , async ( t ) => {
503507 const locations = await client . locations ( 'Jungfernheide' , {
504508 results : 10 ,
505509 } ) ;
@@ -513,7 +517,7 @@ tap.test('locations named Jungfernheide', async (t) => {
513517 t . end ( ) ;
514518} ) ;
515519
516- tap . test ( 'stop' , async ( t ) => {
520+ tap . skip ( 'stop' , async ( t ) => {
517521 const s = await client . stop ( regensburgHbf ) ;
518522
519523 validate ( t , s , [ 'stop' , 'station' ] , 'stop' ) ;
@@ -522,7 +526,7 @@ tap.test('stop', async (t) => {
522526 t . end ( ) ;
523527} ) ;
524528
525- tap . test ( 'line with additionalName' , async ( t ) => {
529+ tap . skip ( 'line with additionalName' , async ( t ) => {
526530 const { departures} = await client . departures ( potsdamHbf , {
527531 when,
528532 duration : 12 * 60 , // 12 minutes
@@ -532,7 +536,7 @@ tap.test('line with additionalName', async (t) => {
532536 t . end ( ) ;
533537} ) ;
534538
535- tap . test ( 'radar' , async ( t ) => {
539+ tap . skip ( 'radar' , async ( t ) => {
536540 const res = await client . radar ( {
537541 north : 52.52411 ,
538542 west : 13.41002 ,
@@ -546,7 +550,7 @@ tap.test('radar', async (t) => {
546550 t . end ( ) ;
547551} ) ;
548552
549- tap . test ( 'radar works across the antimeridian' , async ( t ) => {
553+ tap . skip ( 'radar works across the antimeridian' , async ( t ) => {
550554 await client . radar ( {
551555 north : - 8 ,
552556 west : 179 ,
@@ -559,7 +563,7 @@ tap.test('radar works across the antimeridian', async (t) => {
559563 t . end ( ) ;
560564} ) ;
561565
562- tap . test ( 'reachableFrom' , { timeout : 20 * 1000 } , async ( t ) => {
566+ tap . skip ( 'reachableFrom' , { timeout : 20 * 1000 } , async ( t ) => {
563567 const torfstr17 = {
564568 type : 'location' ,
565569 address : 'Torfstraße 17' ,
@@ -578,7 +582,7 @@ tap.test('reachableFrom', {timeout: 20 * 1000}, async (t) => {
578582 t . end ( ) ;
579583} ) ;
580584
581- tap . test ( 'serverInfo works' , async ( t ) => {
585+ tap . skip ( 'serverInfo works' , async ( t ) => {
582586 await testServerInfo ( {
583587 test : t ,
584588 fetchServerInfo : client . serverInfo ,
0 commit comments