Skip to content

Commit

Permalink
revert changes that don't pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee Drengenberg committed Aug 9, 2022
1 parent 45e9642 commit 4c2e16c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { SavedObjectsUtils } from '@kbn/core/server/saved_objects';
import { UserAtSpaceScenarios, Superuser } from '../../../scenarios';
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
import { ESTestIndexTool, getUrlPrefix, ObjectRemover, AlertUtils } from '../../../../common/lib';
import { setupSpacesAndUsers, tearDown } from '../../../setup';
import { setupSpacesAndUsers } from '../../../setup';

// eslint-disable-next-line import/no-default-export
export default function alertTests({ getService }: FtrProviderContext) {
Expand Down Expand Up @@ -71,7 +71,6 @@ export default function alertTests({ getService }: FtrProviderContext) {
await esTestIndexTool.destroy();
await es.indices.delete({ index: authorizationIndex });
await esArchiver.unload('x-pack/test/functional/es_archives/alerts_legacy');
await tearDown(getService);
});

for (const scenario of UserAtSpaceScenarios) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export async function setupSpacesAndUsers(getService: FtrProviderContext['getSer

export async function tearDown(getService: FtrProviderContext['getService']) {
const securityService = getService('security');
const kibanaServer = getService('kibanaServer');
const esArchiver = getService('esArchiver');

for (const user of Users) {
await securityService.user.delete(user.username);
Expand All @@ -52,5 +52,5 @@ export async function tearDown(getService: FtrProviderContext['getService']) {
}
}

await kibanaServer.savedObjects.cleanStandardList();
await esArchiver.unload('x-pack/test/functional/es_archives/empty_kibana');
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ export async function buildUp(getService: FtrProviderContext['getService']) {
}

export async function tearDown(getService: FtrProviderContext['getService']) {
const kibanaServer = getService('kibanaServer');
await kibanaServer.savedObjects.cleanStandardList();
const esArchiver = getService('esArchiver');
await esArchiver.unload('x-pack/test/functional/es_archives/empty_kibana');
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ export async function buildUp(getService: FtrProviderContext['getService']) {
}

export async function tearDown(getService: FtrProviderContext['getService']) {
const kibanaServer = getService('kibanaServer');
await kibanaServer.savedObjects.cleanStandardList();
const esArchiver = getService('esArchiver');
await esArchiver.unload('x-pack/test/functional/es_archives/empty_kibana');
}

0 comments on commit 4c2e16c

Please sign in to comment.