Get rid of esArchiver in the authentication related functional tests. (#137553) (#137578)

(cherry picked from commit f76bbc17cd)

Co-authored-by: Aleh Zasypkin <aleh.zasypkin@elastic.co>
This commit is contained in:
Kibana Machine 2022-07-29 09:28:20 -04:00 committed by GitHub
parent d5f112c325
commit 78e5d8d1e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 0 additions and 22 deletions

View file

@ -10,7 +10,6 @@ import { parse } from 'url';
import { FtrProviderContext } from '../../ftr_provider_context';
export default function ({ getService, getPageObjects }: FtrProviderContext) {
const esArchiver = getService('esArchiver');
const browser = getService('browser');
const security = getService('security');
const deployment = getService('deployment');
@ -31,14 +30,11 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
roles: ['superuser'],
full_name: 'Guest',
});
await esArchiver.load('x-pack/test/functional/es_archives/empty_kibana');
await PageObjects.security.forceLogout();
});
after(async () => {
await security.user.delete('anonymous_user');
await esArchiver.unload('x-pack/test/functional/es_archives/empty_kibana');
});
beforeEach(async () => {

View file

@ -10,7 +10,6 @@ import { parse } from 'url';
import { FtrProviderContext } from '../../ftr_provider_context';
export default function ({ getService, getPageObjects }: FtrProviderContext) {
const esArchiver = getService('esArchiver');
const testSubjects = getService('testSubjects');
const browser = getService('browser');
const security = getService('security');
@ -32,14 +31,11 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
roles: ['kibana_admin'],
full_name: 'Admin',
});
await esArchiver.load('x-pack/test/functional/es_archives/empty_kibana');
await PageObjects.security.forceLogout();
});
after(async () => {
await security.user.delete(testCredentials.username);
await esArchiver.unload('x-pack/test/functional/es_archives/empty_kibana');
});
beforeEach(async () => {

View file

@ -10,7 +10,6 @@ import { parse } from 'url';
import { FtrProviderContext } from '../../ftr_provider_context';
export default function ({ getService, getPageObjects }: FtrProviderContext) {
const esArchiver = getService('esArchiver');
const find = getService('find');
const browser = getService('browser');
const deployment = getService('deployment');
@ -25,12 +24,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
.post('/_security/role_mapping/oidc1')
.send({ roles: ['superuser'], enabled: true, rules: { field: { 'realm.name': 'oidc1' } } })
.expect(200);
await esArchiver.load('x-pack/test/functional/es_archives/empty_kibana');
});
after(async () => {
await esArchiver.unload('x-pack/test/functional/es_archives/empty_kibana');
});
afterEach(async () => {

View file

@ -10,7 +10,6 @@ import { parse } from 'url';
import { FtrProviderContext } from '../../ftr_provider_context';
export default function ({ getService, getPageObjects }: FtrProviderContext) {
const esArchiver = getService('esArchiver');
const find = getService('find');
const browser = getService('browser');
const deployment = getService('deployment');
@ -25,12 +24,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
.post('/_security/role_mapping/saml1')
.send({ roles: ['superuser'], enabled: true, rules: { field: { 'realm.name': 'saml1' } } })
.expect(200);
await esArchiver.load('x-pack/test/functional/es_archives/empty_kibana');
});
after(async () => {
await esArchiver.unload('x-pack/test/functional/es_archives/empty_kibana');
});
afterEach(async () => {