Update tests and links to use the new data

This commit is contained in:
Petr Sloup 2016-12-15 10:33:55 +01:00
parent 0018ed9524
commit 1c401f41a2
7 changed files with 9 additions and 11 deletions

View file

@ -15,9 +15,7 @@ before_install:
- sudo apt-get install -qq xvfb
install:
- npm install
- wget -O test_data.zip https://github.com/klokantech/tileserver-gl-data/archive/v0.8.zip
- unzip -q test_data.zip -d tmp_test_data
- mkdir test_data
- mv tmp_test_data/tileserver-gl-data-*/* -t test_data
- wget -O test_data.zip https://github.com/klokantech/tileserver-gl/releases/download/v1.3.0/test_data.zip
- unzip -q test_data.zip -d test_data
script:
- xvfb-run --server-args="-screen 0 1024x768x24" npm test

View file

@ -175,7 +175,7 @@ fs.stat(path.resolve(opts.config), function(err, stats) {
console.log('No MBTiles specified, using ' + mbtiles);
return startWithMBTiles(mbtiles);
} else {
var url = 'https://github.com/klokantech/tileserver-gl-styles/releases/download/v0.3.0/zurich_switzerland.mbtiles';
var url = 'https://github.com/klokantech/tileserver-gl/releases/download/v1.3.0/zurich_switzerland.mbtiles';
var filename = 'zurich_switzerland.mbtiles';
var stream = fs.createWriteStream(filename);
console.log('Downloading sample data (' + filename + ') from ' + url);

View file

@ -64,6 +64,6 @@ describe('Metadata', function() {
});
});
testTileJSON('/styles/bright/rendered.json', 'bright');
testTileJSON('/data/zurich-vector.json', 'zurich-vector');
testTileJSON('/styles/test-style/rendered.json', 'test-style');
testTileJSON('/data/openmaptiles.json', 'openmaptiles');
});

View file

@ -12,7 +12,7 @@ var testStatic = function(prefix, q, format, status, scale, type, query) {
});
};
var prefix = 'bright';
var prefix = 'test-style';
describe('Static endpoints', function() {
describe('center-based', function() {

View file

@ -8,7 +8,7 @@ var testIs = function(url, type, status) {
});
};
var prefix = 'bright';
var prefix = 'test-style';
describe('Styles', function() {
describe('/styles/' + prefix + '.json is valid style', function() {

View file

@ -8,7 +8,7 @@ var testTile = function(prefix, z, x, y, status) {
});
};
var prefix = 'zurich-vector';
var prefix = 'openmaptiles';
describe('Vector tiles', function() {
describe('existing tiles', function() {

View file

@ -9,7 +9,7 @@ var testTile = function(prefix, z, x, y, format, status, scale, type) {
});
};
var prefix = 'bright';
var prefix = 'test-style';
describe('Raster tiles', function() {
describe('valid requests', function() {