[farsight2/master] Re-add xml test files
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:25:32 PST 2008
---
tests/check/upnp/InternetGatewayDevice.xml | 67 +++++
tests/check/upnp/WANIPConnection.xml | 421 ++++++++++++++++++++++++++++
2 files changed, 488 insertions(+), 0 deletions(-)
create mode 100644 tests/check/upnp/InternetGatewayDevice.xml
create mode 100644 tests/check/upnp/WANIPConnection.xml
diff --git a/tests/check/upnp/InternetGatewayDevice.xml b/tests/check/upnp/InternetGatewayDevice.xml
new file mode 100644
index 0000000..c070f40
--- /dev/null
+++ b/tests/check/upnp/InternetGatewayDevice.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0"?>
+<root xmlns="urn:schemas-upnp-org:device-1-0">
+ <specVersion>
+ <major>1</major>
+ <minor>0</minor>
+ </specVersion>
+ <device>
+ <deviceType>urn:schemas-upnp-org:device:InternetGatewayDevice:1</deviceType>
+ <friendlyName>short user-friendly title</friendlyName>
+ <manufacturer>manufacturer name</manufacturer>
+ <manufacturerURL>URL to manufacturer site</manufacturerURL>
+ <modelDescription>long user-friendly title</modelDescription>
+ <modelName>model name</modelName>
+ <modelNumber>model number</modelNumber>
+ <modelURL>URL to model site</modelURL>
+ <serialNumber>manufacturer's serial number</serialNumber>
+ <UDN>uuid:UUID1</UDN>
+ <UPC>Universal Product Code</UPC>
+ <deviceList>
+ <device>
+ <deviceType>urn:schemas-upnp-org:device:WANDevice:1</deviceType>
+ <friendlyName>short user-friendly title</friendlyName>
+ <manufacturer>manufacturer name</manufacturer>
+ <manufacturerURL>URL to manufacturer site</manufacturerURL>
+ <modelDescription>long user-friendly title</modelDescription>
+ <modelName>model name</modelName>
+ <modelNumber>model number</modelNumber>
+ <modelURL>URL to model site</modelURL>
+ <serialNumber>manufacturer's serial number</serialNumber>
+ <UDN>uuid:UUID2</UDN>
+ <UPC>Universal Product Code</UPC>
+ <deviceList>
+ <device>
+ <deviceType>urn:schemas-upnp-org:device:WANConnectionDevice:1</deviceType>
+ <friendlyName>short user-friendly title</friendlyName>
+ <manufacturer>manufacturer name</manufacturer>
+ <manufacturerURL>URL to manufacturer site</manufacturerURL>
+ <modelDescription>long user-friendly title</modelDescription>
+ <modelName>model name</modelName>
+ <modelNumber>model number</modelNumber>
+ <modelURL>URL to model site</modelURL>
+ <serialNumber>manufacturer's serial number</serialNumber>
+ <UDN>uuid:UUID3</UDN>
+ <UPC>Universal Product Code</UPC>
+ <serviceList>
+ <service>
+ <serviceType>urn:schemas-upnp-org:service:WANIPConnection:1</serviceType>
+ <serviceId>urn:upnp-org:serviceId:WANIPConn1</serviceId>
+ <SCPDURL>/WANIPConnection.xml</SCPDURL>
+ <controlURL>/WANIPConnection/Control</controlURL>
+ <eventSubURL>/WANIPConnection/Event</eventSubURL>
+ </service>
+ <service>
+ <serviceType>urn:schemas-upnp-org:service:WANPPPConnection:1</serviceType>
+ <serviceId>urn:upnp-org:serviceId:WANPPPConn1</serviceId>
+ <SCPDURL>/WANPPPConnection.xml</SCPDURL>
+ <controlURL>/WANPPPConnection/Control</controlURL>
+ <eventSubURL>/WANPPPConnection/Event</eventSubURL>
+ </service>
+ </serviceList>
+ </device>
+ </deviceList>
+</device>
+
+ </deviceList>
+ </device>
+</root>
diff --git a/tests/check/upnp/WANIPConnection.xml b/tests/check/upnp/WANIPConnection.xml
new file mode 100644
index 0000000..40a6d33
--- /dev/null
+++ b/tests/check/upnp/WANIPConnection.xml
@@ -0,0 +1,421 @@
+<?xml version="1.0"?>
+<scpd xmlns="urn:schemas-upnp-org:service-1-0">
+ <specVersion>
+ <major>1</major>
+ <minor>0</minor>
+ </specVersion>
+ <actionList>
+ <action>
+ <name>SetConnectionType</name>
+ <argumentList>
+ <argument>
+ <name>NewConnectionType</name>
+ <direction>in</direction>
+ <relatedStateVariable>ConnectionType</relatedStateVariable>
+ </argument>
+ </argumentList>
+ </action>
+ <action>
+ <name>GetConnectionTypeInfo</name>
+ <argumentList>
+ <argument>
+ <name>NewConnectionType</name>
+ <direction>out</direction>
+ <relatedStateVariable>ConnectionType</relatedStateVariable>
+ </argument>
+ <argument>
+ <name>NewPossibleConnectionTypes</name>
+ <direction>out</direction>
+<relatedStateVariable>PossibleConnectionTypes</relatedStateVariable>
+ </argument>
+ </argumentList>
+ </action>
+ <action>
+ <name>RequestConnection</name>
+ </action>
+ <action>
+ <name>RequestTermination</name>
+ </action>
+ <action>
+ <name>ForceTermination</name>
+ </action>
+ <action>
+ <name>SetAutoDisconnectTime</name>
+ <argumentList>
+ <argument>
+ <name>NewAutoDisconnectTime</name>
+ <direction>in</direction>
+ <relatedStateVariable>AutoDisconnectTime</relatedStateVariable>
+ </argument>
+ </argumentList>
+ </action>
+ <action>
+ <name>SetIdleDisconnectTime</name>
+ <argumentList>
+ <argument>
+ <name>NewIdleDisconnectTime</name>
+ <direction>in</direction>
+ <relatedStateVariable>IdleDisconnectTime</relatedStateVariable>
+ </argument>
+ </argumentList>
+</action>
+<action>
+<name>SetWarnDisconnectDelay</name>
+ <argumentList>
+ <argument>
+ <name>NewWarnDisconnectDelay</name>
+ <direction>in</direction>
+ <relatedStateVariable>WarnDisconnectDelay</relatedStateVariable>
+ </argument>
+ </argumentList>
+</action>
+<action>
+<name>GetStatusInfo</name>
+ <argumentList>
+ <argument>
+ <name>NewConnectionStatus</name>
+ <direction>out</direction>
+ <relatedStateVariable>ConnectionStatus</relatedStateVariable>
+ </argument>
+ <argument>
+ <name>NewLastConnectionError</name>
+ <direction>out</direction>
+ <relatedStateVariable>LastConnectionError</relatedStateVariable>
+ </argument>
+ <argument>
+ <name>NewUptime</name>
+ <direction>out</direction>
+ <relatedStateVariable>Uptime</relatedStateVariable>
+ </argument>
+ </argumentList>
+</action>
+<action>
+<name>GetAutoDisconnectTime</name>
+ <argumentList>
+ <argument>
+ <name>NewAutoDisconnectTime</name>
+ <direction>out</direction>
+ <relatedStateVariable>AutoDisconnectTime</relatedStateVariable>
+ </argument>
+ </argumentList>
+</action>
+<action>
+<name>GetIdleDisconnectTime</name>
+ <argumentList>
+ <argument>
+ <name>NewIdleDisconnectTime</name>
+ <direction>out</direction>
+ <relatedStateVariable>IdleDisconnectTime</relatedStateVariable>
+ </argument>
+ </argumentList>
+ </action>
+ <action>
+ <name>GetWarnDisconnectDelay</name>
+ <argumentList>
+ <argument>
+ <name>NewWarnDisconnectDelay</name>
+ <direction>out</direction>
+ <relatedStateVariable>WarnDisconnectDelay</relatedStateVariable>
+ </argument>
+ </argumentList>
+ </action>
+ <action>
+ <name>GetNATRSIPStatus</name>
+ <argumentList>
+ <argument>
+ <name>NewRSIPAvailable</name>
+ <direction>out</direction>
+ <relatedStateVariable>RSIPAvailable</relatedStateVariable>
+ </argument>
+ <argument>
+ <name>NewNATEnabled</name>
+ <direction>out</direction>
+ <relatedStateVariable>NATEnabled</relatedStateVariable>
+ </argument>
+ </argumentList>
+ </action>
+ <action>
+ <name>GetGenericPortMappingEntry</name>
+ <argumentList>
+ <argument>
+ <name>NewPortMappingIndex</name>
+ <direction>in</direction>
+<relatedStateVariable>PortMappingNumberOfEntries</relatedStateVariable>
+ </argument>
+ <argument>
+ <name>NewRemoteHost</name>
+ <direction>out</direction>
+ <relatedStateVariable>RemoteHost</relatedStateVariable>
+ </argument>
+ <argument>
+ <name>NewExternalPort</name>
+ <direction>out</direction>
+ <relatedStateVariable>ExternalPort</relatedStateVariable>
+ </argument>
+ <argument>
+ <name>NewProtocol</name>
+ <direction>out</direction>
+ <relatedStateVariable>PortMappingProtocol</relatedStateVariable>
+ </argument>
+ <argument>
+ <name>NewInternalPort</name>
+ <direction>out</direction>
+ <relatedStateVariable>InternalPort</relatedStateVariable>
+ </argument>
+ <argument>
+ <name>NewInternalClient</name>
+ <direction>out</direction>
+ <relatedStateVariable>InternalClient</relatedStateVariable>
+ </argument>
+ <argument>
+ <name>NewEnabled</name>
+ <direction>out</direction>
+<relatedStateVariable>PortMappingEnabled</relatedStateVariable>
+ </argument>
+ <argument>
+ <name>NewPortMappingDescription</name>
+ <direction>out</direction>
+ <relatedStateVariable>PortMappingDescription</relatedStateVariable>
+ </argument>
+ <argument>
+ <name>NewLeaseDuration</name>
+ <direction>out</direction>
+<relatedStateVariable>PortMappingLeaseDuration</relatedStateVariable>
+ </argument>
+ </argumentList>
+ </action>
+ <action>
+ <name>GetSpecificPortMappingEntry </name>
+ <argumentList>
+ <argument>
+ <name>NewRemoteHost</name>
+ <direction>in</direction>
+ <relatedStateVariable>RemoteHost</relatedStateVariable>
+ </argument>
+ <argument>
+ <name>NewExternalPort</name>
+ <direction>in</direction>
+ <relatedStateVariable>ExternalPort</relatedStateVariable>
+ </argument>
+ <argument>
+ <name>NewProtocol</name>
+ <direction>in</direction>
+ <relatedStateVariable>PortMappingProtocol</relatedStateVariable>
+ </argument>
+ <argument>
+ <name>NewInternalPort</name>
+ <direction>out</direction>
+ <relatedStateVariable>InternalPort</relatedStateVariable>
+ </argument>
+ <argument>
+ <name>NewInternalClient</name>
+ <direction>out</direction>
+ <relatedStateVariable>InternalClient</relatedStateVariable>
+ </argument>
+ <argument>
+ <name>NewEnabled</name>
+ <direction>out</direction>
+ <relatedStateVariable>PortMappingEnabled</relatedStateVariable>
+ </argument>
+ <argument>
+ <name>NewPortMappingDescription</name>
+ <direction>out</direction>
+ <relatedStateVariable>PortMappingDescription</relatedStateVariable>
+ </argument>
+ <argument>
+ <name>NewLeaseDuration</name>
+ <direction>out</direction>
+ <relatedStateVariable>PortMappingLeaseDuration</relatedStateVariable>
+ </argument>
+ </argumentList>
+ </action>
+ <action>
+ <name>AddPortMapping</name>
+ <argumentList>
+ <argument>
+ <name>NewRemoteHost</name>
+ <direction>in</direction>
+ <relatedStateVariable>RemoteHost</relatedStateVariable>
+ </argument>
+ <argument>
+ <name>NewExternalPort</name>
+ <direction>in</direction>
+ <relatedStateVariable>ExternalPort</relatedStateVariable>
+ </argument>
+ <argument>
+ <name>NewProtocol</name>
+ <direction>in</direction>
+ <relatedStateVariable>PortMappingProtocol</relatedStateVariable>
+ </argument>
+ <argument>
+ <name>NewInternalPort</name>
+ <direction>in</direction>
+ <relatedStateVariable>InternalPort</relatedStateVariable>
+ </argument>
+ <argument>
+ <name>NewInternalClient</name>
+ <direction>in</direction>
+ <relatedStateVariable>InternalClient</relatedStateVariable>
+ </argument>
+ <argument>
+ <name>NewEnabled</name>
+ <direction>in</direction>
+ <relatedStateVariable>PortMappingEnabled</relatedStateVariable>
+ </argument>
+ <argument>
+ <name>NewPortMappingDescription</name>
+ <direction>in</direction>
+<relatedStateVariable>PortMappingDescription</relatedStateVariable>
+ </argument>
+ <argument>
+ <name>NewLeaseDuration</name>
+ <direction>in</direction>
+<relatedStateVariable>PortMappingLeaseDuration</relatedStateVariable>
+ </argument>
+ </argumentList>
+ </action>
+ <action>
+ <name>DeletePortMapping</name>
+ <argumentList>
+ <argument>
+ <name>NewRemoteHost</name>
+ <direction>in</direction>
+ <relatedStateVariable>RemoteHost</relatedStateVariable>
+ </argument>
+ <argument>
+ <name>NewExternalPort</name>
+ <direction>in</direction>
+ <relatedStateVariable>ExternalPort</relatedStateVariable>
+ </argument>
+ <argument>
+ <name>NewProtocol</name>
+ <direction>in</direction>
+ <relatedStateVariable>PortMappingProtocol</relatedStateVariable>
+ </argument>
+ </argumentList>
+ </action>
+ <action>
+ <name>GetExternalIPAddress</name>
+ <argumentList>
+ <argument>
+ <name>NewExternalIPAddress</name>
+ <direction>out</direction>
+ <relatedStateVariable>ExternalIPAddress</relatedStateVariable>
+ </argument>
+ </argumentList>
+ </action>
+ <!-- Declarations for other actions added by UPnP vendor (if any) go here -->
+ </actionList>
+ <serviceStateTable>
+ <stateVariable sendEvents="no">
+ <name>ConnectionType</name>
+ <dataType>string</dataType>
+ </stateVariable>
+ <stateVariable sendEvents="yes">
+ <name>PossibleConnectionTypes</name>
+ <dataType>string</dataType>
+ <allowedValueList>
+ <allowedValue>Unconfigured</allowedValue>
+ <allowedValue>IP_Routed</allowedValue>
+ <allowedValue>IP_Bridged</allowedValue>
+ </allowedValueList>
+ </stateVariable>
+ <stateVariable sendEvents="yes">
+ <name>ConnectionStatus</name>
+ <dataType>string</dataType>
+ <allowedValueList>
+ <allowedValue>Unconfigured</allowedValue>
+ <allowedValue>Connecting</allowedValue>
+ <allowedValue>Connected</allowedValue>
+ <allowedValue>PendingDisconnect</allowedValue>
+ <allowedValue>Disconnecting</allowedValue>
+ <allowedValue>Disconnected</allowedValue>
+ </allowedValueList>
+</stateVariable>
+<stateVariable sendEvents="no">
+ <name>Uptime</name>
+ <dataType>ui4</dataType>
+</stateVariable>
+<stateVariable sendEvents="no">
+ <name>LastConnectionError</name>
+ <dataType>string</dataType>
+ <allowedValueList>
+ <allowedValue>ERROR_NONE</allowedValue>
+ <allowedValue>ERROR_COMMAND_ABORTED</allowedValue>
+ <allowedValue>ERROR_NOT_ENABLED_FOR_INTERNET</allowedValue>
+ <allowedValue>ERROR_USER_DISCONNECT</allowedValue>
+ <allowedValue>ERROR_ISP_DISCONNECT</allowedValue>
+ <allowedValue>ERROR_IDLE_DISCONNECT</allowedValue>
+ <allowedValue>ERROR_FORCED_DISCONNECT</allowedValue>
+ <allowedValue>ERROR_NO_CARRIER</allowedValue>
+ <allowedValue>ERROR_IP_CONFIGURATION</allowedValue>
+ <allowedValue>ERROR_UNKNOWN</allowedValue>
+ </allowedValueList>
+</stateVariable>
+ <stateVariable sendEvents="no">
+ <name>AutoDisconnectTime</name>
+ <dataType>ui4</dataType>
+</stateVariable>
+<stateVariable sendEvents="no">
+ <name>IdleDisconnectTime</name>
+ <dataType>ui4</dataType>
+</stateVariable>
+<stateVariable sendEvents="no">
+ <name>WarnDisconnectDelay</name>
+ <dataType>ui4</dataType>
+</stateVariable>
+<stateVariable sendEvents="no">
+ <name>RSIPAvailable</name>
+ <dataType>boolean</dataType>
+</stateVariable>
+<stateVariable sendEvents="no">
+ <name>NATEnabled</name>
+ <dataType>boolean</dataType>
+</stateVariable>
+<stateVariable sendEvents="yes">
+ <name>ExternalIPAddress</name>
+ <dataType>string</dataType>
+</stateVariable>
+<stateVariable sendEvents="yes">
+ <name>PortMappingNumberOfEntries</name>
+ <dataType>ui2</dataType>
+</stateVariable>
+<stateVariable sendEvents="no">
+ <name>PortMappingEnabled</name>
+ <dataType>boolean</dataType>
+</stateVariable>
+<stateVariable sendEvents="no">
+ <name>PortMappingLeaseDuration</name>
+ <dataType>ui4</dataType>
+ </stateVariable>
+ <stateVariable sendEvents="no">
+ <name>RemoteHost</name>
+ <dataType>string</dataType>
+ </stateVariable>
+ <stateVariable sendEvents="no">
+ <name>ExternalPort</name>
+ <dataType>ui2</dataType>
+ </stateVariable>
+ <stateVariable sendEvents="no">
+ <name>InternalPort</name>
+ <dataType>ui2</dataType>
+ </stateVariable>
+ <stateVariable sendEvents="no">
+ <name>PortMappingProtocol</name>
+ <dataType>string</dataType>
+ <allowedValueList>
+ <allowedValue>TCP</allowedValue>
+ <allowedValue>UDP</allowedValue>
+ </allowedValueList>
+ </stateVariable>
+ <stateVariable sendEvents="no">
+ <name>InternalClient</name>
+ <dataType>string</dataType>
+ </stateVariable>
+ <stateVariable sendEvents="no">
+ <name>PortMappingDescription</name>
+ <dataType>string</dataType>
+ </stateVariable>
+ <!-- Declarations for other state variables added by UPnP vendor (if any) go here -->
+ </serviceStateTable>
+</scpd>
--
1.5.6.5
More information about the farsight-commits
mailing list