Skip to content

Commit

Permalink
TERR-425
Browse files Browse the repository at this point in the history
- rennamed folderDashboardInit fn
getFolderDashboardTargets to
getFolderDashboardFixtures to agree with
returned type
- fixed references to above
  • Loading branch information
sanchezelton committed Oct 9, 2024
1 parent 3bfa8af commit a0556bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion e2e/folderDashboardInit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const COLUMNS_MAP = {
*
* @returns {Promise<IFixtures>}
*/
export const getFolderDashboardTargets = async (params?: INetworkPanelParams): Promise<IFixtures> => {
export const getFolderDashboardFixtures = async (params?: INetworkPanelParams): Promise<IFixtures> => {
const { basicAuthHeader, protocolHostPort } = await getHostInfo(credentials);
const fnName = 'folderDashboardInit.getFolderDashboardTargets';

Expand Down
4 changes: 2 additions & 2 deletions e2e/util/fixtures.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { DEFAULT_DATASOURCE_NAME } from '../plugin-def';
import { getFolderDashboardTargets, removeExistingDatasources, removeExistingTestDashboards } from '../folderDashboardInit';
import { getFolderDashboardFixtures, removeExistingDatasources, removeExistingTestDashboards } from '../folderDashboardInit';
import { createDatasource } from '../grafana-api';
import { topologySheetUrl as topologyUrl, flowSheets } from '../e2e.config.json';
import { IFlowSheet } from '../../src/types';
Expand Down Expand Up @@ -31,7 +31,7 @@ export const setupFixtures = (pluginTest) => {
const topology = JSON.parse(await topologyResponse.text());

// setup dashboard, including topology data from datasource uid
const fixtures = await getFolderDashboardTargets({
const fixtures = await getFolderDashboardFixtures({
queryType: 'tsv',
topology,
flowSheets: flowSheets as IFlowSheet[],
Expand Down

0 comments on commit a0556bf

Please sign in to comment.