open-consul/agent/structs/testing_service_definition.go
2018-06-14 09:41:48 -07:00

14 lines
315 B
Go

package structs
import (
"github.com/mitchellh/go-testing-interface"
)
// TestServiceDefinitionProxy returns a ServiceDefinition for a proxy.
func TestServiceDefinitionProxy(t testing.T) *ServiceDefinition {
return &ServiceDefinition{
Kind: ServiceKindConnectProxy,
ProxyDestination: "db",
}
}