Forráskód Böngészése

Remove out of date upnp tests

Jakob Borg 11 éve
szülő
commit
2e003e5404
2 módosított fájl, 0 hozzáadás és 125 törlés
  1. 0 93
      internal/upnp/testdata/technicolor.xml
  2. 0 32
      internal/upnp/upnp_test.go

+ 0 - 93
internal/upnp/testdata/technicolor.xml

@@ -1,93 +0,0 @@
-<?xml version="1.0"?>
-<root xmlns="urn:schemas-upnp-org:device-1-0">
-<specVersion>
-<major>1</major>
-<minor>0</minor>
-</specVersion>
-<URLBase>http://192.168.1.254:8000</URLBase>
-<device>
-<deviceType>urn:schemas-upnp-org:device:InternetGatewayDevice:1</deviceType>
-<friendlyName>Technicolor TG784n v3 (1321RAWMS)</friendlyName>
-<manufacturer>Technicolor</manufacturer>
-<manufacturerURL>http://www.technicolor.com
-</manufacturerURL>
-<modelDescription>Technicolor Internet Gateway Device</modelDescription>
-<modelName>Technicolor TG</modelName>
-<modelNumber>784n v3</modelNumber>
-<modelURL>http://www.technicolor.com</modelURL>
-<serialNumber>1321RAWMS</serialNumber>
-<UDN>uuid:UPnP_Technicolor TG784n v3-1_A4-B1-E9-D8-F4-78</UDN>
-<presentationURL>/</presentationURL>
-<serviceList>
-<service>
-<serviceType>urn:schemas-upnp-org:service:Layer3Forwarding:1</serviceType>
-<serviceId>urn:upnp-org:serviceId:L3Forwarding1</serviceId>
-<controlURL>/hou74cq4tw9/IGD/upnp/control/igd/layer3f</controlURL>
-<eventSubURL>/hou74cq4tw9/IGD/upnp/event/igd/layer3f</eventSubURL>
-<SCPDURL>/hou74cq4tw9/IGD/upnp/Layer3Forwarding.xml</SCPDURL>
-</service>
-</serviceList>
-<deviceList>
-<device>
-<deviceType>urn:schemas-upnp-org:device:LANDevice:1</deviceType>
-<friendlyName>LANDevice</friendlyName>
-<manufacturer>Technicolor</manufacturer>
-<modelName>Technicolor TG784n v3</modelName>
-<serialNumber>A4-B1-E9-D8-F4-78</serialNumber>
-<UDN>uuid:UPnP_Technicolor TG784n v3-1_A4-B1-E9-D8-F4-78_LD_1</UDN>
-<serviceList>
-<service>
-<serviceType>urn:schemas-upnp-org:service:LANHostConfigManagement:1</serviceType>
-<serviceId>urn:upnp-org:serviceId:LANHostCfg1</serviceId>
-<controlURL>/hou74cq4tw9/IGD/upnp/control/igd/lanhcm_1</controlURL>
-<eventSubURL></eventSubURL>
-<SCPDURL>/hou74cq4tw9/IGD/upnp/LANHostConfigManagement.xml</SCPDURL>
-</service>
-</serviceList>
-</device>
-<device>
-<deviceType>urn:schemas-upnp-org:device:WANDevice:1</deviceType>
-<friendlyName>WANDevice</friendlyName>
-<manufacturer>Technicolor</manufacturer>
-<modelName>Technicolor TG784n v3</modelName>
-<serialNumber>A4-B1-E9-D8-F4-78</serialNumber>
-<UDN>uuid:UPnP_Technicolor TG784n v3-1_A4-B1-E9-D8-F4-78_WD_1</UDN>
-<serviceList>
-<service>
-<serviceType>urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1</serviceType>
-<serviceId>urn:upnp-org:serviceId:WANCommonIFC1</serviceId>
-<controlURL>/hou74cq4tw9/IGD/upnp/control/igd/wancic_1</controlURL>
-<eventSubURL>/hou74cq4tw9/IGD/upnp/event/igd/wancic_1</eventSubURL>
-<SCPDURL>/hou74cq4tw9/IGD/upnp/WANCommonInterfaceConfig.xml</SCPDURL>
-</service>
-</serviceList>
-<deviceList>
-<device>
-<deviceType>urn:schemas-upnp-org:device:WANConnectionDevice:1</deviceType>
-<friendlyName>WANConnectionDevice</friendlyName>
-<manufacturer>Technicolor</manufacturer>
-<modelName>Technicolor TG784n v3</modelName>
-<serialNumber>A4-B1-E9-D8-F4-78</serialNumber>
-<UDN>uuid:UPnP_Technicolor TG784n v3-1_A4-B1-E9-D8-F4-78_WCD_1_1</UDN>
-<serviceList>
-<service>
-<serviceType>urn:schemas-upnp-org:service:WANDSLLinkConfig:1</serviceType>
-<serviceId>urn:upnp-org:serviceId:WANDSLLinkC1</serviceId>
-<controlURL>/hou74cq4tw9/IGD/upnp/control/igd/wandsllc_1_1</controlURL>
-<eventSubURL>/hou74cq4tw9/IGD/upnp/event/igd/wandsllc_1_1</eventSubURL>
-<SCPDURL>/hou74cq4tw9/IGD/upnp/WANDSLLinkConfig.xml</SCPDURL>
-</service>
-<service>
-<serviceType>urn:schemas-upnp-org:service:WANPPPConnection:1</serviceType>
-<serviceId>urn:upnp-org:serviceId:WANPPPConn1</serviceId>
-<controlURL>/hou74cq4tw9/IGD/upnp/control/igd/wanpppc_1_1_1</controlURL>
-<eventSubURL>/hou74cq4tw9/IGD/upnp/event/igd/wanpppc_1_1_1</eventSubURL>
-<SCPDURL>/hou74cq4tw9/IGD/upnp/WANPPPConnection.xml</SCPDURL>
-</service>
-</serviceList>
-</device>
-</deviceList>
-</device>
-</deviceList>
-</device>
-</root>

+ 0 - 32
internal/upnp/upnp_test.go

@@ -1,32 +0,0 @@
-// Copyright (C) 2014 Jakob Borg and Contributors (see the CONTRIBUTORS file).
-//
-// This program is free software: you can redistribute it and/or modify it
-// under the terms of the GNU General Public License as published by the Free
-// Software Foundation, either version 3 of the License, or (at your option)
-// any later version.
-//
-// This program is distributed in the hope that it will be useful, but WITHOUT
-// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
-// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
-// more details.
-//
-// You should have received a copy of the GNU General Public License along
-// with this program. If not, see <http://www.gnu.org/licenses/>.
-
-package upnp
-
-import (
-	"os"
-	"testing"
-)
-
-func TestGetTechnicolorRootURL(t *testing.T) {
-	r, _ := os.Open("testdata/technicolor.xml")
-	_, action, err := getServiceURLReader("http://localhost:1234/", r)
-	if err != nil {
-		t.Fatal(err)
-	}
-	if action != "urn:schemas-upnp-org:service:WANPPPConnection:1" {
-		t.Error("Unexpected action", action)
-	}
-}