Skip to content

Commit d2a122c

Browse files
mhugentrldhont
authored andcommittedDec 12, 2016
Fix access control tests such that bbox width/height ration matches image width/height
1 parent 218f803 commit d2a122c

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
@@ -295,7 +295,7 @@ def test_wms_getmap(self):
295295
"LAYERS": "Country,Hello",
296296
"STYLES": "",
297297
"FORMAT": "image/png",
298-
"BBOX": "-16817707,-4710778,5696513,14587125",
298+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
299299
"HEIGHT": "500",
300300
"WIDTH": "500",
301301
"SRS": "EPSG:3857"
@@ -312,7 +312,7 @@ def test_wms_getmap(self):
312312
"LAYERS": "Hello",
313313
"STYLES": "",
314314
"FORMAT": "image/png",
315-
"BBOX": "-16817707,-4710778,5696513,14587125",
315+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
316316
"HEIGHT": "500",
317317
"WIDTH": "500",
318318
"SRS": "EPSG:3857"
@@ -328,7 +328,7 @@ def test_wms_getmap(self):
328328
"LAYERS": "Country",
329329
"STYLES": "",
330330
"FORMAT": "image/png",
331-
"BBOX": "-16817707,-4710778,5696513,14587125",
331+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
332332
"HEIGHT": "500",
333333
"WIDTH": "500",
334334
"SRS": "EPSG:3857"
@@ -352,7 +352,7 @@ def test_wms_getfeatureinfo_hello(self):
352352
"QUERY_LAYERS": "Hello",
353353
"STYLES": "",
354354
"FORMAT": "image/png",
355-
"BBOX": "-16817707,-4710778,5696513,14587125",
355+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
356356
"HEIGHT": "500",
357357
"WIDTH": "500",
358358
"SRS": "EPSG:3857",
@@ -391,7 +391,7 @@ def test_wms_getfeatureinfo_hello2(self):
391391
"QUERY_LAYERS": "Hello",
392392
"STYLES": "",
393393
"FORMAT": "image/png",
394-
"BBOX": "-16817707,-4710778,5696513,14587125",
394+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
395395
"HEIGHT": "500",
396396
"WIDTH": "500",
397397
"SRS": "EPSG:3857",
@@ -421,7 +421,7 @@ def test_wms_getfeatureinfo_country(self):
421421
"QUERY_LAYERS": "Country",
422422
"STYLES": "",
423423
"FORMAT": "image/png",
424-
"BBOX": "-16817707,-4710778,5696513,14587125",
424+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
425425
"HEIGHT": "500",
426426
"WIDTH": "500",
427427
"SRS": "EPSG:3857",
@@ -843,7 +843,7 @@ def test_wms_getmap_subsetstring(self):
843843
"LAYERS": "Country,Hello_SubsetString",
844844
"STYLES": "",
845845
"FORMAT": "image/png",
846-
"BBOX": "-16817707,-4710778,5696513,14587125",
846+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
847847
"HEIGHT": "500",
848848
"WIDTH": "500",
849849
"SRS": "EPSG:3857"
@@ -860,7 +860,7 @@ def test_wms_getmap_subsetstring(self):
860860
"LAYERS": "Hello_SubsetString",
861861
"STYLES": "",
862862
"FORMAT": "image/png",
863-
"BBOX": "-16817707,-4710778,5696513,14587125",
863+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
864864
"HEIGHT": "500",
865865
"WIDTH": "500",
866866
"SRS": "EPSG:3857"
@@ -883,7 +883,7 @@ def test_wms_getmap_subsetstring_with_filter(self):
883883
"FILTER": "Hello_Filter_SubsetString:\"pkuid\" IN ( 7 , 8 )",
884884
"STYLES": "",
885885
"FORMAT": "image/png",
886-
"BBOX": "-16817707,-4710778,5696513,14587125",
886+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
887887
"HEIGHT": "500",
888888
"WIDTH": "500",
889889
"SRS": "EPSG:3857"
@@ -901,7 +901,7 @@ def test_wms_getmap_subsetstring_with_filter(self):
901901
"FILTER": "Hello_Filter_SubsetString:\"pkuid\" IN ( 7 , 8 )",
902902
"STYLES": "",
903903
"FORMAT": "image/png",
904-
"BBOX": "-16817707,-4710778,5696513,14587125",
904+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
905905
"HEIGHT": "500",
906906
"WIDTH": "500",
907907
"SRS": "EPSG:3857"
@@ -920,7 +920,7 @@ def test_wms_getmap_projectsubsetstring(self):
920920
"LAYERS": "Hello_Project_SubsetString",
921921
"STYLES": "",
922922
"FORMAT": "image/png",
923-
"BBOX": "-16817707,-4710778,5696513,14587125",
923+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
924924
"HEIGHT": "500",
925925
"WIDTH": "500",
926926
"SRS": "EPSG:3857"
@@ -937,7 +937,7 @@ def test_wms_getmap_projectsubsetstring(self):
937937
"LAYERS": "Hello_Project_SubsetString",
938938
"STYLES": "",
939939
"FORMAT": "image/png",
940-
"BBOX": "-16817707,-4710778,5696513,14587125",
940+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
941941
"HEIGHT": "500",
942942
"WIDTH": "500",
943943
"SRS": "EPSG:3857"
@@ -955,7 +955,7 @@ def test_wms_getfeatureinfo_subsetstring(self):
955955
"QUERY_LAYERS": "Hello_SubsetString",
956956
"STYLES": "",
957957
"FORMAT": "image/png",
958-
"BBOX": "-16817707,-4710778,5696513,14587125",
958+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
959959
"HEIGHT": "500",
960960
"WIDTH": "500",
961961
"SRS": "EPSG:3857",
@@ -991,7 +991,7 @@ def test_wms_getfeatureinfo_subsetstring2(self):
991991
"QUERY_LAYERS": "Hello_SubsetString",
992992
"STYLES": "",
993993
"FORMAT": "image/png",
994-
"BBOX": "-16817707,-4710778,5696513,14587125",
994+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
995995
"HEIGHT": "500",
996996
"WIDTH": "500",
997997
"SRS": "EPSG:3857",
@@ -1027,7 +1027,7 @@ def test_wms_getfeatureinfo_projectsubsetstring(self):
10271027
"QUERY_LAYERS": "Hello_Project_SubsetString",
10281028
"STYLES": "",
10291029
"FORMAT": "image/png",
1030-
"BBOX": "-16817707,-4710778,5696513,14587125",
1030+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
10311031
"HEIGHT": "500",
10321032
"WIDTH": "500",
10331033
"SRS": "EPSG:3857",
@@ -1136,7 +1136,7 @@ def test_wms_getfeatureinfo_subsetstring_with_filter(self):
11361136
"FILTER": "Hello_Filter_SubsetString:\"pkuid\" IN ( 7 , 8 )",
11371137
"STYLES": "",
11381138
"FORMAT": "image/png",
1139-
"BBOX": "-16817707,-4710778,5696513,14587125",
1139+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
11401140
"HEIGHT": "500",
11411141
"WIDTH": "500",
11421142
"SRS": "EPSG:3857",

0 commit comments

Comments
 (0)
Please sign in to comment.