From a0556bf150ed4e5bd16496e60c74e936007ffb1d Mon Sep 17 00:00:00 2001 From: Elton Sanchez <3165000+sanchezelton@users.noreply.github.com> Date: Tue, 8 Oct 2024 18:59:50 -0700 Subject: [PATCH] TERR-425 - rennamed folderDashboardInit fn getFolderDashboardTargets to getFolderDashboardFixtures to agree with returned type - fixed references to above --- e2e/folderDashboardInit.ts | 2 +- e2e/util/fixtures.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/folderDashboardInit.ts b/e2e/folderDashboardInit.ts index 5dfe27e..ba2c2ca 100644 --- a/e2e/folderDashboardInit.ts +++ b/e2e/folderDashboardInit.ts @@ -60,7 +60,7 @@ const COLUMNS_MAP = { * * @returns {Promise} */ -export const getFolderDashboardTargets = async (params?: INetworkPanelParams): Promise => { +export const getFolderDashboardFixtures = async (params?: INetworkPanelParams): Promise => { const { basicAuthHeader, protocolHostPort } = await getHostInfo(credentials); const fnName = 'folderDashboardInit.getFolderDashboardTargets'; diff --git a/e2e/util/fixtures.ts b/e2e/util/fixtures.ts index 2f5ab2b..0d7b52e 100644 --- a/e2e/util/fixtures.ts +++ b/e2e/util/fixtures.ts @@ -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'; @@ -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[],