Documentation
¶
Index ¶
- Constants
- func AddConfig(t *testing.T, jsonCfg string, node TestbedNode)
- func ApplyDesiredConfig(t *testing.T, jsonCfg string, node TestbedNode)
- func ApplyHostBindingsConfig(t *testing.T, jsonCfg string, node TestbedNode)
- func ConfigCleanupCommon(t *testing.T, nodes []TestbedNode)
- func ConfigSetupCommon(t *testing.T, jsonCfg string, nodes []TestbedNode)
- func DelConfig(t *testing.T, jsonCfg string, node TestbedNode)
- func DockerCleanup(t *testing.T, node TestbedNode, contName string)
- func DockerCleanupWithEnv(t *testing.T, node TestbedNode, contName string, env []string)
- func DumpNetpluginLogs(node TestbedNode)
- func FixUpContainerUUIDs(t *testing.T, nodes []TestbedNode, jsonCfg string) (string, error)
- func FixUpInfraContainerUUIDs(t *testing.T, nodes []TestbedNode, jsonCfg, infraContCfg string) (string, error)
- func GetCfgFile(fileName string) string
- func GetIpAddress(t *testing.T, node TestbedNode, ep string) string
- func GetIpAddressFromNetworkAndContainerName(t *testing.T, node TestbedNode, netId, contName string) string
- func NetworkStateExists(node TestbedNode, network string) error
- func OkToCleanup(testFailed bool) bool
- func OvsDumpInfo(node TestbedNode)
- func StartClient(t *testing.T, node TestbedNode, contName, ipAddress string)
- func StartClientFailure(t *testing.T, node TestbedNode, contName, ipAddress string)
- func StartClientFailureWithEnvAndArgs(t *testing.T, node TestbedNode, contName, ipAddress string, ...)
- func StartClientWithEnvAndArgs(t *testing.T, node TestbedNode, contName, ipAddress string, ...)
- func StartNetPlugin(t *testing.T, nodes []TestbedNode, nativeInteg bool)
- func StartPowerStripAdapter(t *testing.T, nodes []TestbedNode)
- func StartServer(t *testing.T, node TestbedNode, contName string)
- func StartServerWithEnvAndArgs(t *testing.T, node TestbedNode, contName string, env, dockerArgs []string)
- func StopOnError(testFailed bool)
- type Dind
- type DindNode
- type TempFileCtx
- type TestCommand
- type Testbed
- type TestbedNode
- type Vagrant
- type VagrantCommand
- type VagrantNode
Constants ¶
View Source
const (
EXAMPLES_DIR = "/src/github.com/contiv/netplugin/examples/"
)
Variables ¶
This section is empty.
Functions ¶
func ApplyDesiredConfig ¶
func ApplyDesiredConfig(t *testing.T, jsonCfg string, node TestbedNode)
func ApplyHostBindingsConfig ¶
func ApplyHostBindingsConfig(t *testing.T, jsonCfg string, node TestbedNode)
func ConfigCleanupCommon ¶
func ConfigCleanupCommon(t *testing.T, nodes []TestbedNode)
func ConfigSetupCommon ¶
func ConfigSetupCommon(t *testing.T, jsonCfg string, nodes []TestbedNode)
func DockerCleanup ¶
func DockerCleanup(t *testing.T, node TestbedNode, contName string)
func DockerCleanupWithEnv ¶
func DockerCleanupWithEnv(t *testing.T, node TestbedNode, contName string, env []string)
func DumpNetpluginLogs ¶
func DumpNetpluginLogs(node TestbedNode)
func FixUpContainerUUIDs ¶
func GetCfgFile ¶
func GetIpAddress ¶
func GetIpAddress(t *testing.T, node TestbedNode, ep string) string
func GetIpAddressFromNetworkAndContainerName ¶
func GetIpAddressFromNetworkAndContainerName(t *testing.T, node TestbedNode, netId, contName string) string
XXX: used for powerstrip/docker integration testing where ep-name is derived by concatanating net-id to container-id
func NetworkStateExists ¶
func NetworkStateExists(node TestbedNode, network string) error
func OkToCleanup ¶
func OvsDumpInfo ¶
func OvsDumpInfo(node TestbedNode)
func StartClient ¶
func StartClient(t *testing.T, node TestbedNode, contName, ipAddress string)
func StartClientFailure ¶
func StartClientFailure(t *testing.T, node TestbedNode, contName, ipAddress string)
func StartClientFailureWithEnvAndArgs ¶
func StartClientFailureWithEnvAndArgs(t *testing.T, node TestbedNode, contName, ipAddress string, env, dockerArgs []string)
func StartClientWithEnvAndArgs ¶
func StartClientWithEnvAndArgs(t *testing.T, node TestbedNode, contName, ipAddress string, env, dockerArgs []string)
func StartNetPlugin ¶
func StartNetPlugin(t *testing.T, nodes []TestbedNode, nativeInteg bool)
func StartPowerStripAdapter ¶
func StartPowerStripAdapter(t *testing.T, nodes []TestbedNode)
func StartServer ¶
func StartServer(t *testing.T, node TestbedNode, contName string)
func StartServerWithEnvAndArgs ¶
func StartServerWithEnvAndArgs(t *testing.T, node TestbedNode, contName string, env, dockerArgs []string)
func StopOnError ¶
func StopOnError(testFailed bool)
Types ¶
type Dind ¶
type Dind struct {
// contains filtered or unexported fields
}
func (*Dind) GetNodes ¶
func (v *Dind) GetNodes() []TestbedNode
type TempFileCtx ¶
type TempFileCtx struct {
// contains filtered or unexported fields
}
func (*TempFileCtx) AddFile ¶
func (ctx *TempFileCtx) AddFile(fileContents string) (*os.File, error)
func (*TempFileCtx) Destroy ¶
func (ctx *TempFileCtx) Destroy()
type TestCommand ¶
func (*TestCommand) RunWithOutput ¶
func (c *TestCommand) RunWithOutput(cmd string, args ...string) ([]byte, error)
type Testbed ¶
type Testbed interface { Setup(env string, numNodes int) error Teardown() GetNodes() []TestbedNode }
type TestbedNode ¶
type Vagrant ¶
type Vagrant struct {
// contains filtered or unexported fields
}
func (*Vagrant) GetNodes ¶
func (v *Vagrant) GetNodes() []TestbedNode
type VagrantCommand ¶
func (*VagrantCommand) RunWithOutput ¶
func (c *VagrantCommand) RunWithOutput(cmd string, args ...string) ([]byte, error)
type VagrantNode ¶
func (VagrantNode) GetName ¶
func (n VagrantNode) GetName() string
func (VagrantNode) RunCommand ¶
func (n VagrantNode) RunCommand(cmd string) error
func (VagrantNode) RunCommandBackground ¶
func (n VagrantNode) RunCommandBackground(cmd string) (string, error)
func (VagrantNode) RunCommandWithOutput ¶
func (n VagrantNode) RunCommandWithOutput(cmd string) (string, error)
Click to show internal directories.
Click to hide internal directories.