Documentation ¶
Index ¶
Constants ¶
View Source
const ( // If params.AuthUsername or params.AuthPassword are empty, // AuthUsername and AuthPassword will be used. AuthUsername = "charmstore-testing-user" AuthPassword = "charmstore-testing-password" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a charm store testing server.
func OpenServer ¶
OpenServer instantiates a new charm store server instance. Callers are responsible of closing the server by calling Close().
func (*Server) NewClient ¶
NewClient returns a new client that will talk to the Server using basic (non-macaroon) authentication.
func (*Server) UploadCharm ¶
func (s *Server) UploadCharm(c *gc.C, ch charm.Charm, id *charm.Reference, promulgated bool) *charm.Reference
UploadCharm uploads the given charm to the testing charm store. The given id must include the charm user, series and revision. If promulgated is true, the charm will be promulgated.
Click to show internal directories.
Click to hide internal directories.