Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MsiStubServer ¶ added in v0.19.0
func RandomString ¶
func RandomString() string
RandomString returns a random alphanumeric string useful for testing purposes.
Types ¶
type Connection ¶
type Connection struct { AuthConfig *auth.Config Authorizer auth.Authorizer DomainName string }
func NewConnection ¶
func NewConnection(tokenVersion auth.TokenVersion) *Connection
NewConnection configures and returns a Connection for use in tests.
func (*Connection) Authorize ¶ added in v0.35.0
func (c *Connection) Authorize(ctx context.Context, api environments.Api)
Authorize configures an Authorizer for the Connection
type Test ¶ added in v0.35.0
type Test struct { Context context.Context CancelFunc context.CancelFunc Connection *Connection RandomString string Claims auth.Claims Token *oauth2.Token AccessPackageAssignmentPolicyClient *msgraph.AccessPackageAssignmentPolicyClient AccessPackageCatalogClient *msgraph.AccessPackageCatalogClient AccessPackageClient *msgraph.AccessPackageClient AccessPackageResourceClient *msgraph.AccessPackageResourceClient AccessPackageResourceRequestClient *msgraph.AccessPackageResourceRequestClient AccessPackageResourceRoleScopeClient *msgraph.AccessPackageResourceRoleScopeClient AdministrativeUnitsClient *msgraph.AdministrativeUnitsClient ApplicationTemplatesClient *msgraph.ApplicationTemplatesClient ApplicationsClient *msgraph.ApplicationsClient AppRoleAssignedToClient *msgraph.AppRoleAssignedToClient AuthenticationMethodsClient *msgraph.AuthenticationMethodsClient ConditionalAccessPoliciesClient *msgraph.ConditionalAccessPoliciesClient DelegatedPermissionGrantsClient *msgraph.DelegatedPermissionGrantsClient DirectoryAuditReportsClient *msgraph.DirectoryAuditReportsClient DirectoryObjectsClient *msgraph.DirectoryObjectsClient DirectoryRoleTemplatesClient *msgraph.DirectoryRoleTemplatesClient DirectoryRolesClient *msgraph.DirectoryRolesClient DomainsClient *msgraph.DomainsClient GroupsAppRoleAssignmentsClient *msgraph.AppRoleAssignmentsClient GroupsClient *msgraph.GroupsClient IdentityProvidersClient *msgraph.IdentityProvidersClient InvitationsClient *msgraph.InvitationsClient MeClient *msgraph.MeClient NamedLocationsClient *msgraph.NamedLocationsClient ReportsClient *msgraph.ReportsClient SchemaExtensionsClient *msgraph.SchemaExtensionsClient ServicePrincipalsAppRoleAssignmentsClient *msgraph.AppRoleAssignmentsClient ServicePrincipalsClient *msgraph.ServicePrincipalsClient SignInReportsClient *msgraph.SignInReportsClient UsersAppRoleAssignmentsClient *msgraph.AppRoleAssignmentsClient UsersClient *msgraph.UsersClient }
Click to show internal directories.
Click to hide internal directories.