mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 10:03:33 -06:00
* Datasource: Remove support for unencrypted passwords * regenerate swagger * [WIP] Remove references to datasource password and basic auth password fields (#50015) * try delete moar tings * delete provisioning stuff * remove from yaml * update snapshots * remove lingering snapshot fields * fix ds http settings * Re-generate swagger and fix swagger-api-spec make target Co-authored-by: Will Browne <will.browne@grafana.com> Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
25 lines
533 B
TypeScript
25 lines
533 B
TypeScript
import { DataSourceSettings } from '@grafana/data';
|
|
|
|
export function createDatasourceSettings<T>(jsonData: T): DataSourceSettings<T> {
|
|
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: {},
|
|
};
|
|
}
|