testutil

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskForRPT

func AskForRPT(t *testing.T, kc *rp.KeycloakClient, accessTokens map[string]string, username, method, uri, rptToUpdate string) (rpt string)

func AssertPermissionNotGranted

func AssertPermissionNotGranted(t *testing.T, kc *rp.KeycloakClient, accessTokens map[string]string, username, method, uri string)

func AssertResponse added in v0.2.2

func AssertResponse(t *testing.T, method, uri, accessToken string, statusCode int, contentType, content string)

func AssertResponseStatus

func AssertResponseStatus(t *testing.T, method, uri, accessToken string, statusCode int)

func CreateKeycloakRPClient

func CreateKeycloakRPClient(t *testing.T, client *http.Client) *rp.KeycloakClient

func DoRequest added in v0.2.2

func DoRequest(t *testing.T, method, uri, accessToken string) *http.Response

func RecordHTTP

func RecordHTTP(t *testing.T, name string, update bool) (client *http.Client, stop func() error)

func RequestRPT

func RequestRPT(t *testing.T, kc *rp.KeycloakClient, accessTokens map[string]string, username, method, uri, rptToUpdate string) (rpt string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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