Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update tests
  • Loading branch information
pblottiere committed Jan 28, 2019
1 parent 7dbc96b commit aa55beb
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 72 deletions.
9 changes: 3 additions & 6 deletions tests/testdata/qgis_server/wms_getfeatureinfo_alias_json.txt
@@ -1,18 +1,15 @@
*****
Content-Type: application/json; charset=utf-8

{"layers":[{
"name": "fields_alias",
"type": "FeatureCollection",
{"type": "FeatureCollection",
"features":[
{
"type":"Feature",
"id":2,
"id":"fields_alias.2",
"geometry":null,
"properties":{
"alias_id":3,
"alias_name":"three",
"utf8nameè":"three èé↓"
}
}
]}]}
}]}
@@ -1,17 +1,14 @@
*****
Content-Type: application/json; charset=utf-8

{"layers":[{
"name": "exclude_attribute",
"type": "FeatureCollection",
{"type": "FeatureCollection",
"features":[
{
"type":"Feature",
"id":2,
"id":"exclude_attribute.2",
"geometry":null,
"properties":{
"id":3,
"utf8nameè":"three èé↓"
}
}
]}]}
}]}
10 changes: 3 additions & 7 deletions tests/testdata/qgis_server/wms_getfeatureinfo_geojson.txt
@@ -1,19 +1,15 @@
*****
Content-Type: application/geo+json; charset=utf-8

{
"layers":[{
"name": "testlayer èé",
"type": "FeatureCollection",
{"type": "FeatureCollection",
"features":[
{
"type":"Feature",
"id":2,
"id":"testlayer èé.2",
"geometry":null,
"properties":{
"id":3,
"name":"three",
"utf8nameè":"three èé↓"
}
}
]}]}
}]}
@@ -1,19 +1,16 @@
*****
Content-Type: application/json; charset=utf-8

{"layers":[{
"name": "testlayer èé",
"type": "FeatureCollection",
{"type": "FeatureCollection",
"features":[
{
"type":"Feature",
"id":2,
"id":"testlayer èé.2",
"geometry":
{"type": "Point", "coordinates": [8.203459, 44.901395]},
"properties":{
"id":3,
"name":"three",
"utf8nameè":"three èé↓"
}
}
]}]}
}]}
10 changes: 3 additions & 7 deletions tests/testdata/qgis_server/wms_getfeatureinfo_json.txt
@@ -1,19 +1,15 @@
*****
Content-Type: application/json; charset=utf-8

{
"layers":[{
"name": "testlayer èé",
"type": "FeatureCollection",
{"type": "FeatureCollection",
"features":[
{
"type":"Feature",
"id":2,
"id":"testlayer èé.2",
"geometry":null,
"properties":{
"id":3,
"name":"three",
"utf8nameè":"three èé↓"
}
}
]}]}
}]}
42 changes: 13 additions & 29 deletions tests/testdata/qgis_server/wms_getfeatureinfo_multiple_json.txt
@@ -1,74 +1,58 @@
*****
Content-Type: application/json; charset=utf-8

{"layers":[{
"name": "testlayer èé",
"type": "FeatureCollection",
{"type": "FeatureCollection",
"features":[
{
"type":"Feature",
"id":0,
"id":"testlayer èé.0",
"geometry":null,
"properties":{
"id":1,
"name":"one",
"utf8nameè":"one èé"
}
},
{
},{
"type":"Feature",
"id":1,
"id":"testlayer èé.1",
"geometry":null,
"properties":{
"id":2,
"name":"two",
"utf8nameè":"two àò"
}
}
]},{
"name": "fields_alias",
"type": "FeatureCollection",
"features":[
{
},{
"type":"Feature",
"id":0,
"id":"fields_alias.0",
"geometry":null,
"properties":{
"alias_id":1,
"alias_name":"one",
"utf8nameè":"one èé"
}
},
{
},{
"type":"Feature",
"id":1,
"id":"fields_alias.1",
"geometry":null,
"properties":{
"alias_id":2,
"alias_name":"two",
"utf8nameè":"two àò"
}
}
]},{
"name": "exclude_attribute",
"type": "FeatureCollection",
"features":[
{
},{
"type":"Feature",
"id":0,
"id":"exclude_attribute.0",
"geometry":null,
"properties":{
"id":1,
"utf8nameè":"one èé"
}
},
{
},{
"type":"Feature",
"id":1,
"id":"exclude_attribute.1",
"geometry":null,
"properties":{
"id":2,
"utf8nameè":"two àò"
}
}
]}]}
}]}
26 changes: 15 additions & 11 deletions tests/testdata/qgis_server/wms_getfeatureinfo_raster_json.txt
@@ -1,15 +1,19 @@
*****
Content-Type: application/json; charset=utf-8

{"layers":[{
"name": "landsat",
"Band 1": "125",
"Band 2": "138",
"Band 3": "112",
"Band 4": "75",
"Band 5": "90",
"Band 6": "132",
"Band 7": "165",
"Band 8": "217",
"Band 9": "175"
{"type": "FeatureCollection",
"features":[
{"type":"Feature",
"id":"landsat",
"properties":{
"Band 1": "125",
"Band 2": "138",
"Band 3": "112",
"Band 4": "75",
"Band 5": "90",
"Band 6": "132",
"Band 7": "165",
"Band 8": "217",
"Band 9": "175"
}
}]}

0 comments on commit aa55beb

Please sign in to comment.