Skip to content

Commit

Permalink
rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan committed Nov 2, 2021
1 parent 3539c15 commit 217afd6
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) {

before(async () => {
const reportingAPI = getService('reportingAPI');
await reportingAPI.checkTaskManagerHealth();
await reportingAPI.logTaskManagerHealth();
await reportingAPI.createDataAnalystRole();
await reportingAPI.createTestReportingUserRole();
await reportingAPI.createDataAnalyst();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function ({ loadTestFile, getService }: FtrProviderContext) {
describe('Reporting API Integration Tests with Security disabled', function () {
before(async () => {
const reportingAPI = getService('reportingAPI');
await reportingAPI.checkTaskManagerHealth();
await reportingAPI.logTaskManagerHealth();
});
this.tags('ciGroup13');
loadTestFile(require.resolve('./job_apis_csv'));
Expand Down
4 changes: 2 additions & 2 deletions x-pack/test/reporting_api_integration/services/scenarios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function createScenarios({ getService }: Pick<FtrProviderContext, 'getSer
const REPORTING_USER_USERNAME = 'reporting_user';
const REPORTING_USER_PASSWORD = 'reporting_user-password';

const checkTaskManagerHealth = async () => {
const logTaskManagerHealth = async () => {
// Check task manager health for analyzing test failures. See https://github.com/elastic/kibana/issues/114946
const tmHealth = await supertest.get(`/api/task_manager/_health`);
const driftValues = tmHealth.body?.stats?.runtime?.value;
Expand Down Expand Up @@ -215,7 +215,7 @@ export function createScenarios({ getService }: Pick<FtrProviderContext, 'getSer
};

return {
checkTaskManagerHealth,
logTaskManagerHealth,
initEcommerce,
teardownEcommerce,
DATA_ANALYST_USERNAME,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function (context: FtrProviderContext) {

before(async () => {
const reportingAPI = context.getService('reportingAPI');
await reportingAPI.checkTaskManagerHealth();
await reportingAPI.logTaskManagerHealth();
await createDataAnalystRole();
await createDataAnalyst();
await createReportingUser();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) {

before(async () => {
const reportingFunctional = getService('reportingFunctional');
await reportingFunctional.checkTaskManagerHealth();
await reportingFunctional.logTaskManagerHealth();
await reportingFunctional.createDataAnalystRole();
await reportingFunctional.createDataAnalyst();
await reportingFunctional.createTestReportingUserRole();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function ({ loadTestFile, getService }: FtrProviderContext) {

before(async () => {
const reportingAPI = getService('reportingAPI');
await reportingAPI.checkTaskManagerHealth();
await reportingAPI.logTaskManagerHealth();
});

loadTestFile(require.resolve('./management'));
Expand Down

0 comments on commit 217afd6

Please sign in to comment.