Beispiel #1
0
 def test_REST_bad_layer(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/bogus_layer/default/default/0/0/0.png'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'LAYER',
                     'LAYER does not exist')
Beispiel #2
0
 def test_kvp_bad_tilecol_value(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=infirth'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue',
                     'TILECOL', 'TILECOL is not a valid integer')
Beispiel #3
0
 def test_kvp_tilecol_out_of_range(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=5'
     test_wmts_error(self, test_url, 400, 'TileOutOfRange', 'TILECOL',
                     'TILECOL is out of range, maximum value is 0')
Beispiel #4
0
 def test_kvp_bad_request(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=getschwifty&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=0'
     test_wmts_error(self, test_url, 501, 'OperationNotSupported',
                     'REQUEST', 'The request type is not supported')
Beispiel #5
0
 def test_kvp_bad_layer(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=bogus_layer&version=1.0.0&service=wmts&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=0'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'LAYER',
                     'LAYER does not exist')
 def test_kvp_missing_tilematrixset(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=gettile&format=image/png&tilematrix=0&tilerow=0&tilecol=0'
     test_wmts_error(self, test_url, 400, 'MissingParameterValue', 'TILEMATRIXSET', 'Missing TILEMATRIXSET parameter')
Beispiel #7
0
 def test_kvp_missing_tilecol(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0'
     test_wmts_error(self, test_url, 400, 'MissingParameterValue',
                     'TILECOL', 'Missing TILECOL parameter')
 def test_kvp_bad_format(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=gettile&format=image/jpeg&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=0'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'FORMAT', 'FORMAT is invalid for LAYER')
 def test_kvp_bad_tilecol_value(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=infirth'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'TILECOL', 'TILECOL is not a valid integer')
 def test_kvp_bad_version(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=3.2.1&service=wmts&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=0'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'VERSION', 'VERSION is invalid')
 def test_kvp_bad_layer(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=bogus_layer&version=1.0.0&service=wmts&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=0'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'LAYER', 'LAYER does not exist')
 def test_kvp_bad_request(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=getschwifty&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=0'
     test_wmts_error(self, test_url, 501, 'OperationNotSupported', 'REQUEST', 'The request type is not supported')
 def test_kvp_bad_service(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=tmnt&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=0'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'SERVICE', 'Unrecognized service')
 def test_kvp_missing_tilecol(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0'
     test_wmts_error(self, test_url, 400, 'MissingParameterValue', 'TILECOL', 'Missing TILECOL parameter')
Beispiel #15
0
 def test_REST_bad_tilematrixset_nodate(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/test_layer/default/bogus_tilematrixset/0/0/0.png'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue',
                     'TILEMATRIXSET', 'TILEMATRIXSET is invalid for LAYER')
 def test_kvp_invalid_tilematrix_(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=43&tilerow=0&tilecol=0'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'TILEMATRIX', 'Invalid TILEMATRIX')
Beispiel #17
0
 def test_REST_bad_tilematrix_value(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/test_layer/default/GoogleMapsCompatible_Level6/bogus/0/0.png'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue',
                     'TILEMATRIX', 'TILEMATRIX is not a valid integer')
 def test_kvp_tilecol_out_of_range(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=5'
     test_wmts_error(self, test_url, 400, 'TileOutOfRange', 'TILECOL', 'TILECOL is out of range, maximum value is 0')
Beispiel #19
0
 def test_kvp_missing_tilematrixset(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=gettile&format=image/png&tilematrix=0&tilerow=0&tilecol=0'
     test_wmts_error(self, test_url, 400, 'MissingParameterValue',
                     'TILEMATRIXSET', 'Missing TILEMATRIXSET parameter')
 def test_kvp_bad_time_format(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=0&time=86753-09'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'TIME', 'Invalid time format, must be YYYY-MM-DD or YYYY-MM-DDThh:mm:ssZ')
Beispiel #21
0
 def test_kvp_bad_service(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=tmnt&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=0'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue',
                     'SERVICE', 'Unrecognized service')
 def test_REST_bad_layer(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/bogus_layer/default/default/0/0/0.png'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'LAYER', 'LAYER does not exist')
Beispiel #23
0
 def test_kvp_bad_version(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=3.2.1&service=wmts&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=0'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue',
                     'VERSION', 'VERSION is invalid')
 def test_REST_bad_style(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/test_layer/bogus_style/default/0/0/0.png'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'STYLE', 'STYLE is invalid for LAYER')
Beispiel #25
0
 def test_kvp_bad_format(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=gettile&format=image/jpeg&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=0'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'FORMAT',
                     'FORMAT is invalid for LAYER')
 def test_REST_bad_tilematrixset_nodate(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/test_layer/default/bogus_tilematrixset/0/0/0.png'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'TILEMATRIXSET', 'TILEMATRIXSET is invalid for LAYER')
Beispiel #27
0
 def test_kvp_invalid_tilematrix_(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=43&tilerow=0&tilecol=0'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue',
                     'TILEMATRIX', 'Invalid TILEMATRIX')
 def test_REST_invalid_tilematrix(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/test_layer/default/GoogleMapsCompatible_Level6/10/0/0.png'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'TILEMATRIX', 'Invalid TILEMATRIX')
Beispiel #29
0
 def test_kvp_bad_time_format(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=0&time=86753-09'
     test_wmts_error(
         self, test_url, 400, 'InvalidParameterValue', 'TIME',
         'Invalid time format, must be YYYY-MM-DD or YYYY-MM-DDThh:mm:ssZ')
 def test_REST_bad_tilerow_value(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/test_layer/default/GoogleMapsCompatible_Level6/0/bogus/0.png'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'TILEROW', 'TILEROW is not a valid integer')
Beispiel #31
0
 def test_REST_bad_style(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/test_layer/bogus_style/default/0/0/0.png'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'STYLE',
                     'STYLE is invalid for LAYER')
 def test_REST_tilecol_out_of_range(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/test_layer/default/GoogleMapsCompatible_Level6/0/0/1.png'
     test_wmts_error(self, test_url, 400, 'TileOutOfRange', 'TILECOL', 'TILECOL is out of range, maximum value is 0')
Beispiel #33
0
 def test_REST_invalid_tilematrix(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/test_layer/default/GoogleMapsCompatible_Level6/10/0/0.png'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue',
                     'TILEMATRIX', 'Invalid TILEMATRIX')
Beispiel #34
0
 def test_REST_bad_date_format(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/test_layer/default/GoogleMapsCompatible_Level6/0/0/1.bogus'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'FORMAT',
                     'FORMAT is invalid for LAYER')
Beispiel #35
0
 def test_REST_row_out_of_range(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/test_layer/default/GoogleMapsCompatible_Level6/0/1/0.png'
     test_wmts_error(self, test_url, 400, 'TileOutOfRange', 'TILEROW',
                     'TILEROW is out of range, maximum value is 0')
 def test_REST_bad_date_format(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/test_layer/default/GoogleMapsCompatible_Level6/0/0/1.bogus'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'FORMAT', 'FORMAT is invalid for LAYER')