mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Get rid of esArchiver
in the authentication related functional tests. (#137553)
This commit is contained in:
parent
724f9264c5
commit
f76bbc17cd
4 changed files with 0 additions and 22 deletions
|
@ -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 () => {
|
||||
|
|
|
@ -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 () => {
|
||||
|
|
|
@ -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 () => {
|
||||
|
|
|
@ -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 () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue