Skip to content

Commit

Permalink
fix api integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jloleysens committed Jul 13, 2021
1 parent 1dfe761 commit 2f4e016
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function ({ getService }: FtrProviderContext) {
});

it('detects when reporting indices should be migrated due to missing ILM policy', async () => {
await reportingAPI.makeAllReportingPoliciesUnmanaged();
await reportingAPI.makeAllReportingIndicesUnmanaged();
// TODO: Remove "any" when no longer through type issue "policy_id" missing
await es.ilm.deleteLifecycle({ policy: ILM_POLICY_NAME } as any);

Expand All @@ -63,7 +63,7 @@ export default function ({ getService }: FtrProviderContext) {
});

it('detects when reporting indices should be migrated due to unmanaged indices', async () => {
await reportingAPI.makeAllReportingPoliciesUnmanaged();
await reportingAPI.makeAllReportingIndicesUnmanaged();
await supertest
.post(`/api/reporting/generate/csv`)
.set('kbn-xsrf', 'xxx')
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 @@ -166,7 +166,7 @@ export function createScenarios({ getService }: Pick<FtrProviderContext, 'getSer

const checkIlmMigrationStatus = async () => {
log.debug('ReportingAPI.checkIlmMigrationStatus');
const { body } = await supertestWithoutAuth
const { body } = await supertest
.get('/api/reporting/ilm_policy_status')
.set('kbn-xsrf', 'xxx')
.expect(200);
Expand All @@ -175,7 +175,7 @@ export function createScenarios({ getService }: Pick<FtrProviderContext, 'getSer

const migrateReportingIndices = async () => {
log.debug('ReportingAPI.migrateReportingIndices');
await supertestWithoutAuth
await supertest
.put('/api/reporting/deprecations/migrate_ilm_policy')
.set('kbn-xsrf', 'xxx')
.expect(200);
Expand Down

0 comments on commit 2f4e016

Please sign in to comment.