ReadonlyauditorMocks for the auditor service.
ReadonlyauthMocks for the auth service. Calling it creates a functional mock auth service.
ReadonlycacheMocks for the cache service.
ReadonlydatabaseMocks for the @backstage/backend-plugin-api#CoreServices.database | database service.
Calling it, or its factory with a knex instance, uses that instance,
which is useful in combination with the TestDatabases facility.
Calling factory without options returns the regular default database
factory, which reads config settings.
ReadonlydiscoveryMocks for the discovery service. Calling it creates a discovery service that points to an unreachable local address.
ReadonlyeventsMocks for the
@backstage/plugin-events-node#eventsServiceRef | events service.
Calling it, or using its factory, creates a functional mock
implementation.
ReadonlyhttpMocks for the HttpAuthService.
By default all requests without credentials are treated as requests from
the default mock user principal. This behavior can be configured with the
defaultCredentials option.
ReadonlyhttpMocks for the HTTP router service.
ReadonlylifecycleMocks for the lifecycle service.
ReadonlyloggerMocks for the logger service.
ReadonlypermissionsMocks for the @backstage/backend-plugin-api#CoreServices.permissions | permissions service.
Calling it creates a functional mock implementation. Its factory returns
the given result for all requests if you supply one, and otherwise the
regular default permissions factory.
ReadonlypermissionsMocks for the permissions registry service.
ReadonlyrootMocks for the root config service. Calling it creates a functional config service with the given data, which can be updated later.
ReadonlyrootMocks for the root health service.
ReadonlyrootMocks for the root HTTP router service.
ReadonlyrootMocks for the root instance metadata service.
ReadonlyrootMocks for the root lifecycle service.
ReadonlyrootMocks for the root logger service. Calling it creates a functional logger that is silent by default.
ReadonlyrootMocks for the root system metadata service.
ReadonlyschedulerMocks for the scheduler service. Calling it creates a functional mock scheduler.
ReadonlyurlMocks for the URL reader service.
ReadonlyuserMocks for the UserInfoService.
By default it extracts the user's entity ref from a user principal and returns that as the only ownership entity ref, but calling it lets you pass in a custom set of user info.
The type of (mockServices:variable), with mock implementations of the core services.