Documentation
¶
Index ¶
- Constants
- type AdapterExercises
- func (s *AdapterExercises) RunAllTests(t *testing.T)
- func (s *AdapterExercises) RunTests(t *testing.T)
- func (s *AdapterExercises) TestAddApiKey(t *testing.T)
- func (s *AdapterExercises) TestAddOrganization(t *testing.T)
- func (s *AdapterExercises) TestAddPermissionToRole(t *testing.T)
- func (s *AdapterExercises) TestAddRole(t *testing.T)
- func (s *AdapterExercises) TestAddUser(t *testing.T)
- func (s *AdapterExercises) TestAddUserToRole(t *testing.T)
- func (s *AdapterExercises) TestDeleteApiKey(t *testing.T)
- func (s *AdapterExercises) TestGetApiKey(t *testing.T)
- func (s *AdapterExercises) TestGetOrganization(t *testing.T)
- func (s *AdapterExercises) TestGetOrganizationBySystemName(t *testing.T)
- func (s *AdapterExercises) TestGetUser(t *testing.T)
- func (s *AdapterExercises) TestGetUserByEmail(t *testing.T)
- func (s *AdapterExercises) TestRemoveAllRolesFromUser(t *testing.T)
- func (s *AdapterExercises) TestRemovePermissionFromRole(t *testing.T)
- func (s *AdapterExercises) TestRemoveUserFromRole(t *testing.T)
- func (s *AdapterExercises) TestUpdateUser(t *testing.T)
- type ManagmentServiceTestSuite
- func (s *ManagmentServiceTestSuite) AddOrganization(t *testing.T)
- func (s *ManagmentServiceTestSuite) AddPermissionToRole(t *testing.T)
- func (s *ManagmentServiceTestSuite) AddRole(t *testing.T)
- func (s *ManagmentServiceTestSuite) AddTwoFactorKey(t *testing.T)
- func (s *ManagmentServiceTestSuite) AddUser(t *testing.T)
- func (s *ManagmentServiceTestSuite) AddUserToRole(t *testing.T)
- func (s *ManagmentServiceTestSuite) DeleteRole(t *testing.T)
- func (s *ManagmentServiceTestSuite) GetOrganizationBySystemName(t *testing.T)
- func (s *ManagmentServiceTestSuite) GetUserByEmail(t *testing.T)
- func (s *ManagmentServiceTestSuite) GetUserByEmailPostUpdate(t *testing.T)
- func (s *ManagmentServiceTestSuite) LoginWithCorrectPasswordEnsureTwoFactorRequiredIsSet(t *testing.T)
- func (s *ManagmentServiceTestSuite) LoginWithIncorrectPassword(t *testing.T)
- func (s *ManagmentServiceTestSuite) RemovePermissionFromRole(t *testing.T)
- func (s *ManagmentServiceTestSuite) RemoveUserFromRole(t *testing.T)
- func (s *ManagmentServiceTestSuite) RunTests(t *testing.T)
- func (s *ManagmentServiceTestSuite) TestLoginWithCorrectPassword(t *testing.T)
- func (s *ManagmentServiceTestSuite) UndeleteRole(t *testing.T)
- func (s *ManagmentServiceTestSuite) UpdateOrganization(t *testing.T)
- func (s *ManagmentServiceTestSuite) UpdateRole(t *testing.T)
- func (s *ManagmentServiceTestSuite) UpdateUser(t *testing.T)
- func (s *ManagmentServiceTestSuite) UpdateUserSamePassword(t *testing.T)
- func (s *ManagmentServiceTestSuite) UpdateUserWithoutPassword(t *testing.T)
- func (s *ManagmentServiceTestSuite) UserAddApiKey(t *testing.T)
- func (s *ManagmentServiceTestSuite) UserDeleteApiKey(t *testing.T)
- func (s *ManagmentServiceTestSuite) UserGetByApiKey(t *testing.T)
- func (s *ManagmentServiceTestSuite) VerifyCorrectTwoFactorCode(t *testing.T)
- func (s *ManagmentServiceTestSuite) VerifyIncorrectTwoFactorCode(t *testing.T)
- type Organization
- type UserTestStruct
Constants ¶
View Source
const ( PermCanCreateRecord = "can_create_record" PermCanReadRecord = "can_read_record" PermCanUpdateRecord = "can_update_record" PermCanDeleteRecord = "can_delete_record" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdapterExercises ¶ added in v0.0.7
type AdapterExercises struct {
// contains filtered or unexported fields
}
func NewAdapterExercises ¶ added in v0.0.7
func NewAdapterExercises(db *sql.DB, adapter ubdata.DataAdapter) *AdapterExercises
func (*AdapterExercises) RunAllTests ¶ added in v0.0.7
func (s *AdapterExercises) RunAllTests(t *testing.T)
func (*AdapterExercises) RunTests ¶ added in v0.0.7
func (s *AdapterExercises) RunTests(t *testing.T)
func (*AdapterExercises) TestAddApiKey ¶ added in v0.0.18
func (s *AdapterExercises) TestAddApiKey(t *testing.T)
func (*AdapterExercises) TestAddOrganization ¶ added in v0.0.7
func (s *AdapterExercises) TestAddOrganization(t *testing.T)
func (*AdapterExercises) TestAddPermissionToRole ¶ added in v0.0.7
func (s *AdapterExercises) TestAddPermissionToRole(t *testing.T)
func (*AdapterExercises) TestAddRole ¶ added in v0.0.7
func (s *AdapterExercises) TestAddRole(t *testing.T)
func (*AdapterExercises) TestAddUser ¶ added in v0.0.7
func (s *AdapterExercises) TestAddUser(t *testing.T)
func (*AdapterExercises) TestAddUserToRole ¶ added in v0.0.7
func (s *AdapterExercises) TestAddUserToRole(t *testing.T)
func (*AdapterExercises) TestDeleteApiKey ¶ added in v0.0.18
func (s *AdapterExercises) TestDeleteApiKey(t *testing.T)
func (*AdapterExercises) TestGetApiKey ¶ added in v0.0.18
func (s *AdapterExercises) TestGetApiKey(t *testing.T)
func (*AdapterExercises) TestGetOrganization ¶ added in v0.0.7
func (s *AdapterExercises) TestGetOrganization(t *testing.T)
func (*AdapterExercises) TestGetOrganizationBySystemName ¶ added in v0.0.7
func (s *AdapterExercises) TestGetOrganizationBySystemName(t *testing.T)
func (*AdapterExercises) TestGetUser ¶ added in v0.0.7
func (s *AdapterExercises) TestGetUser(t *testing.T)
func (*AdapterExercises) TestGetUserByEmail ¶ added in v0.0.7
func (s *AdapterExercises) TestGetUserByEmail(t *testing.T)
func (*AdapterExercises) TestRemoveAllRolesFromUser ¶ added in v0.0.7
func (s *AdapterExercises) TestRemoveAllRolesFromUser(t *testing.T)
func (*AdapterExercises) TestRemovePermissionFromRole ¶ added in v0.0.7
func (s *AdapterExercises) TestRemovePermissionFromRole(t *testing.T)
func (*AdapterExercises) TestRemoveUserFromRole ¶ added in v0.0.7
func (s *AdapterExercises) TestRemoveUserFromRole(t *testing.T)
func (*AdapterExercises) TestUpdateUser ¶ added in v0.0.7
func (s *AdapterExercises) TestUpdateUser(t *testing.T)
type ManagmentServiceTestSuite ¶ added in v0.0.7
type ManagmentServiceTestSuite struct {
// contains filtered or unexported fields
}
func NewManagementServiceTestSuite ¶ added in v0.0.7
func NewManagementServiceTestSuite(eventStore *evercore.EventStore, dbadapter ubdata.DataAdapter) *ManagmentServiceTestSuite
func (*ManagmentServiceTestSuite) AddOrganization ¶ added in v0.0.7
func (s *ManagmentServiceTestSuite) AddOrganization(t *testing.T)
func (*ManagmentServiceTestSuite) AddPermissionToRole ¶ added in v0.0.7
func (s *ManagmentServiceTestSuite) AddPermissionToRole(t *testing.T)
func (*ManagmentServiceTestSuite) AddRole ¶ added in v0.0.7
func (s *ManagmentServiceTestSuite) AddRole(t *testing.T)
func (*ManagmentServiceTestSuite) AddTwoFactorKey ¶ added in v0.0.7
func (s *ManagmentServiceTestSuite) AddTwoFactorKey(t *testing.T)
func (*ManagmentServiceTestSuite) AddUser ¶ added in v0.0.7
func (s *ManagmentServiceTestSuite) AddUser(t *testing.T)
func (*ManagmentServiceTestSuite) AddUserToRole ¶ added in v0.0.7
func (s *ManagmentServiceTestSuite) AddUserToRole(t *testing.T)
func (*ManagmentServiceTestSuite) DeleteRole ¶ added in v0.0.7
func (s *ManagmentServiceTestSuite) DeleteRole(t *testing.T)
func (*ManagmentServiceTestSuite) GetOrganizationBySystemName ¶ added in v0.0.7
func (s *ManagmentServiceTestSuite) GetOrganizationBySystemName(t *testing.T)
func (*ManagmentServiceTestSuite) GetUserByEmail ¶ added in v0.0.7
func (s *ManagmentServiceTestSuite) GetUserByEmail(t *testing.T)
func (*ManagmentServiceTestSuite) GetUserByEmailPostUpdate ¶ added in v0.0.7
func (s *ManagmentServiceTestSuite) GetUserByEmailPostUpdate(t *testing.T)
func (*ManagmentServiceTestSuite) LoginWithCorrectPasswordEnsureTwoFactorRequiredIsSet ¶ added in v0.0.7
func (s *ManagmentServiceTestSuite) LoginWithCorrectPasswordEnsureTwoFactorRequiredIsSet(t *testing.T)
func (*ManagmentServiceTestSuite) LoginWithIncorrectPassword ¶ added in v0.0.7
func (s *ManagmentServiceTestSuite) LoginWithIncorrectPassword(t *testing.T)
func (*ManagmentServiceTestSuite) RemovePermissionFromRole ¶ added in v0.0.7
func (s *ManagmentServiceTestSuite) RemovePermissionFromRole(t *testing.T)
func (*ManagmentServiceTestSuite) RemoveUserFromRole ¶ added in v0.0.7
func (s *ManagmentServiceTestSuite) RemoveUserFromRole(t *testing.T)
func (*ManagmentServiceTestSuite) RunTests ¶ added in v0.0.7
func (s *ManagmentServiceTestSuite) RunTests(t *testing.T)
func (*ManagmentServiceTestSuite) TestLoginWithCorrectPassword ¶ added in v0.0.7
func (s *ManagmentServiceTestSuite) TestLoginWithCorrectPassword(t *testing.T)
func (*ManagmentServiceTestSuite) UndeleteRole ¶ added in v0.0.7
func (s *ManagmentServiceTestSuite) UndeleteRole(t *testing.T)
func (*ManagmentServiceTestSuite) UpdateOrganization ¶ added in v0.0.7
func (s *ManagmentServiceTestSuite) UpdateOrganization(t *testing.T)
func (*ManagmentServiceTestSuite) UpdateRole ¶ added in v0.0.7
func (s *ManagmentServiceTestSuite) UpdateRole(t *testing.T)
func (*ManagmentServiceTestSuite) UpdateUser ¶ added in v0.0.7
func (s *ManagmentServiceTestSuite) UpdateUser(t *testing.T)
func (*ManagmentServiceTestSuite) UpdateUserSamePassword ¶ added in v0.0.7
func (s *ManagmentServiceTestSuite) UpdateUserSamePassword(t *testing.T)
func (*ManagmentServiceTestSuite) UpdateUserWithoutPassword ¶ added in v0.0.7
func (s *ManagmentServiceTestSuite) UpdateUserWithoutPassword(t *testing.T)
func (*ManagmentServiceTestSuite) UserAddApiKey ¶ added in v0.0.18
func (s *ManagmentServiceTestSuite) UserAddApiKey(t *testing.T)
func (*ManagmentServiceTestSuite) UserDeleteApiKey ¶ added in v0.0.18
func (s *ManagmentServiceTestSuite) UserDeleteApiKey(t *testing.T)
func (*ManagmentServiceTestSuite) UserGetByApiKey ¶ added in v0.0.18
func (s *ManagmentServiceTestSuite) UserGetByApiKey(t *testing.T)
func (*ManagmentServiceTestSuite) VerifyCorrectTwoFactorCode ¶ added in v0.0.7
func (s *ManagmentServiceTestSuite) VerifyCorrectTwoFactorCode(t *testing.T)
func (*ManagmentServiceTestSuite) VerifyIncorrectTwoFactorCode ¶ added in v0.0.7
func (s *ManagmentServiceTestSuite) VerifyIncorrectTwoFactorCode(t *testing.T)
type Organization ¶ added in v0.0.7
Click to show internal directories.
Click to hide internal directories.