test

package
v0.69.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertJsonMarshalEquals added in v0.65.0

func AssertJsonMarshalEquals(value interface{}, expected string) error

func MsiStubServer added in v0.19.0

func MsiStubServer(ctx context.Context, port int, token string) chan bool

func RandomString

func RandomString() string

RandomString returns a random alphanumeric string useful for testing purposes.

Types

type Connection

type Connection struct {
	AuthConfig *auth.Credentials
	Authorizer auth.Authorizer
	DomainName string
}

func NewConnection

func NewConnection(tenantId, tenantDomain string) *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
	Connections  map[string]*Connection
	RandomString string

	Claims *claims.Claims
	Token  *oauth2.Token

	AccessPackageAssignmentPolicyClient                     *msgraph.AccessPackageAssignmentPolicyClient
	AccessPackageAssignmentRequestClient                    *msgraph.AccessPackageAssignmentRequestClient
	AccessPackageCatalogClient                              *msgraph.AccessPackageCatalogClient
	AccessPackageClient                                     *msgraph.AccessPackageClient
	AccessPackageResourceClient                             *msgraph.AccessPackageResourceClient
	AccessPackageResourceRequestClient                      *msgraph.AccessPackageResourceRequestClient
	AccessPackageResourceRoleClient                         *msgraph.AccessPackageResourceRoleClient
	AccessPackageResourceRoleScopeClient                    *msgraph.AccessPackageResourceRoleScopeClient
	AdministrativeUnitsClient                               *msgraph.AdministrativeUnitsClient
	ApplicationTemplatesClient                              *msgraph.ApplicationTemplatesClient
	ApplicationsClient                                      *msgraph.ApplicationsClient
	AppRoleAssignedToClient                                 *msgraph.AppRoleAssignedToClient
	AttributeSetClient                                      *msgraph.AttributeSetClient
	AuthenticationMethodsClient                             *msgraph.AuthenticationMethodsClient
	AuthenticationStrengthPoliciesClient                    *msgraph.AuthenticationStrengthPoliciesClient
	B2CUserFlowClient                                       *msgraph.B2CUserFlowClient
	ClaimsMappingPolicyClient                               *msgraph.ClaimsMappingPolicyClient
	ConditionalAccessPoliciesClient                         *msgraph.ConditionalAccessPoliciesClient
	ConnectedOrganizationClient                             *msgraph.ConnectedOrganizationClient
	CustomSecurityAttributeDefinitionClient                 *msgraph.CustomSecurityAttributeDefinitionClient
	DelegatedPermissionGrantsClient                         *msgraph.DelegatedPermissionGrantsClient
	DirectoryAuditReportsClient                             *msgraph.DirectoryAuditReportsClient
	DirectoryObjectsClient                                  *msgraph.DirectoryObjectsClient
	DirectoryRoleTemplatesClient                            *msgraph.DirectoryRoleTemplatesClient
	DirectoryRolesClient                                    *msgraph.DirectoryRolesClient
	DomainsClient                                           *msgraph.DomainsClient
	EntitlementRoleAssignmentsClient                        *msgraph.EntitlementRoleAssignmentsClient
	EntitlementRoleDefinitionsClient                        *msgraph.EntitlementRoleDefinitionsClient
	GroupsAppRoleAssignmentsClient                          *msgraph.AppRoleAssignmentsClient
	GroupsClient                                            *msgraph.GroupsClient
	IdentityProvidersClient                                 *msgraph.IdentityProvidersClient
	InvitationsClient                                       *msgraph.InvitationsClient
	MeClient                                                *msgraph.MeClient
	NamedLocationsClient                                    *msgraph.NamedLocationsClient
	PrivilegedAccessGroupAssignmentScheduleClient           *msgraph.PrivilegedAccessGroupAssignmentScheduleClient
	PrivilegedAccessGroupAssignmentScheduleInstancesClient  *msgraph.PrivilegedAccessGroupAssignmentScheduleInstancesClient
	PrivilegedAccessGroupAssignmentScheduleRequestsClient   *msgraph.PrivilegedAccessGroupAssignmentScheduleRequestsClient
	PrivilegedAccessGroupEligibilityScheduleClient          *msgraph.PrivilegedAccessGroupEligibilityScheduleClient
	PrivilegedAccessGroupEligibilityScheduleInstancesClient *msgraph.PrivilegedAccessGroupEligibilityScheduleInstancesClient
	PrivilegedAccessGroupEligibilityScheduleRequestsClient  *msgraph.PrivilegedAccessGroupEligibilityScheduleRequestsClient
	ReportsClient                                           *msgraph.ReportsClient
	RoleAssignmentsClient                                   *msgraph.RoleAssignmentsClient
	RoleDefinitionsClient                                   *msgraph.RoleDefinitionsClient
	RoleEligibilityScheduleRequestClient                    *msgraph.RoleEligibilityScheduleRequestClient
	RoleManagementPolicyClient                              *msgraph.RoleManagementPolicyClient
	RoleManagementPolicyAssignmentClient                    *msgraph.RoleManagementPolicyAssignmentClient
	RoleManagementPolicyRuleClient                          *msgraph.RoleManagementPolicyRuleClient
	SchemaExtensionsClient                                  *msgraph.SchemaExtensionsClient
	ServicePrincipalsAppRoleAssignmentsClient               *msgraph.AppRoleAssignmentsClient
	ServicePrincipalsClient                                 *msgraph.ServicePrincipalsClient
	SignInReportsClient                                     *msgraph.SignInReportsClient
	SynchronizationJobClient                                *msgraph.SynchronizationJobClient
	TermsOfUseAgreementClient                               *msgraph.TermsOfUseAgreementClient
	TokenIssuancePolicyClient                               *msgraph.TokenIssuancePolicyClient
	UserFlowAttributesClient                                *msgraph.UserFlowAttributesClient
	UsersAppRoleAssignmentsClient                           *msgraph.AppRoleAssignmentsClient
	UsersClient                                             *msgraph.UsersClient
	WindowsAutopilotDeploymentProfilesClient                *msgraph.WindowsAutopilotDeploymentProfilesClient
}

func NewTest added in v0.35.0

func NewTest(t *testing.T) (c *Test)

Jump to

Keyboard shortcuts

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