Handle WANPPPConnection devices (fixes #431)
This commit is contained in:
17
upnp/upnp_test.go
Normal file
17
upnp/upnp_test.go
Normal file
@@ -0,0 +1,17 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user