Skip to content

Commit 014aff7

Browse files
committedDec 1, 2016
Fix access control tests such that bbox width/height ration matches image width/height
1 parent ee3a493 commit 014aff7

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
@@ -306,7 +306,7 @@ def test_wms_getmap(self):
306306
"LAYERS": "Country,Hello",
307307
"STYLES": "",
308308
"FORMAT": "image/png",
309-
"BBOX": "-16817707,-4710778,5696513,14587125",
309+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
310310
"HEIGHT": "500",
311311
"WIDTH": "500",
312312
"SRS": "EPSG:3857"
@@ -323,7 +323,7 @@ def test_wms_getmap(self):
323323
"LAYERS": "Hello",
324324
"STYLES": "",
325325
"FORMAT": "image/png",
326-
"BBOX": "-16817707,-4710778,5696513,14587125",
326+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
327327
"HEIGHT": "500",
328328
"WIDTH": "500",
329329
"SRS": "EPSG:3857"
@@ -339,7 +339,7 @@ def test_wms_getmap(self):
339339
"LAYERS": "Country",
340340
"STYLES": "",
341341
"FORMAT": "image/png",
342-
"BBOX": "-16817707,-4710778,5696513,14587125",
342+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
343343
"HEIGHT": "500",
344344
"WIDTH": "500",
345345
"SRS": "EPSG:3857"
@@ -363,7 +363,7 @@ def test_wms_getfeatureinfo_hello(self):
363363
"QUERY_LAYERS": "Hello",
364364
"STYLES": "",
365365
"FORMAT": "image/png",
366-
"BBOX": "-16817707,-4710778,5696513,14587125",
366+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
367367
"HEIGHT": "500",
368368
"WIDTH": "500",
369369
"SRS": "EPSG:3857",
@@ -402,7 +402,7 @@ def test_wms_getfeatureinfo_hello2(self):
402402
"QUERY_LAYERS": "Hello",
403403
"STYLES": "",
404404
"FORMAT": "image/png",
405-
"BBOX": "-16817707,-4710778,5696513,14587125",
405+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
406406
"HEIGHT": "500",
407407
"WIDTH": "500",
408408
"SRS": "EPSG:3857",
@@ -432,7 +432,7 @@ def test_wms_getfeatureinfo_country(self):
432432
"QUERY_LAYERS": "Country",
433433
"STYLES": "",
434434
"FORMAT": "image/png",
435-
"BBOX": "-16817707,-4710778,5696513,14587125",
435+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
436436
"HEIGHT": "500",
437437
"WIDTH": "500",
438438
"SRS": "EPSG:3857",
@@ -854,7 +854,7 @@ def test_wms_getmap_subsetstring(self):
854854
"LAYERS": "Country,Hello_SubsetString",
855855
"STYLES": "",
856856
"FORMAT": "image/png",
857-
"BBOX": "-16817707,-4710778,5696513,14587125",
857+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
858858
"HEIGHT": "500",
859859
"WIDTH": "500",
860860
"SRS": "EPSG:3857"
@@ -871,7 +871,7 @@ def test_wms_getmap_subsetstring(self):
871871
"LAYERS": "Hello_SubsetString",
872872
"STYLES": "",
873873
"FORMAT": "image/png",
874-
"BBOX": "-16817707,-4710778,5696513,14587125",
874+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
875875
"HEIGHT": "500",
876876
"WIDTH": "500",
877877
"SRS": "EPSG:3857"
@@ -894,7 +894,7 @@ def test_wms_getmap_subsetstring_with_filter(self):
894894
"FILTER": "Hello_Filter_SubsetString:\"pkuid\" IN ( 7 , 8 )",
895895
"STYLES": "",
896896
"FORMAT": "image/png",
897-
"BBOX": "-16817707,-4710778,5696513,14587125",
897+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
898898
"HEIGHT": "500",
899899
"WIDTH": "500",
900900
"SRS": "EPSG:3857"
@@ -912,7 +912,7 @@ def test_wms_getmap_subsetstring_with_filter(self):
912912
"FILTER": "Hello_Filter_SubsetString:\"pkuid\" IN ( 7 , 8 )",
913913
"STYLES": "",
914914
"FORMAT": "image/png",
915-
"BBOX": "-16817707,-4710778,5696513,14587125",
915+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
916916
"HEIGHT": "500",
917917
"WIDTH": "500",
918918
"SRS": "EPSG:3857"
@@ -931,7 +931,7 @@ def test_wms_getmap_projectsubsetstring(self):
931931
"LAYERS": "Hello_Project_SubsetString",
932932
"STYLES": "",
933933
"FORMAT": "image/png",
934-
"BBOX": "-16817707,-4710778,5696513,14587125",
934+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
935935
"HEIGHT": "500",
936936
"WIDTH": "500",
937937
"SRS": "EPSG:3857"
@@ -948,7 +948,7 @@ def test_wms_getmap_projectsubsetstring(self):
948948
"LAYERS": "Hello_Project_SubsetString",
949949
"STYLES": "",
950950
"FORMAT": "image/png",
951-
"BBOX": "-16817707,-4710778,5696513,14587125",
951+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
952952
"HEIGHT": "500",
953953
"WIDTH": "500",
954954
"SRS": "EPSG:3857"
@@ -966,7 +966,7 @@ def test_wms_getfeatureinfo_subsetstring(self):
966966
"QUERY_LAYERS": "Hello_SubsetString",
967967
"STYLES": "",
968968
"FORMAT": "image/png",
969-
"BBOX": "-16817707,-4710778,5696513,14587125",
969+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
970970
"HEIGHT": "500",
971971
"WIDTH": "500",
972972
"SRS": "EPSG:3857",
@@ -1002,7 +1002,7 @@ def test_wms_getfeatureinfo_subsetstring2(self):
10021002
"QUERY_LAYERS": "Hello_SubsetString",
10031003
"STYLES": "",
10041004
"FORMAT": "image/png",
1005-
"BBOX": "-16817707,-4710778,5696513,14587125",
1005+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
10061006
"HEIGHT": "500",
10071007
"WIDTH": "500",
10081008
"SRS": "EPSG:3857",
@@ -1038,7 +1038,7 @@ def test_wms_getfeatureinfo_projectsubsetstring(self):
10381038
"QUERY_LAYERS": "Hello_Project_SubsetString",
10391039
"STYLES": "",
10401040
"FORMAT": "image/png",
1041-
"BBOX": "-16817707,-4710778,5696513,14587125",
1041+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
10421042
"HEIGHT": "500",
10431043
"WIDTH": "500",
10441044
"SRS": "EPSG:3857",
@@ -1147,7 +1147,7 @@ def test_wms_getfeatureinfo_subsetstring_with_filter(self):
11471147
"FILTER": "Hello_Filter_SubsetString:\"pkuid\" IN ( 7 , 8 )",
11481148
"STYLES": "",
11491149
"FORMAT": "image/png",
1150-
"BBOX": "-16817707,-4710778,5696513,14587125",
1150+
"BBOX": "-16817707,-6318936.5,5696513,16195283.5",
11511151
"HEIGHT": "500",
11521152
"WIDTH": "500",
11531153
"SRS": "EPSG:3857",

0 commit comments

Comments
 (0)
Please sign in to comment.