tests

package
v2.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewZConClient added in v2.2.9

func NewZConClient() (*zcon.Client, error)

func NewZiaClient

func NewZiaClient() (*zia.Client, error)

func NewZpaClient

func NewZpaClient() (*zpa.Client, error)

func NewZpaClientMock

func NewZpaClientMock() (*zpa.Client, *http.ServeMux, *httptest.Server)

func ParseJSONRequest

func ParseJSONRequest(t *testing.T, r *http.Request, v interface{}) error

ParseJSONRequest parses the JSON request body from the given HTTP request.

func TestPassword added in v2.3.8

func TestPassword(length int) string

func WriteJSONResponse

func WriteJSONResponse(t *testing.T, w http.ResponseWriter, statusCode int, data interface{}) error

WriteJSONResponse writes the JSON response with the given status code and data to the HTTP response writer.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL