Files
grafana/public/app/features/explore/spec/helper/mocks.ts
Andrej Ocenas d092998927 Query Library: Move backend to enterprise (#100371)
* Move files to enterprise

* Remove last parts of QL api

* Fix CODEOWNERS
2025-02-14 11:05:03 +00:00

21 lines
799 B
TypeScript

import { getAPIBaseURL } from '../../../../api/utils';
import { getIdentityDisplayList } from './testdata/identityDisplayList';
import { getTestQueryList } from './testdata/testQueryList';
// This is not ideal but not sure how to fix it right now as this is duplicated from the API definition which is in
// Enterprise and so we cannot import it here.
// We have some tests for testing QL inside Explore. The whole Explore setup is in OSS, and it needs these mocks but the
// test itself is in Enterprise. Ideally we would inject the mocks in the tests somehow.
export const BASE_URL = getAPIBaseURL('peakq.grafana.app', 'v0alpha1');
export const mockData = {
all: {
url: BASE_URL,
response: getTestQueryList(),
},
identityDisplay: {
response: getIdentityDisplayList(),
},
};