|
@@ -8,6 +8,7 @@ describe('PrometheusMetricFindQuery', function() {
|
|
|
|
|
|
|
|
var ctx = new helpers.ServiceTestContext();
|
|
var ctx = new helpers.ServiceTestContext();
|
|
|
var instanceSettings = {url: 'proxied', directUrl: 'direct', user: 'test', password: 'mupp' };
|
|
var instanceSettings = {url: 'proxied', directUrl: 'direct', user: 'test', password: 'mupp' };
|
|
|
|
|
+
|
|
|
beforeEach(angularMocks.module('grafana.core'));
|
|
beforeEach(angularMocks.module('grafana.core'));
|
|
|
beforeEach(angularMocks.module('grafana.services'));
|
|
beforeEach(angularMocks.module('grafana.services'));
|
|
|
beforeEach(angularMocks.inject(function($q, $rootScope, $httpBackend, $injector) {
|
|
beforeEach(angularMocks.inject(function($q, $rootScope, $httpBackend, $injector) {
|
|
@@ -15,6 +16,7 @@ describe('PrometheusMetricFindQuery', function() {
|
|
|
ctx.$httpBackend = $httpBackend;
|
|
ctx.$httpBackend = $httpBackend;
|
|
|
ctx.$rootScope = $rootScope;
|
|
ctx.$rootScope = $rootScope;
|
|
|
ctx.ds = $injector.instantiate(PrometheusDatasource, {instanceSettings: instanceSettings});
|
|
ctx.ds = $injector.instantiate(PrometheusDatasource, {instanceSettings: instanceSettings});
|
|
|
|
|
+ $httpBackend.when('GET', /\.html$/).respond('');
|
|
|
}));
|
|
}));
|
|
|
|
|
|
|
|
describe('When performing metricFindQuery', function() {
|
|
describe('When performing metricFindQuery', function() {
|