Skip to content

Commit

Permalink
Merge pull request #219 from HSLdevcom/otp2-tre
Browse files Browse the repository at this point in the history
Use v3 ui for tampere journey planners
  • Loading branch information
optionsome authored Feb 20, 2023
2 parents b05aee3 + e389a0d commit 790428b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dev-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [10.x]
node-version: [16.x]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ http {
dev-mikkeli.digitransit.fi mikkeli.digitransit.fi
dev-oulu.digitransit.fi oulu.digitransit.fi
dev-turku.digitransit.fi turku.digitransit.fi reittiopas.foli.fi
dev-tampere.digitransit.fi tampere.digitransit.fi repa.tampere.fi reittiopas.tampere.fi
dev-tampere.digitransit.fi
dev-kouvola.digitransit.fi kouvola.digitransit.fi
dev-rovaniemi.digitransit.fi rovaniemi.digitransit.fi
dev-vaasa.digitransit.fi vaasa.digitransit.fi;
Expand Down Expand Up @@ -265,7 +265,7 @@ http {
next-dev-mikkeli.digitransit.fi
next-dev-oulu.digitransit.fi
next-dev-turku.digitransit.fi
next-dev-tampere.digitransit.fi
next-dev-tampere.digitransit.fi tampere.digitransit.fi repa.tampere.fi reittiopas.tampere.fi
next-dev-kouvola.digitransit.fi
next-dev-rovaniemi.digitransit.fi
next-dev-opas.waltti.fi dev-opas.waltti.fi opas.waltti.fi
Expand Down
7 changes: 3 additions & 4 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ describe('matka ui', function() {

describe('waltti ui', function() {
const walttiCities = [
'jyvaskyla', 'kuopio', 'mikkeli', 'turku', 'tampere', 'vaasa', 'hameenlinna',
'jyvaskyla', 'kuopio', 'mikkeli', 'turku', 'vaasa', 'hameenlinna',
'joensuu', 'kotka', 'lahti', 'lappeenranta', 'kouvola','oulu', 'rovaniemi'
];

Expand All @@ -230,10 +230,10 @@ describe('waltti ui', function() {
testProxying('reittiopas.hameenlinna.fi','/','digitransit-ui-waltti-v2:8080', true);

testRedirect('repa.tampere.fi','/kissa','https://repa.tampere.fi/kissa');
testProxying('repa.tampere.fi','/','digitransit-ui-waltti-v2:8080', true);
testProxying('repa.tampere.fi','/','digitransit-ui-waltti-v3:8080', true);

testRedirect('reittiopas.tampere.fi','/kissa','https://reittiopas.tampere.fi/kissa');
testProxying('reittiopas.tampere.fi','/','digitransit-ui-waltti-v2:8080', true);
testProxying('reittiopas.tampere.fi','/','digitransit-ui-waltti-v3:8080', true);
testCaching('reittiopas.tampere.fi','/sw.js', true);

testRedirect('opas.waltti.fi','/kissa','https://opas.waltti.fi/kissa');
Expand Down Expand Up @@ -278,6 +278,5 @@ describe('ext-proxy', function() {
testCaching('api.digitransit.fi','/out/data.foli.fi/citybike/smoove',false);
testCaching('api.digitransit.fi','/out/p.hsl.fi/api/v1/facilities.json?limit=-1',false);
testCaching('api.digitransit.fi','/out/92.62.36.215/RTIX/trip-updates',false);
testCaching('api.digitransit.fi','/out/tyokalu.navici.com/joukkoliikenne/manual-gtfsrt/api/gtfsrt/alerts',false);
testCaching('api.digitransit.fi','/out/stables.donkey.bike/api/public/gbfs/2/donkey_lappeenranta/en/station_status.json',false);
});

0 comments on commit 790428b

Please sign in to comment.