Versions in this module Expand all Collapse all v0 v0.6.0 Jun 13, 2024 Changes in this version + var CognitoApiUrl = fmt.Sprintf("https://cognito-idp.%s.amazonaws.com/", awstestsupport.TestAwsRegion) + func AdminAddUserToGroupResponse() []byte + func AdminGetUserResponse(principalId, email string) []byte + func AdminRemoveUserFromGroupResponse() []byte + func ListGroupsResponse(groupNames ...string) []byte + func ListUserPoolsResponse() []byte + func ListUsersInGroupResponse(principalIds ...string) []byte + func ListUsersResponse(principalId string) []byte + func WithResourceServer() cognitoidentityprovider.ListResourceServersOutput + func WithResourceServerOptions(userPoolId, name, identifier string) cognitoidentityprovider.ListResourceServersOutput + type MockCognitoHTTPClient struct + func NewMockCognitoHTTPClient() *MockCognitoHTTPClient + func (m *MockCognitoHTTPClient) AddRequest(method, url, apiOp string, statusCode int, responseBody []byte) + func (m *MockCognitoHTTPClient) Do(req *http.Request) (*http.Response, error) + func (m *MockCognitoHTTPClient) Get(url string) (resp *http.Response, err error) + func (m *MockCognitoHTTPClient) GetRequestBody(method, url, serviceOp string) []byte + func (m *MockCognitoHTTPClient) GetRequestBodyByIndex(method, url, serviceOp string, reqIndex int) []byte + func (m *MockCognitoHTTPClient) MockAdminAddUserToGroup() + func (m *MockCognitoHTTPClient) MockAdminAddUserToGroupWithHttpStatus(httpStatus int) + func (m *MockCognitoHTTPClient) MockAdminGetUser(userName, email string) + func (m *MockCognitoHTTPClient) MockAdminRemoveUserFromGroup() + func (m *MockCognitoHTTPClient) MockAdminRemoveUserFromGroupWithHttpStatus(httpStatus int) + func (m *MockCognitoHTTPClient) MockListGroups(groupNames ...string) + func (m *MockCognitoHTTPClient) MockListGroupsWithHttpStatus(httpStatus int, groupNames ...string) + func (m *MockCognitoHTTPClient) MockListResourceServers(withResp cognitoidentityprovider.ListResourceServersOutput) + func (m *MockCognitoHTTPClient) MockListResourceServersWithHttpStatus(httpStatus int, withResp cognitoidentityprovider.ListResourceServersOutput) + func (m *MockCognitoHTTPClient) MockListUserPools() + func (m *MockCognitoHTTPClient) MockListUserPoolsWithHttpStatus(httpStatus int) + func (m *MockCognitoHTTPClient) MockListUsers(principalId string) + func (m *MockCognitoHTTPClient) MockListUsersInGroup(userName ...string) + func (m *MockCognitoHTTPClient) MockListUsersInGroupWithHttpStatus(httpStatus int, userName ...string) + func (m *MockCognitoHTTPClient) Post(url, _ string, body io.Reader) (resp *http.Response, err error) + func (m *MockCognitoHTTPClient) VerifyCalled() bool