-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
23 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
FROM camptocamp/c2cwsgiutils:5 | ||
|
||
COPY . /acceptance_tests/ | ||
|
||
WORKDIR /acceptance_tests | ||
COPY . ./ | ||
|
||
CMD tail -f /dev/null | ||
CMD py.test -vv --color=yes --junitxml /tmp/junitxml/results.xml | ||
CMD ["tail", "-f", "/dev/null"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,25 @@ | ||
def test_get_capabilities(connection_map): | ||
def test_get_std_map(connection_map): | ||
ns = "{http://www.opengis.net/wms}" | ||
answer = connection_map.get_xml( | ||
"?MAP=/etc/mapserver/mapserver.map&SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.3.0" | ||
) | ||
assert [e.text for e in answer.findall("%sService/%sTitle" % (ns, ns))] == ["test"] | ||
assert [e.text for e in answer.findall(".//%sLayer/%sName" % (ns, ns))] == ["test", "polygons"] | ||
|
||
|
||
def test_get_multi_char_map(connection_map): | ||
ns = "{http://www.opengis.net/wms}" | ||
answer = connection_map.get_xml( | ||
"?MAP=/etc/mapserver/AZ_az-0.9.map&SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.3.0" | ||
) | ||
assert [e.text for e in answer.findall("%sService/%sTitle" % (ns, ns))] == ["test"] | ||
assert [e.text for e in answer.findall(".//%sLayer/%sName" % (ns, ns))] == ["test", "polygons"] | ||
|
||
|
||
def test_get_folder_map(connection_map): | ||
ns = "{http://www.opengis.net/wms}" | ||
answer = connection_map.get_xml( | ||
"?MAP=/etc/mapserver/AZ_az-0.9/AZ_az-0.9.map&SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.3.0" | ||
) | ||
assert [e.text for e in answer.findall("%sService/%sTitle" % (ns, ns))] == ["test"] | ||
assert [e.text for e in answer.findall(".//%sLayer/%sName" % (ns, ns))] == ["test", "polygons"] |