Skip to content

Commit

Permalink
fix Unit tests Dutch URLs PDOK BAG and Vector Tiles (#449)
Browse files Browse the repository at this point in the history
also opened #450 to re-add TileJSON tests.
  • Loading branch information
justb4 authored Jun 19, 2023
1 parent 75927d2 commit f64e481
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 29 deletions.
26 changes: 1 addition & 25 deletions tests/data/fixtures.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,6 @@
"tags": [
"esri"
]
},
"PDOK MAPBOX TILEJSON": {
"owner": "admin",
"resource_type": "Mapbox:TileJSON",
"active": true,
"title": "PDOK BRT+BGT Mapbox TileJSON",
"url": "https://geodata.nationaalgeoregister.nl/beta/topotiles-viewer/styles/tilejson.json",
"tags": [
"pdok",
"tiling"
]
}
},
"probe_vars": {
Expand Down Expand Up @@ -303,16 +292,8 @@
"parameters": {
"drilldown_level": "full"
}
},
"PDOK - MAPBOX TILEJSON": {
"resource": "PDOK MAPBOX TILEJSON",
"probe_class": "GeoHealthCheck.plugins.probe.mapbox.TileJSON",
"parameters": {
"lat_4326": "52",
"lon_4326": "5"
}
}
},
},
"check_vars": {
"PDOK BAG WMS - GetCaps - XML Parse": {
"probe_vars": "PDOK BAG WMS - GetCaps",
Expand Down Expand Up @@ -416,11 +397,6 @@
"check_class": "GeoHealthCheck.plugins.check.checks.HttpHasImageContentType",
"parameters": {}
},
"PDOK MAPBOX TILEJSON - HTTP - NoError": {
"probe_vars": "PDOK - MAPBOX TILEJSON",
"check_class": "GeoHealthCheck.plugins.check.checks.HttpStatusNoError",
"parameters": {}
},
"WOUDC WMTS - GetTileREST - No Exception": {
"probe_vars": "WOUDC WMTS - GetTileREST",
"check_class": "GeoHealthCheck.plugins.check.checks.NotContainsOwsException",
Expand Down
2 changes: 1 addition & 1 deletion tests/data/minimal.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"resource_type": "OGC:WMS",
"active": true,
"title": "PDOK BAG Web Map Service",
"url": "https://geodata.nationaalgeoregister.nl/bag/wms/v1_1",
"url": "https://service.pdok.nl/lv/bag/wms/v2_0",
"tags": []
}
},
Expand Down
4 changes: 2 additions & 2 deletions tests/data/resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"resource_type": "OGC:WMS",
"active": true,
"title": "PDOK BAG Web Map Service",
"url": "https://geodata.nationaalgeoregister.nl/bag/wms/v1_1",
"url": "https://service.pdok.nl/lv/bag/wms/v2_0",
"tags": [
"ows",
"pdok"
Expand All @@ -40,7 +40,7 @@
"resource_type": "OGC:WMS",
"active": true,
"title": "PDOK BAG Web Map Service",
"url": "https://geodata.nationaalgeoregister.nl/bag/wms/v1_1",
"url": "https://service.pdok.nl/lv/bag/wms/v2_0",
"tags": [
"ows",
"pdok"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def tearDown(self):
def testResourcesPresent(self):
resources = Resource.query.all()

self.assertEqual(len(resources), 11)
self.assertEqual(len(resources), 10)

def testRunResoures(self):
# Do the whole healthcheck for all Resources for now
Expand Down

0 comments on commit f64e481

Please sign in to comment.