You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/agent/structs/testing_catalog.go

23 lines
537 B

package structs
import (
"github.com/mitchellh/go-testing-interface"
)
// TestRegisterRequestProxy returns a RegisterRequest for registering a
// Connect proxy.
func TestRegisterRequestProxy(t testing.T) *RegisterRequest {
return &RegisterRequest{
Datacenter: "dc1",
Node: "foo",
Address: "127.0.0.1",
Service: &NodeService{
Kind: ServiceKindConnectProxy,
Service: ConnectProxyServiceName,
Address: "127.0.0.2",
Port: 2222,
ProxyDestination: "web",
},
}
}