integrationtest

package
v0.0.0-...-272fd9e Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ZKTest

type ZKTest struct {
	Desc      string
	Callbacks zkTestCallbacks
	QuerySize int   // Default query size for paged query
	Err       error // not nil: error occured during the test
}

ZKTest - Zookeeper test control structure, it implements go.int

func NewZKClientNameTest

func NewZKClientNameTest(setup ZKTestSetup) *ZKTest

NewZKClientNameTest creates a new happy path test case

func NewZKDeleteElectionRaceTest

func NewZKDeleteElectionRaceTest(setup ZKTestSetup) *ZKTest

NewZKDeleteElectionRaceTest creates a new happy path test case

func NewZKDeleteMissingElectionTest

func NewZKDeleteMissingElectionTest(setup ZKTestSetup) *ZKTest

NewZKHappyPathTest creates a new happy path test case

func NewZKFollowerResignationTest

func NewZKFollowerResignationTest(setup ZKTestSetup) *ZKTest

NewZKFollowerResignationTest creates a new happy path test case

func NewZKHappyPathTest

func NewZKHappyPathTest(setup ZKTestSetup) *ZKTest

NewZKHappyPathTest creates a new happy path test case

func NewZKLeaderResignationTest

func NewZKLeaderResignationTest(setup ZKTestSetup) *ZKTest

NewZKLeaderResignationTest creates a new happy path test case

func (*ZKTest) Go

func (test *ZKTest) Go(wg *sync.WaitGroup)

Go - implement goint interface.

func (*ZKTest) Report

func (test *ZKTest) Report(dep int) error

Report - implement goint inteface

type ZKTestSetup

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

ZKTestSetup - test setup

Directories

Path Synopsis
The goal of this mock worker is to simulate the behavior of a client who is the leader crashing and a follower client picking up the same work.
The goal of this mock worker is to simulate the behavior of a client who is the leader crashing and a follower client picking up the same work.

Jump to

Keyboard shortcuts

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