From 2e003e5404d34b0d2b8ebd8611c671f2da94e91e Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Thu, 16 Oct 2014 12:11:19 +0200 Subject: [PATCH] Remove out of date upnp tests --- internal/upnp/testdata/technicolor.xml | 93 -------------------------- internal/upnp/upnp_test.go | 32 --------- 2 files changed, 125 deletions(-) delete mode 100644 internal/upnp/testdata/technicolor.xml delete mode 100644 internal/upnp/upnp_test.go diff --git a/internal/upnp/testdata/technicolor.xml b/internal/upnp/testdata/technicolor.xml deleted file mode 100644 index 1f564441b..000000000 --- a/internal/upnp/testdata/technicolor.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - -1 -0 - -http://192.168.1.254:8000 - -urn:schemas-upnp-org:device:InternetGatewayDevice:1 -Technicolor TG784n v3 (1321RAWMS) -Technicolor -http://www.technicolor.com - -Technicolor Internet Gateway Device -Technicolor TG -784n v3 -http://www.technicolor.com -1321RAWMS -uuid:UPnP_Technicolor TG784n v3-1_A4-B1-E9-D8-F4-78 -/ - - -urn:schemas-upnp-org:service:Layer3Forwarding:1 -urn:upnp-org:serviceId:L3Forwarding1 -/hou74cq4tw9/IGD/upnp/control/igd/layer3f -/hou74cq4tw9/IGD/upnp/event/igd/layer3f -/hou74cq4tw9/IGD/upnp/Layer3Forwarding.xml - - - - -urn:schemas-upnp-org:device:LANDevice:1 -LANDevice -Technicolor -Technicolor TG784n v3 -A4-B1-E9-D8-F4-78 -uuid:UPnP_Technicolor TG784n v3-1_A4-B1-E9-D8-F4-78_LD_1 - - -urn:schemas-upnp-org:service:LANHostConfigManagement:1 -urn:upnp-org:serviceId:LANHostCfg1 -/hou74cq4tw9/IGD/upnp/control/igd/lanhcm_1 - -/hou74cq4tw9/IGD/upnp/LANHostConfigManagement.xml - - - - -urn:schemas-upnp-org:device:WANDevice:1 -WANDevice -Technicolor -Technicolor TG784n v3 -A4-B1-E9-D8-F4-78 -uuid:UPnP_Technicolor TG784n v3-1_A4-B1-E9-D8-F4-78_WD_1 - - -urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1 -urn:upnp-org:serviceId:WANCommonIFC1 -/hou74cq4tw9/IGD/upnp/control/igd/wancic_1 -/hou74cq4tw9/IGD/upnp/event/igd/wancic_1 -/hou74cq4tw9/IGD/upnp/WANCommonInterfaceConfig.xml - - - - -urn:schemas-upnp-org:device:WANConnectionDevice:1 -WANConnectionDevice -Technicolor -Technicolor TG784n v3 -A4-B1-E9-D8-F4-78 -uuid:UPnP_Technicolor TG784n v3-1_A4-B1-E9-D8-F4-78_WCD_1_1 - - -urn:schemas-upnp-org:service:WANDSLLinkConfig:1 -urn:upnp-org:serviceId:WANDSLLinkC1 -/hou74cq4tw9/IGD/upnp/control/igd/wandsllc_1_1 -/hou74cq4tw9/IGD/upnp/event/igd/wandsllc_1_1 -/hou74cq4tw9/IGD/upnp/WANDSLLinkConfig.xml - - -urn:schemas-upnp-org:service:WANPPPConnection:1 -urn:upnp-org:serviceId:WANPPPConn1 -/hou74cq4tw9/IGD/upnp/control/igd/wanpppc_1_1_1 -/hou74cq4tw9/IGD/upnp/event/igd/wanpppc_1_1_1 -/hou74cq4tw9/IGD/upnp/WANPPPConnection.xml - - - - - - - - diff --git a/internal/upnp/upnp_test.go b/internal/upnp/upnp_test.go deleted file mode 100644 index 2c477a0b8..000000000 --- a/internal/upnp/upnp_test.go +++ /dev/null @@ -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 . - -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) - } -}