juju: github.com/juju/juju/apiserver/websocket/websockettest Index | Files

package websockettest

import "github.com/juju/juju/apiserver/websocket/websockettest"

Index

Package Files

errors.go

func AssertJSONError Uses

func AssertJSONError(c *gc.C, ws *websocket.Conn, expected string)

AssertJSONError checks the JSON encoded error returned by the log and logsink APIs matches the expected value.

func AssertJSONInitialErrorNil Uses

func AssertJSONInitialErrorNil(c *gc.C, ws *websocket.Conn)

AssertJSONInitialErrorNil checks the JSON encoded error returned by the log and logsink APIs are nil.

func AssertWebsocketClosed Uses

func AssertWebsocketClosed(c *gc.C, ws *websocket.Conn)

AssertWebsocketClosed checks that the given websocket connection is closed.

func ReadJSONErrorLine Uses

func ReadJSONErrorLine(c *gc.C, ws *websocket.Conn) params.ErrorResult

ReadJSONErrorLine returns the error line returned by the log and logsink APIS.

Package websockettest imports 6 packages (graph). Updated 2017-07-03. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).