From b7e017df2ed9ad7dc01bcc363a66ef8ac69292d2 Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Sun, 8 Jan 2023 02:10:51 -0500 Subject: [PATCH] tilejson tests --- tests/expected/auto/pmt.json | 19 ++++++++++++++++++ .../auto/{raster_3_4_2.png => pmt_3_4_2.png} | Bin tests/expected/auto/pmt_3_4_2.png.txt | 1 + tests/expected/auto/raster_3_4_2.png.txt | 1 - tests/test.sh | 3 ++- 5 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 tests/expected/auto/pmt.json rename tests/expected/auto/{raster_3_4_2.png => pmt_3_4_2.png} (100%) create mode 100644 tests/expected/auto/pmt_3_4_2.png.txt delete mode 100644 tests/expected/auto/raster_3_4_2.png.txt diff --git a/tests/expected/auto/pmt.json b/tests/expected/auto/pmt.json new file mode 100644 index 000000000..9bece7414 --- /dev/null +++ b/tests/expected/auto/pmt.json @@ -0,0 +1,19 @@ +{ + "bounds": [ + -180, + -85, + 180, + 85 + ], + "center": [ + 0, + 0, + 0 + ], + "maxzoom": 3, + "minzoom": 0, + "tilejson": "3.0.0", + "tiles": [ + "http://localhost:3111/stamen_toner__raster_CC-BY-ODbL_z3/{z}/{x}/{y}" + ] +} diff --git a/tests/expected/auto/raster_3_4_2.png b/tests/expected/auto/pmt_3_4_2.png similarity index 100% rename from tests/expected/auto/raster_3_4_2.png rename to tests/expected/auto/pmt_3_4_2.png diff --git a/tests/expected/auto/pmt_3_4_2.png.txt b/tests/expected/auto/pmt_3_4_2.png.txt new file mode 100644 index 000000000..a0c87897e --- /dev/null +++ b/tests/expected/auto/pmt_3_4_2.png.txt @@ -0,0 +1 @@ +tests/output/auto/pmt_3_4_2.png: PNG image data, 256 x 256, 8-bit/color RGBA, non-interlaced diff --git a/tests/expected/auto/raster_3_4_2.png.txt b/tests/expected/auto/raster_3_4_2.png.txt deleted file mode 100644 index d99c28708..000000000 --- a/tests/expected/auto/raster_3_4_2.png.txt +++ /dev/null @@ -1 +0,0 @@ -tests/output/auto/raster_3_4_2.png: PNG image data, 256 x 256, 8-bit/color RGBA, non-interlaced diff --git a/tests/test.sh b/tests/test.sh index aa46f923a..7c814e85a 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -177,7 +177,8 @@ test_jsn points3857_srid points3857 test_pbf points3857_srid_0_0_0 points3857/0/0/0 >&2 echo "***** Test server response for PMTiles source *****" -test_png raster_3_4_2 stamen_toner__raster_CC-BY-ODbL_z3/3/4/2 +test_jsn pmt stamen_toner__raster_CC-BY-ODbL_z3 +test_png pmt_3_4_2 stamen_toner__raster_CC-BY-ODbL_z3/3/4/2 >&2 echo "***** Test server response for table source with empty SRID *****" echo "IGNORING: This test is currently failing, and has been failing for a while"