Documentation ¶
Index ¶
- Constants
- Variables
- func AddTestSelfUserContext(next http.HandlerFunc) http.HandlerFunc
- func AddTestUserContext(next http.HandlerFunc) http.HandlerFunc
- func AddTestUserContextWS(...) http.HandlerFunc
- func GetReqWithBody(t *testing.T, body interface{}) *http.Request
- func GetTotpCode(secret string) string
Constants ¶
View Source
const ( MockOrgID = "153f7582-5ae2-46ba-8c1c-79ef73fe296e" MockUserID = "13c45cfb-72ca-4177-b968-03604cab6a27" MockTrasaID = "root" MockTrasaID2 = "bhbha@gmail.com" MocktrasaPass = "changeme" MocktrasaPass2 = "Changeme@123" MocktotpSEC = "AV2COXZHVG4OAFSF" MockupstreamUser = "root" MockupstreamPass = "root" MockHostCert = `` /* 160-byte string literal not displayed */ MockPrivateKey = `` /* 2621-byte string literal not displayed */ )
Variables ¶
View Source
var MockPrivateKey2 = `` /* 2621-byte string literal not displayed */
Functions ¶
func AddTestSelfUserContext ¶ added in v1.1.2
func AddTestSelfUserContext(next http.HandlerFunc) http.HandlerFunc
AddTestUserContext is a middleware that adds mock userContext
func AddTestUserContext ¶
func AddTestUserContext(next http.HandlerFunc) http.HandlerFunc
AddTestUserContext is a middleware that adds mock userContext
func AddTestUserContextWS ¶
func AddTestUserContextWS(next func(params models.ConnectionParams, uc models.UserContext, ws *websocket.Conn)) http.HandlerFunc
AddTestUserContextWS is a middleware that adds mock userContext to ws handlers
func GetTotpCode ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.