Documentation ¶
Index ¶
- type AgentSuite
- func (s *AgentSuite) AssertCanOpenState(c *gc.C, tag names.Tag, dataDir string)
- func (s *AgentSuite) AssertCannotOpenState(c *gc.C, tag names.Tag, dataDir string)
- func (s *AgentSuite) InitAgent(c *gc.C, a cmd.Command, args ...string)
- func (s *AgentSuite) PrimeAgent(c *gc.C, tag names.Tag, password string, vers version.Binary) (agent.ConfigSetterWriter, *coretools.Tools)
- type FakeEnsureMongo
- func (f *FakeEnsureMongo) CurrentConfig(*mgo.Session) (*replicaset.Config, error)
- func (f *FakeEnsureMongo) EnsureMongo(args mongo.EnsureServerParams) error
- func (f *FakeEnsureMongo) InitiateMongo(p peergrouper.InitiateMongoParams) error
- func (f *FakeEnsureMongo) IsServiceInstalled(string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 (*AgentSuite) AssertCannotOpenState ¶
func (*AgentSuite) InitAgent ¶
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 FakeEnsureMongo ¶
type FakeEnsureMongo struct { EnsureCount int InitiateCount int DataDir string Namespace string OplogSize int Info state.StateServingInfo InitiateParams peergrouper.InitiateMongoParams Err error ServiceInstalled bool ReplicasetInitiated bool }
FakeEnsureMongo provides test fakes for the functions used to initialise MongoDB.
func InstallFakeEnsureMongo ¶
func InstallFakeEnsureMongo(suite patchingSuite) *FakeEnsureMongo
InstallFakeEnsureMongo creates a new FakeEnsureMongo, patching out replicaset.CurrentConfig and cmdutil.EnsureMongoServer.
func (*FakeEnsureMongo) CurrentConfig ¶
func (f *FakeEnsureMongo) CurrentConfig(*mgo.Session) (*replicaset.Config, error)
func (*FakeEnsureMongo) EnsureMongo ¶
func (f *FakeEnsureMongo) EnsureMongo(args mongo.EnsureServerParams) error
func (*FakeEnsureMongo) InitiateMongo ¶
func (f *FakeEnsureMongo) InitiateMongo(p peergrouper.InitiateMongoParams) error
func (*FakeEnsureMongo) IsServiceInstalled ¶
func (f *FakeEnsureMongo) IsServiceInstalled(string) (bool, error)
Click to show internal directories.
Click to hide internal directories.