Sfoglia il codice sorgente

Fixed failing influxdb-datasource test

Torkel Ödegaard 11 anni fa
parent
commit
181542249d

+ 0 - 5
src/app/components/settings.js

@@ -46,11 +46,6 @@ function (_) {
     //   return datasource;
     //   return datasource;
     // };
     // };
     //
     //
-    // var parseMultipleHosts = function(datasource) {
-    //   datasource.urls = _.map(datasource.url.split(","), function (url) { return url.trim(); });
-    //   return datasource;
-    // };
-    //
     // _.each(settings.datasources, function(datasource, key) {
     // _.each(settings.datasources, function(datasource, key) {
     //   datasource.name = key;
     //   datasource.name = key;
     //   if (datasource.url) { parseBasicAuth(datasource); }
     //   if (datasource.url) { parseBasicAuth(datasource); }

+ 1 - 1
src/test/specs/influxdb-datasource-specs.js

@@ -11,7 +11,7 @@ define([
     beforeEach(ctx.providePhase(['templateSrv']));
     beforeEach(ctx.providePhase(['templateSrv']));
     beforeEach(ctx.createService('InfluxDatasource'));
     beforeEach(ctx.createService('InfluxDatasource'));
     beforeEach(function() {
     beforeEach(function() {
-      ctx.ds = new ctx.service({ urls: [''], user: 'test', password: 'mupp' });
+      ctx.ds = new ctx.service({ url: '', user: 'test', password: 'mupp' });
     });
     });
 
 
     describe('When querying influxdb with one target using query editor target spec', function() {
     describe('When querying influxdb with one target using query editor target spec', function() {