integration_tests

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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) 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) 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) 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

type Organization struct {
	OrganizationID int64
	Name           string
	SystemName     string
	Status         string
}

type UserTestStruct added in v0.0.7

type UserTestStruct struct {
	Email       string `json:"email"`
	FirstName   string `json:"firstName"`
	LastName    string `json:"lastName"`
	DisplayName string `json:"displayName"`
	Password    string `json:"password"`
}

Jump to

Keyboard shortcuts

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