mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
19 lines
606 B
TypeScript
19 lines
606 B
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License;
|
|
* you may not use this file except in compliance with the Elastic License.
|
|
*/
|
|
|
|
import { stub } from 'sinon';
|
|
import { AuthenticationProviderOptions } from './base';
|
|
|
|
export function mockAuthenticationProviderOptions(
|
|
providerOptions: Partial<AuthenticationProviderOptions> = {}
|
|
) {
|
|
return {
|
|
client: { callWithRequest: stub(), callWithInternalUser: stub() },
|
|
log: stub(),
|
|
basePath: '/base-path',
|
|
...providerOptions,
|
|
};
|
|
}
|