Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HeketiMockTestServer ¶
Heketi test service metadata
func NewHeketiMockTestServer ¶
func NewHeketiMockTestServer( config *HeketiMockTestServerConfig) *HeketiMockTestServer
Create a Heketi mock server
Example:
c := &heketitest.HeketiMockTestServerConfig{ Auth: true, AdminKey: "admin", UserKey: "user", Logging: false, } h := heketitest.NewHeketiMockTestServer(c) defer h.Close()
func NewHeketiMockTestServerDefault ¶
func NewHeketiMockTestServerDefault() *HeketiMockTestServer
Create a simple Heketi mock server
Example:
h := heketitest.NewHeketiMockTestServerDefault() defer h.Close()
func (*HeketiMockTestServer) Close ¶
func (h *HeketiMockTestServer) Close()
Close database and other services
func (*HeketiMockTestServer) HttpServer ¶
func (h *HeketiMockTestServer) HttpServer() *httptest.Server
Get http test service struct
func (*HeketiMockTestServer) URL ¶
func (h *HeketiMockTestServer) URL() string
Get URL to test server
Click to show internal directories.
Click to hide internal directories.