mocks

package
v0.14.0-alpha Latest Latest
Warning

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

Go to latest
Published: May 25, 2025 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestAccProtoV6ProviderFactories = map[string]func() (tfprotov6.ProviderServer, error){
	"microsoft365": providerserver.NewProtocol6WithError(provider.New("test")()),
}

TestAccProtoV6ProviderFactories provides a map of provider factories for acceptance tests.

View Source
var TestUnitTestProtoV6ProviderFactories = map[string]func() (tfprotov6.ProviderServer, error){
	"microsoft365": providerserver.NewProtocol6WithError(provider.New("test")()),
}

TestUnitTestProtoV6ProviderFactories provides a map of provider factories for unit tests.

Functions

func ActivateDeviceAndAppManagementMocks

func ActivateDeviceAndAppManagementMocks()

ActivateDeviceAndAppManagementMocks sets up mocks for Device and App Management endpoints.

func ActivateDeviceManagementMocks

func ActivateDeviceManagementMocks()

ActivateDeviceManagementMocks sets up API responders for Device Management endpoints.

func ActivateIdentityAndAccessMocks

func ActivateIdentityAndAccessMocks()

ActivateIdentityAndAccessMocks sets up mocks for Identity and Access Management endpoints.

func ActivateM365AdminMocks

func ActivateM365AdminMocks()

ActivateM365AdminMocks sets up mocks for M365 Admin Center endpoints.

func ActivateMicrosoftGraphMocks

func ActivateMicrosoftGraphMocks()

ActivateMicrosoftGraphMocks activates all Microsoft Graph API mocks by domain.

func MockMicrosoftGraphRequest

func MockMicrosoftGraphRequest(method, urlPattern string, statusCode int, responseBody string)

MockMicrosoftGraphRequest is a helper function to register a custom mock for a specific endpoint

func MockMicrosoftGraphRequestWithRegexp

func MockMicrosoftGraphRequestWithRegexp(method string, urlRegexp *regexp.Regexp, statusCode int, responseBody string)

MockMicrosoftGraphRequestWithRegexp is a helper function to register a custom mock with a regexp pattern

func TestName

func TestName() string

TestName extracts the name of the calling test function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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