aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/at/gv/egiz/moazs
diff options
context:
space:
mode:
authorChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-03-19 13:07:48 +0100
committerChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-03-19 13:07:48 +0100
commitf704c3ca51c7023128d3dc124f803884ca2cee6f (patch)
tree5a3401d0fe416ece4ab9c0184555b04fb6565a01 /src/test/resources/at/gv/egiz/moazs
parent7b3a0d2b5522ae4d43ef384e63d03d07438c23d9 (diff)
downloadmoa-zs-f704c3ca51c7023128d3dc124f803884ca2cee6f.tar.gz
moa-zs-f704c3ca51c7023128d3dc124f803884ca2cee6f.tar.bz2
moa-zs-f704c3ca51c7023128d3dc124f803884ca2cee6f.zip
Add Unit Tests "Reject Formally Incorrect Delivery Request"
Diffstat (limited to 'src/test/resources/at/gv/egiz/moazs')
-rw-r--r--src/test/resources/at/gv/egiz/moazs/App2MzsServiceTest/formallyIncorrectDeliveryRequest.soap52
-rw-r--r--src/test/resources/at/gv/egiz/moazs/App2MzsServiceTest/validDeliveryRequest.soap52
2 files changed, 104 insertions, 0 deletions
diff --git a/src/test/resources/at/gv/egiz/moazs/App2MzsServiceTest/formallyIncorrectDeliveryRequest.soap b/src/test/resources/at/gv/egiz/moazs/App2MzsServiceTest/formallyIncorrectDeliveryRequest.soap
new file mode 100644
index 0000000..bf38ab1
--- /dev/null
+++ b/src/test/resources/at/gv/egiz/moazs/App2MzsServiceTest/formallyIncorrectDeliveryRequest.soap
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<soapenv:Envelope
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:mzs="http://reference.e-government.gv.at/namespace/moazs10/app2mzs#"
+ xmlns:p="http://reference.e-government.gv.at/namespace/persondata/20020228#"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+<soapenv:Body>
+<mzs:DeliveryRequest>
+ <mzs:Sender>
+ <mzs:ProfileID>SampleProfile2</mzs:ProfileID>
+ <mzs:SignatureKeyID></mzs:SignatureKeyID>
+ </mzs:Sender>
+ <mzs:Receiver>
+ <p:PhysicalPerson>
+ <p:Name>
+ <p:GivenName>Maxi</p:GivenName>
+ <p:FamilyName>Mustermann1</p:FamilyName>
+ </p:Name>
+ <p:DateOfBirth>1984-01-24</p:DateOfBirth>
+ </p:PhysicalPerson>
+ <p:PostalAddress>
+ <p:CountryCode>AT</p:CountryCode>
+ <p:PostalCode>1010</p:PostalCode>
+ <p:Municipality>Wien</p:Municipality>
+ <p:DeliveryAddress>
+ <p:StreetName>Muststrasse</p:StreetName>
+ <p:BuildingNumber>10</p:BuildingNumber>
+ </p:DeliveryAddress>
+ </p:PostalAddress>
+ </mzs:Receiver>
+ <mzs:MetaData>
+ <mzs:AppDeliveryID>asd</mzs:AppDeliveryID>
+ <mzs:DeliveryQuality>nonRSa</mzs:DeliveryQuality>
+ <mzs:RequiresEncryption>false</mzs:RequiresEncryption>
+ </mzs:MetaData>
+ <mzs:XMLDocument>
+ <mzs:XMLContent>
+ <message>
+ <subject>Hello There!</subject>
+ <body>
+ <p>How are you</p>
+ <p>Nice to hear from you!</p>
+ <p>Regards, V</p>
+ </body>
+ </message>
+ </mzs:XMLContent>
+ <mzs:XMLProfileID>deckblatt</mzs:XMLProfileID>
+ </mzs:XMLDocument>
+</mzs:DeliveryRequest?>
+</soapenv:Body>
+</soapenv:Envelope>
diff --git a/src/test/resources/at/gv/egiz/moazs/App2MzsServiceTest/validDeliveryRequest.soap b/src/test/resources/at/gv/egiz/moazs/App2MzsServiceTest/validDeliveryRequest.soap
new file mode 100644
index 0000000..662a161
--- /dev/null
+++ b/src/test/resources/at/gv/egiz/moazs/App2MzsServiceTest/validDeliveryRequest.soap
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<soapenv:Envelope
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:mzs="http://reference.e-government.gv.at/namespace/moazs10/app2mzs#"
+ xmlns:p="http://reference.e-government.gv.at/namespace/persondata/20020228#"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+<soapenv:Body>
+<mzs:DeliveryRequest>
+ <mzs:Sender>
+ <mzs:ProfileID>SampleProfile2</mzs:ProfileID>
+ <mzs:SignatureKeyID></mzs:SignatureKeyID>
+ </mzs:Sender>
+ <mzs:Receiver>
+ <p:PhysicalPerson>
+ <p:Name>
+ <p:GivenName>Maxi</p:GivenName>
+ <p:FamilyName>Mustermann1</p:FamilyName>
+ </p:Name>
+ <p:DateOfBirth>1984-01-24</p:DateOfBirth>
+ </p:PhysicalPerson>
+ <p:PostalAddress>
+ <p:CountryCode>AT</p:CountryCode>
+ <p:PostalCode>1010</p:PostalCode>
+ <p:Municipality>Wien</p:Municipality>
+ <p:DeliveryAddress>
+ <p:StreetName>Muststrasse</p:StreetName>
+ <p:BuildingNumber>10</p:BuildingNumber>
+ </p:DeliveryAddress>
+ </p:PostalAddress>
+ </mzs:Receiver>
+ <mzs:MetaData>
+ <mzs:AppDeliveryID>asd</mzs:AppDeliveryID>
+ <mzs:DeliveryQuality>nonRSa</mzs:DeliveryQuality>
+ <mzs:RequiresEncryption>false</mzs:RequiresEncryption>
+ </mzs:MetaData>
+ <mzs:XMLDocument>
+ <mzs:XMLContent>
+ <message>
+ <subject>Hello There!</subject>
+ <body>
+ <p>How are you</p>
+ <p>Nice to hear from you!</p>
+ <p>Regards, V</p>
+ </body>
+ </message>
+ </mzs:XMLContent>
+ <mzs:XMLProfileID>deckblatt</mzs:XMLProfileID>
+ </mzs:XMLDocument>
+</mzs:DeliveryRequest>
+</soapenv:Body>
+</soapenv:Envelope>