Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Aug 10, 2018
1 parent 6adf988 commit daaa5ba
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
12 changes: 12 additions & 0 deletions tests/src/python/test_qgsserver_accesscontrol.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@
import base64


XML_NS = \
'service="WFS" version="1.0.0" ' \
'xmlns:wfs="http://www.opengis.net/wfs" ' \
'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ' \
'xmlns:ogc="http://www.opengis.net/ogc" ' \
'xmlns="http://www.opengis.net/wfs" updateSequence="0" ' \
'xmlns:xlink="http://www.w3.org/1999/xlink" ' \
'xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-capabilities.xsd" ' \
'xmlns:gml="http://www.opengis.net/gml" ' \
'xmlns:ows="http://www.opengis.net/ows" '


class RestrictedAccessControl(QgsAccessControlFilter):

""" Used to have restriction access """
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsserver_accesscontrol_wfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import urllib.parse
import urllib.error
import base64
from test_qgsserver_accesscontrol import TestQgsServerAccessControl
from test_qgsserver_accesscontrol import TestQgsServerAccessControl, XML_NS


class TestQgsServerAccessControlWFS(TestQgsServerAccessControl):
Expand Down
15 changes: 2 additions & 13 deletions tests/src/python/test_qgsserver_accesscontrol_wfstransactional.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,8 @@
import urllib.parse
import urllib.error
import base64
from test_qgsserver_accesscontrol import TestQgsServerAccessControl


XML_NS = \
'service="WFS" version="1.0.0" ' \
'xmlns:wfs="http://www.opengis.net/wfs" ' \
'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ' \
'xmlns:ogc="http://www.opengis.net/ogc" ' \
'xmlns="http://www.opengis.net/wfs" updateSequence="0" ' \
'xmlns:xlink="http://www.w3.org/1999/xlink" ' \
'xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-capabilities.xsd" ' \
'xmlns:gml="http://www.opengis.net/gml" ' \
'xmlns:ows="http://www.opengis.net/ows" '
from test_qgsserver_accesscontrol import TestQgsServerAccessControl, XML_NS


WFS_TRANSACTION_INSERT = """<?xml version="1.0" encoding="UTF-8"?>
<wfs:Transaction {xml_ns}>
Expand Down

0 comments on commit daaa5ba

Please sign in to comment.