We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b23c1e commit 4320a2dCopy full SHA for 4320a2d
tests/ogc_tests.py
@@ -314,6 +314,18 @@ def test_wms_badrequest(self):
314
ogc_response = self.ogc_get('wms_test', params)
315
self.assertTrue('Request GETNONEXISTING is not supported' in ogc_response.text)
316
317
+ def test_wms_requireauth(self):
318
+ params = {
319
+ 'SERVICE': 'WMS',
320
+ 'VERSION': '1.3.0',
321
+ 'REQUEST': 'GetProjectSettings',
322
+ 'REQUIREAUTH': '1'
323
+ }
324
+ with test_config(self.WMS_RESOURCES, self.WMS_PERMISSIONS):
325
+ ogc_response = self.ogc_get('wms_test', params)
326
+ self.assertTrue('Unauthorized' in ogc_response.text)
327
+ self.assertEqual(401, ogc_response.status_code)
328
+
329
def test_wms_capabilities(self):
330
params = {
331
'SERVICE': 'WMS',
0 commit comments