Skip to content

Commit

Permalink
Tests for custom domains
Browse files Browse the repository at this point in the history
  • Loading branch information
optionsome committed Sep 8, 2017
1 parent a41243b commit 479ce3d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,12 @@ describe('waltti ui', function() {
testProxying(city+'.digitransit.fi','/','digitransit-ui-waltti:8080', true);
});

testRedirect('reittiopas.foli.fi','/kissa','https://reittiopas.foli.fi/kissa');
testProxying('reittiopas.foli.fi','/','digitransit-ui-waltti:8080', true);

testRedirect('reittiopas.hameenlinna.fi','/kissa','https://reittiopas.hameenlinna.fi/kissa');
testProxying('reittiopas.hameenlinna.fi','/','digitransit-ui-waltti:8080', true);

it('https should not redirect', function(done) {
httpsGet('turku.digitransit.fi','/kissa').end((err,res)=>{
expect(err).to.be.null;
Expand Down

0 comments on commit 479ce3d

Please sign in to comment.