tests

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOneAPIClient

func NewOneAPIClient() (*zscaler.Service, error)

NewOneAPIClient instantiates a new OneAPI client for testing

func NewZConClient

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

func NewZdxClient

func NewZdxClient() (*zdx.Client, error)

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

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