miniupnpc: added test cases for XML parsing
This commit is contained in:
parent
064fcd2739
commit
af085e8276
|
@ -0,0 +1,3 @@
|
|||
NewProtocol=UDP
|
||||
NewExternalPort=12345
|
||||
NewRemoteHost=
|
|
@ -0,0 +1,3 @@
|
|||
<?xml version="1.0"?>
|
||||
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:GetSpecificPortMappingEntry xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1"><NewRemoteHost></NewRemoteHost><NewExternalPort>12345</NewExternalPort><NewProtocol>UDP</NewProtocol></u:GetSpecificPortMappingEntry></s:Body></s:Envelope>
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
NewInternalPort=12345
|
||||
NewInternalClient=192.168.10.110
|
||||
NewEnabled=1
|
||||
NewPortMappingDescription=libminiupnpc
|
||||
NewLeaseDuration=0
|
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:GetSpecificPortMappingEntryResponse xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1"><NewInternalPort>12345</NewInternalPort><NewInternalClient>192.168.10.110</NewInternalClient><NewEnabled>1</NewEnabled><NewPortMappingDescription>libminiupnpc</NewPortMappingDescription><NewLeaseDuration>0</NewLeaseDuration></u:GetSpecificPortMappingEntryResponse></s:Body></s:Envelope>
|
||||
|
Loading…
Reference in New Issue