Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix Unit tests Dutch URLs PDOK BAG and Vector Tiles #449

Merged
merged 1 commit into from
Jun 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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