import { DataSourceSettings } from '@grafana/data'; export function createDatasourceSettings(jsonData: T): DataSourceSettings { return { id: 0, uid: 'x', orgId: 0, name: 'datasource-test', typeLogoUrl: '', type: 'datasource', typeName: 'Datasource', access: 'server', url: 'http://localhost', user: '', database: '', basicAuth: false, basicAuthUser: '', isDefault: false, jsonData, readOnly: false, withCredentials: false, secureJsonFields: {}, }; }