juju: github.com/juju/juju/cmd/jujud/agent/engine/enginetest Index | Files

package enginetest

import "github.com/juju/juju/cmd/jujud/agent/engine/enginetest"

Index

Package Files

agentapimanifold.go

func AgentAPIManifoldTestConfig Uses

func AgentAPIManifoldTestConfig() engine.AgentAPIManifoldConfig

AgentAPIManifoldTestConfig returns a AgentAPIManifoldConfig suitable for use with RunAgentAPIManifold.

func RunAgentAPIManifold Uses

func RunAgentAPIManifold(
    manifold dependency.Manifold, agent agent.Agent, apiCaller base.APICaller,
) (worker.Worker, error)

RunAgentAPIManifold is useful for testing manifolds based on AgentAPIManifold. It takes the manifold, sets up the resources required to successfully pass AgentAPIManifold's checks and then runs the manifold start func.

An agent and apiCaller may be optionally provided. If they are nil, dummy barely-good-enough defaults will be used (these dummies are fine not actually used for much).

Package enginetest imports 7 packages (graph). Updated 2018-08-13. Refresh now. Tools for package owners.