import { getRandomString } from '@kbn/test/jest' ; import { RepositoryType } from '../../common/types' ; const defaultSettings = { chunkSize : '10mb' , location : '/tmp/es-backups' } ; export interface Repository { name : string ; type : RepositoryType ; settings : any ; } export const getRepository = ( { name = getRandomString ( ) , type = 'fs' as 'fs' , settings = defaultSettings , } = { } ) : Repository => ( { name , type , settings , } ) ;