testutils

package
v0.5.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Curl added in v0.5.1

func Curl(args string) ([]byte, error)

func DeclareTestConditions added in v0.5.1

func DeclareTestConditions()

func GenerateDebugAttachment

func GenerateDebugAttachment(name, namespace, dbgger, image, pod, container, processName string) v1.DebugAttachment

func GenerateDebugAttachmentDlv1

func GenerateDebugAttachmentDlv1(name, namespace string) v1.DebugAttachment

func MachineDebugArgs added in v0.5.1

func MachineDebugArgs(debugger, ns, podName string) string

func Must

func Must(err error)

func Squashctl added in v0.5.1

func Squashctl(args string) error

func SquashctlOut added in v0.5.1

func SquashctlOut(args string) (string, error)

Types

type Counter

type Counter struct {
	// contains filtered or unexported fields
}

func ExpectCounts

func ExpectCounts(params E2eParams, name string) *Counter

func (*Counter) Attachments

func (c *Counter) Attachments(val int) *Counter

func (*Counter) PendingAttachments

func (c *Counter) PendingAttachments(val int) *Counter

func (*Counter) PendingDeletes

func (c *Counter) PendingDeletes(val int) *Counter

func (*Counter) RequestingAttachments

func (c *Counter) RequestingAttachments(val int) *Counter

func (*Counter) RequestingDeletes

func (c *Counter) RequestingDeletes(val int) *Counter

func (*Counter) SumPostAttachments

func (c *Counter) SumPostAttachments(val int) *Counter

func (*Counter) SumPreAttachments

func (c *Counter) SumPreAttachments(val int) *Counter

func (*Counter) Total

func (c *Counter) Total(val int) *Counter

type E2eParams

type E2eParams struct {
	DebugAttachmetName string

	Namespace string

	Squash         *Squash
	UserController actions.UserController
	KubeClient     *kubernetes.Clientset

	SquashPod               map[string]*v1.Pod
	Microservice1Pods       map[string]*v1.Pod
	Microservice2Pods       map[string]*v1.Pod
	CurrentMicroservicePod  *v1.Pod
	Current2MicroservicePod *v1.Pod
	// contains filtered or unexported fields
}

func NewE2eParams

func NewE2eParams(namespace, daName string, w io.Writer) E2eParams

func (*E2eParams) CleanupE2e

func (p *E2eParams) CleanupE2e()

func (*E2eParams) SetupE2e

func (p *E2eParams) SetupE2e()

type Squash

type Squash struct {
	Namespace string
	// contains filtered or unexported fields
}

func NewSquash

func NewSquash(k *kubecdl.Kubecdl) *Squash

func (*Squash) Delete

func (s *Squash) Delete(da *v1.DebugAttachment) error

func (*Squash) Wait

func (s *Squash) Wait(id string) (*v1.DebugAttachment, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL