testing

package
v0.0.0-...-f19ae85 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2015 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseHostPort

func ParseHostPort(s string) (network.HostPort, error)

Types

type AgentSuite

type AgentSuite struct {
	testing.JujuConnSuite
	// contains filtered or unexported fields
}

agentSuite is a fixture to be used by agent test suites.

func (*AgentSuite) AssertCanOpenState

func (s *AgentSuite) AssertCanOpenState(c *gc.C, tag names.Tag, dataDir string)

func (*AgentSuite) AssertCannotOpenState

func (s *AgentSuite) AssertCannotOpenState(c *gc.C, tag names.Tag, dataDir string)

func (*AgentSuite) InitAgent

func (s *AgentSuite) InitAgent(c *gc.C, a cmd.Command, args ...string)

InitAgent initialises the given agent command with additional arguments as provided.

func (*AgentSuite) PrimeAgent

func (s *AgentSuite) PrimeAgent(c *gc.C, tag names.Tag, password string, vers version.Binary) (agent.ConfigSetterWriter, *coretools.Tools)

PrimeAgent writes the configuration file and tools with version vers for an agent with the given entity name. It returns the agent's configuration and the current tools.

type FakeEnsure

type FakeEnsure struct {
	EnsureCount    int
	InitiateCount  int
	DataDir        string
	Namespace      string
	OplogSize      int
	Info           state.StateServingInfo
	InitiateParams peergrouper.InitiateMongoParams
	Err            error
}

func (*FakeEnsure) FakeEnsureMongo

func (f *FakeEnsure) FakeEnsureMongo(args mongo.EnsureServerParams) error

func (*FakeEnsure) FakeInitiateMongo

func (f *FakeEnsure) FakeInitiateMongo(p peergrouper.InitiateMongoParams) error

Jump to

Keyboard shortcuts

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