var binaryPath string
var _ = SynchronizedBeforeSuite(func() []byte {
- binaryPath, err := gexec.Build("github.com/containernetworking/plugins/plugins/meta/portmap/echosvr")
+ binaryPath, err := gexec.Build("github.com/containernetworking/plugins/pkg/testutils/echosvr")
Expect(err).NotTo(HaveOccurred())
return []byte(binaryPath)
}, func(data []byte) {
func TestEchosvr(t *testing.T) {
RegisterFailHandler(Fail)
- RunSpecs(t, "Echosvr Suite")
+ RunSpecs(t, "Testutils Echosvr Suite")
}
+// Echosvr is a simple TCP echo server
+//
+// It prints its listen address on stdout
+// 127.0.0.1:xxxxx
+// A test should wait for this line, parse it
+// and may then attempt to connect.
package main
import (
var echoServerBinaryPath string
var _ = SynchronizedBeforeSuite(func() []byte {
- binaryPath, err := gexec.Build("github.com/containernetworking/plugins/plugins/meta/portmap/echosvr")
+ binaryPath, err := gexec.Build("github.com/containernetworking/plugins/pkg/testutils/echosvr")
Expect(err).NotTo(HaveOccurred())
return []byte(binaryPath)
}, func(data []byte) {