Pyroscope: Remove "phlare" from variable, types, strings etc (#75140)

This commit is contained in:
Andrej Ocenas
2023-09-20 16:31:22 +02:00
committed by GitHub
parent d1296f7213
commit 15e54df9f2
29 changed files with 143 additions and 148 deletions

View File

@ -5,8 +5,8 @@ import { DataSourceInstanceSettings } from '@grafana/data';
import { TemplateSrv } from 'app/features/templating/template_srv';
import { VariableQueryEditor } from './VariableQueryEditor';
import { PhlareDataSource } from './datasource';
import { PhlareDataSourceOptions } from './types';
import { PyroscopeDataSource } from './datasource';
import { PyroscopeDataSourceOptions } from './types';
describe('VariableQueryEditor', () => {
it('renders correctly with type profileType', () => {
@ -69,7 +69,7 @@ describe('VariableQueryEditor', () => {
});
function getMockDatasource() {
const ds = new PhlareDataSource({} as DataSourceInstanceSettings<PhlareDataSourceOptions>, new TemplateSrv());
const ds = new PyroscopeDataSource({} as DataSourceInstanceSettings<PyroscopeDataSourceOptions>, new TemplateSrv());
ds.getResource = jest.fn();
(ds.getResource as jest.Mock).mockImplementation(async (type: string) => {
if (type === 'profileTypes') {