Skip to content

Commit 1b3961d

Browse files
mhugentrldhont
authored andcommittedDec 13, 2016
Fix access control tests such that bbox width/height ration matches image width/height
1 parent 35be15b commit 1b3961d

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed
 

‎tests/src/python/test_qgsserver_accesscontrol.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def test_wms_getmap(self):
294294
"LAYERS": "Country,Hello",
295295
"STYLES": "",
296296
"FORMAT": "image/png",
297-
"BBOX": "-16817707,-4710778,5696513,14587125",
297+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
298298
"HEIGHT": "500",
299299
"WIDTH": "500",
300300
"SRS": "EPSG:3857"
@@ -311,7 +311,7 @@ def test_wms_getmap(self):
311311
"LAYERS": "Hello",
312312
"STYLES": "",
313313
"FORMAT": "image/png",
314-
"BBOX": "-16817707,-4710778,5696513,14587125",
314+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
315315
"HEIGHT": "500",
316316
"WIDTH": "500",
317317
"SRS": "EPSG:3857"
@@ -327,7 +327,7 @@ def test_wms_getmap(self):
327327
"LAYERS": "Country",
328328
"STYLES": "",
329329
"FORMAT": "image/png",
330-
"BBOX": "-16817707,-4710778,5696513,14587125",
330+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
331331
"HEIGHT": "500",
332332
"WIDTH": "500",
333333
"SRS": "EPSG:3857"
@@ -351,7 +351,7 @@ def test_wms_getfeatureinfo_hello(self):
351351
"QUERY_LAYERS": "Hello",
352352
"STYLES": "",
353353
"FORMAT": "image/png",
354-
"BBOX": "-16817707,-4710778,5696513,14587125",
354+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
355355
"HEIGHT": "500",
356356
"WIDTH": "500",
357357
"SRS": "EPSG:3857",
@@ -390,7 +390,7 @@ def test_wms_getfeatureinfo_hello2(self):
390390
"QUERY_LAYERS": "Hello",
391391
"STYLES": "",
392392
"FORMAT": "image/png",
393-
"BBOX": "-16817707,-4710778,5696513,14587125",
393+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
394394
"HEIGHT": "500",
395395
"WIDTH": "500",
396396
"SRS": "EPSG:3857",
@@ -420,7 +420,7 @@ def test_wms_getfeatureinfo_country(self):
420420
"QUERY_LAYERS": "Country",
421421
"STYLES": "",
422422
"FORMAT": "image/png",
423-
"BBOX": "-16817707,-4710778,5696513,14587125",
423+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
424424
"HEIGHT": "500",
425425
"WIDTH": "500",
426426
"SRS": "EPSG:3857",
@@ -842,7 +842,7 @@ def test_wms_getmap_subsetstring(self):
842842
"LAYERS": "Country,Hello_SubsetString",
843843
"STYLES": "",
844844
"FORMAT": "image/png",
845-
"BBOX": "-16817707,-4710778,5696513,14587125",
845+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
846846
"HEIGHT": "500",
847847
"WIDTH": "500",
848848
"SRS": "EPSG:3857"
@@ -859,7 +859,7 @@ def test_wms_getmap_subsetstring(self):
859859
"LAYERS": "Hello_SubsetString",
860860
"STYLES": "",
861861
"FORMAT": "image/png",
862-
"BBOX": "-16817707,-4710778,5696513,14587125",
862+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
863863
"HEIGHT": "500",
864864
"WIDTH": "500",
865865
"SRS": "EPSG:3857"
@@ -882,7 +882,7 @@ def test_wms_getmap_subsetstring_with_filter(self):
882882
"FILTER": "Hello_Filter_SubsetString:\"pkuid\" IN ( 7 , 8 )",
883883
"STYLES": "",
884884
"FORMAT": "image/png",
885-
"BBOX": "-16817707,-4710778,5696513,14587125",
885+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
886886
"HEIGHT": "500",
887887
"WIDTH": "500",
888888
"SRS": "EPSG:3857"
@@ -900,7 +900,7 @@ def test_wms_getmap_subsetstring_with_filter(self):
900900
"FILTER": "Hello_Filter_SubsetString:\"pkuid\" IN ( 7 , 8 )",
901901
"STYLES": "",
902902
"FORMAT": "image/png",
903-
"BBOX": "-16817707,-4710778,5696513,14587125",
903+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
904904
"HEIGHT": "500",
905905
"WIDTH": "500",
906906
"SRS": "EPSG:3857"
@@ -919,7 +919,7 @@ def test_wms_getmap_projectsubsetstring(self):
919919
"LAYERS": "Hello_Project_SubsetString",
920920
"STYLES": "",
921921
"FORMAT": "image/png",
922-
"BBOX": "-16817707,-4710778,5696513,14587125",
922+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
923923
"HEIGHT": "500",
924924
"WIDTH": "500",
925925
"SRS": "EPSG:3857"
@@ -936,7 +936,7 @@ def test_wms_getmap_projectsubsetstring(self):
936936
"LAYERS": "Hello_Project_SubsetString",
937937
"STYLES": "",
938938
"FORMAT": "image/png",
939-
"BBOX": "-16817707,-4710778,5696513,14587125",
939+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
940940
"HEIGHT": "500",
941941
"WIDTH": "500",
942942
"SRS": "EPSG:3857"
@@ -954,7 +954,7 @@ def test_wms_getfeatureinfo_subsetstring(self):
954954
"QUERY_LAYERS": "Hello_SubsetString",
955955
"STYLES": "",
956956
"FORMAT": "image/png",
957-
"BBOX": "-16817707,-4710778,5696513,14587125",
957+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
958958
"HEIGHT": "500",
959959
"WIDTH": "500",
960960
"SRS": "EPSG:3857",
@@ -990,7 +990,7 @@ def test_wms_getfeatureinfo_subsetstring2(self):
990990
"QUERY_LAYERS": "Hello_SubsetString",
991991
"STYLES": "",
992992
"FORMAT": "image/png",
993-
"BBOX": "-16817707,-4710778,5696513,14587125",
993+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
994994
"HEIGHT": "500",
995995
"WIDTH": "500",
996996
"SRS": "EPSG:3857",
@@ -1026,7 +1026,7 @@ def test_wms_getfeatureinfo_projectsubsetstring(self):
10261026
"QUERY_LAYERS": "Hello_Project_SubsetString",
10271027
"STYLES": "",
10281028
"FORMAT": "image/png",
1029-
"BBOX": "-16817707,-4710778,5696513,14587125",
1029+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
10301030
"HEIGHT": "500",
10311031
"WIDTH": "500",
10321032
"SRS": "EPSG:3857",
@@ -1135,7 +1135,7 @@ def test_wms_getfeatureinfo_subsetstring_with_filter(self):
11351135
"FILTER": "Hello_Filter_SubsetString:\"pkuid\" IN ( 7 , 8 )",
11361136
"STYLES": "",
11371137
"FORMAT": "image/png",
1138-
"BBOX": "-16817707,-4710778,5696513,14587125",
1138+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
11391139
"HEIGHT": "500",
11401140
"WIDTH": "500",
11411141
"SRS": "EPSG:3857",

0 commit comments

Comments
 (0)
Please sign in to comment.