Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vesameskanen committed Dec 2, 2024
1 parent f6c3ad1 commit 8911344
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,9 @@ describe('waltti ui', function() {

walttiCities.forEach(function(city) {
testRedirect('next-dev-'+city+'.digitransit.fi','/kissa','https://next-dev-'+city+'.digitransit.fi/kissa');
testProxying('next-dev-'+city+'.digitransit.fi','/','digitransit-ui-waltti-v3:8080', true);
testProxying('next-dev-'+city+'.digitransit.fi','/','digitransit-ui-waltti-test:8080', true);
testRedirect('next-dev-'+city+'.digitransit.fi','/kissa','https://next-dev-'+city+'.digitransit.fi/kissa');
testProxying('next-dev-'+city+'.digitransit.fi','/','digitransit-ui-waltti-v3:8080', true);
testProxying('next-dev-'+city+'.digitransit.fi','/','digitransit-ui-waltti-test:8080', true);
testRedirect(city+'.digitransit.fi','/kissa','https://'+city+'.digitransit.fi/kissa');
testProxying(city+'.digitransit.fi','/','digitransit-ui-waltti-v3:8080', true);
});
Expand Down Expand Up @@ -273,7 +273,7 @@ describe('waltti ui', function() {
testRedirect('dev-raasepori.digitransit.fi','/kissa','https://dev-raasepori.digitransit.fi/kissa');
testProxying('dev-raasepori.digitransit.fi','/','digitransit-ui-waltti-v3:8080', true);
testRedirect('next-dev-raasepori.digitransit.fi','/kissa','https://next-dev-raasepori.digitransit.fi/kissa');
testProxying('next-dev-raasepori.digitransit.fi','/','digitransit-ui-waltti-v3:8080', true);
testProxying('next-dev-raasepori.digitransit.fi','/','digitransit-ui-waltti-test:8080', true);
testRedirect('bosse.digitransit.fi','/kissa','https://bosse.digitransit.fi/kissa');
testProxying('bosse.digitransit.fi','/','digitransit-ui-waltti-v3:8080', true);

Expand Down Expand Up @@ -314,4 +314,4 @@ describe('ext-proxy', function() {
describe('waltti-test ui', function() {
testCallingWithoutCredentials('waltti-test.digitransit.fi','/kissa','https://waltti-test.digitransit.fi/kissa');
testWithCorrectCredentials('waltti-test.digitransit.fi','/kissa', 'test', 'test', 'https://waltti-test.digitransit.fi/kissa', true);
});
});

0 comments on commit 8911344

Please sign in to comment.