Skip to content

Commit

Permalink
bless tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkAndshark committed Nov 29, 2024
1 parent 1c51f29 commit 15ce642
Show file tree
Hide file tree
Showing 13 changed files with 470 additions and 3 deletions.
434 changes: 431 additions & 3 deletions Cargo.lock

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions tests/expected/auto/catalog_auto.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@
"content_type": "application/x-protobuf",
"description": "public.points_empty_srid.geom"
},
"rgb8": {
"content_type": "image/png"
},
"stamen_toner__raster_CC-BY-ODbL_z3": {
"content_type": "image/png"
},
Expand Down
6 changes: 6 additions & 0 deletions tests/expected/auto/rgb8.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"tilejson": "3.0.0",
"tiles": [
"http://localhost:3111/rgb8/{z}/{x}/{y}"
]
}
Binary file added tests/expected/auto/rgb8_3_0_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions tests/expected/auto/rgb8_3_0_0.png.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tests/output/auto/rgb8_3_0_0.png: PNG image data, 256 x 256, 8-bit/color RGBA, non-interlaced
Binary file added tests/expected/auto/rgb8_3_1_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions tests/expected/auto/rgb8_3_1_1.png.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tests/output/auto/rgb8_3_1_1.png: PNG image data, 256 x 256, 8-bit/color RGBA, non-interlaced
9 changes: 9 additions & 0 deletions tests/expected/auto/save_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ pmtiles:
paths:
- tests/fixtures/mbtiles
- tests/fixtures/pmtiles
- tests/fixtures/cog
sources:
png: tests/fixtures/pmtiles/png.pmtiles
stamen_toner__raster_CC-BY-ODbL_z3: tests/fixtures/pmtiles/stamen_toner__raster_CC-BY+ODbL_z3.pmtiles
Expand All @@ -224,6 +225,7 @@ mbtiles:
paths:
- tests/fixtures/mbtiles
- tests/fixtures/pmtiles
- tests/fixtures/cog
sources:
geography-class-jpg: tests/fixtures/mbtiles/geography-class-jpg.mbtiles
geography-class-jpg-diff: tests/fixtures/mbtiles/geography-class-jpg-diff.mbtiles
Expand All @@ -237,6 +239,13 @@ mbtiles:
world_cities_diff: tests/fixtures/mbtiles/world_cities_diff.mbtiles
world_cities_modified: tests/fixtures/mbtiles/world_cities_modified.mbtiles
zoomed_world_cities: tests/fixtures/mbtiles/zoomed_world_cities.mbtiles
cog:
paths:
- tests/fixtures/mbtiles
- tests/fixtures/pmtiles
- tests/fixtures/cog
sources:
rgb8: tests/fixtures/cog/rgb8.tif
sprites: tests/fixtures/sprites/src1
fonts:
- tests/fixtures/fonts/overpass-mono-regular.ttf
Expand Down
1 change: 1 addition & 0 deletions tests/expected/auto_mini/save_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ pmtiles:
sources:
webp2: tests/fixtures/pmtiles2/webp2.pmtiles
mbtiles: tests/fixtures/pmtiles2
cog: tests/fixtures/pmtiles2
4 changes: 4 additions & 0 deletions tests/expected/martin-cp/flat-with-hash_save_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -238,3 +238,7 @@ mbtiles:
world_cities_diff: tests/fixtures/mbtiles/world_cities_diff.mbtiles
world_cities_modified: tests/fixtures/mbtiles/world_cities_modified.mbtiles
zoomed_world_cities: tests/fixtures/mbtiles/zoomed_world_cities.mbtiles
cog:
- tests/fixtures/mbtiles
- tests/fixtures/pmtiles
- tests/fixtures/pmtiles2
4 changes: 4 additions & 0 deletions tests/expected/martin-cp/flat_save_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -238,3 +238,7 @@ mbtiles:
world_cities_diff: tests/fixtures/mbtiles/world_cities_diff.mbtiles
world_cities_modified: tests/fixtures/mbtiles/world_cities_modified.mbtiles
zoomed_world_cities: tests/fixtures/mbtiles/zoomed_world_cities.mbtiles
cog:
- tests/fixtures/mbtiles
- tests/fixtures/pmtiles
- tests/fixtures/pmtiles2
4 changes: 4 additions & 0 deletions tests/expected/martin-cp/normalized_save_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -238,3 +238,7 @@ mbtiles:
world_cities_diff: tests/fixtures/mbtiles/world_cities_diff.mbtiles
world_cities_modified: tests/fixtures/mbtiles/world_cities_modified.mbtiles
zoomed_world_cities: tests/fixtures/mbtiles/zoomed_world_cities.mbtiles
cog:
- tests/fixtures/mbtiles
- tests/fixtures/pmtiles
- tests/fixtures/pmtiles2
6 changes: 6 additions & 0 deletions tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,12 @@ test_png mb_png_0_0_0 geography-class-png/0/0/0
test_jsn mb_mvt world_cities
test_pbf mb_mvt_2_3_1 world_cities/2/3/1

>&2 echo "***** Test server response for COG(Cloud Optimized GeoTiff) source *****"
test_jsn rgb8 rgb8
test_png rgb8_3_1_1 rgb8/3/1/1
test_png rgb8_3_1_1 rgb8/0/0/0
test_png rgb8_3_0_0 rgb8/3/0/0

>&2 echo "***** Test server response for table source with empty SRID *****"
test_pbf points_empty_srid_0_0_0 points_empty_srid/0/0/0

Expand Down

0 comments on commit 15ce642

Please sign in to comment.