mysql-connector: fix tests
This commit is contained in:
3
dist/datasource-zabbix/datasource.js
vendored
3
dist/datasource-zabbix/datasource.js
vendored
@@ -196,13 +196,12 @@ System.register(['lodash', 'app/core/utils/datemath', './utils', './migrations',
|
|||||||
_export('ZabbixAPIDatasource', ZabbixAPIDatasource = function () {
|
_export('ZabbixAPIDatasource', ZabbixAPIDatasource = function () {
|
||||||
|
|
||||||
/** @ngInject */
|
/** @ngInject */
|
||||||
function ZabbixAPIDatasource(instanceSettings, templateSrv, alertSrv, dashboardSrv, datasourceSrv, zabbixAlertingSrv, Zabbix) {
|
function ZabbixAPIDatasource(instanceSettings, templateSrv, alertSrv, dashboardSrv, zabbixAlertingSrv, Zabbix) {
|
||||||
_classCallCheck(this, ZabbixAPIDatasource);
|
_classCallCheck(this, ZabbixAPIDatasource);
|
||||||
|
|
||||||
this.templateSrv = templateSrv;
|
this.templateSrv = templateSrv;
|
||||||
this.alertSrv = alertSrv;
|
this.alertSrv = alertSrv;
|
||||||
this.dashboardSrv = dashboardSrv;
|
this.dashboardSrv = dashboardSrv;
|
||||||
this.datasourceSrv = datasourceSrv;
|
|
||||||
this.zabbixAlertingSrv = zabbixAlertingSrv;
|
this.zabbixAlertingSrv = zabbixAlertingSrv;
|
||||||
|
|
||||||
// Use custom format for template variables
|
// Use custom format for template variables
|
||||||
|
|||||||
2
dist/datasource-zabbix/datasource.js.map
vendored
2
dist/datasource-zabbix/datasource.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -15,7 +15,10 @@ describe('ZabbixDatasource', () => {
|
|||||||
password: 'zabbix',
|
password: 'zabbix',
|
||||||
trends: true,
|
trends: true,
|
||||||
trendsFrom: '14d',
|
trendsFrom: '14d',
|
||||||
trendsRange: '7d'
|
trendsRange: '7d',
|
||||||
|
dbConnection: {
|
||||||
|
enabled: false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
ctx.templateSrv = {};
|
ctx.templateSrv = {};
|
||||||
|
|||||||
3
dist/test/datasource-zabbix/datasource.js
vendored
3
dist/test/datasource-zabbix/datasource.js
vendored
@@ -56,13 +56,12 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|||||||
var ZabbixAPIDatasource = function () {
|
var ZabbixAPIDatasource = function () {
|
||||||
|
|
||||||
/** @ngInject */
|
/** @ngInject */
|
||||||
function ZabbixAPIDatasource(instanceSettings, templateSrv, alertSrv, dashboardSrv, datasourceSrv, zabbixAlertingSrv, Zabbix) {
|
function ZabbixAPIDatasource(instanceSettings, templateSrv, alertSrv, dashboardSrv, zabbixAlertingSrv, Zabbix) {
|
||||||
_classCallCheck(this, ZabbixAPIDatasource);
|
_classCallCheck(this, ZabbixAPIDatasource);
|
||||||
|
|
||||||
this.templateSrv = templateSrv;
|
this.templateSrv = templateSrv;
|
||||||
this.alertSrv = alertSrv;
|
this.alertSrv = alertSrv;
|
||||||
this.dashboardSrv = dashboardSrv;
|
this.dashboardSrv = dashboardSrv;
|
||||||
this.datasourceSrv = datasourceSrv;
|
|
||||||
this.zabbixAlertingSrv = zabbixAlertingSrv;
|
this.zabbixAlertingSrv = zabbixAlertingSrv;
|
||||||
|
|
||||||
// Use custom format for template variables
|
// Use custom format for template variables
|
||||||
|
|||||||
@@ -29,7 +29,10 @@ describe('ZabbixDatasource', function () {
|
|||||||
password: 'zabbix',
|
password: 'zabbix',
|
||||||
trends: true,
|
trends: true,
|
||||||
trendsFrom: '14d',
|
trendsFrom: '14d',
|
||||||
trendsRange: '7d'
|
trendsRange: '7d',
|
||||||
|
dbConnection: {
|
||||||
|
enabled: false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
ctx.templateSrv = {};
|
ctx.templateSrv = {};
|
||||||
|
|||||||
@@ -13,11 +13,10 @@ import {ZabbixAPIError} from './zabbixAPICore.service.js';
|
|||||||
class ZabbixAPIDatasource {
|
class ZabbixAPIDatasource {
|
||||||
|
|
||||||
/** @ngInject */
|
/** @ngInject */
|
||||||
constructor(instanceSettings, templateSrv, alertSrv, dashboardSrv, datasourceSrv, zabbixAlertingSrv, Zabbix) {
|
constructor(instanceSettings, templateSrv, alertSrv, dashboardSrv, zabbixAlertingSrv, Zabbix) {
|
||||||
this.templateSrv = templateSrv;
|
this.templateSrv = templateSrv;
|
||||||
this.alertSrv = alertSrv;
|
this.alertSrv = alertSrv;
|
||||||
this.dashboardSrv = dashboardSrv;
|
this.dashboardSrv = dashboardSrv;
|
||||||
this.datasourceSrv = datasourceSrv;
|
|
||||||
this.zabbixAlertingSrv = zabbixAlertingSrv;
|
this.zabbixAlertingSrv = zabbixAlertingSrv;
|
||||||
|
|
||||||
// Use custom format for template variables
|
// Use custom format for template variables
|
||||||
|
|||||||
@@ -15,7 +15,10 @@ describe('ZabbixDatasource', () => {
|
|||||||
password: 'zabbix',
|
password: 'zabbix',
|
||||||
trends: true,
|
trends: true,
|
||||||
trendsFrom: '14d',
|
trendsFrom: '14d',
|
||||||
trendsRange: '7d'
|
trendsRange: '7d',
|
||||||
|
dbConnection: {
|
||||||
|
enabled: false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
ctx.templateSrv = {};
|
ctx.templateSrv = {};
|
||||||
|
|||||||
Reference in New Issue
Block a user