mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
* [ILM] Fixed functional test failures on Cloud * [Upgrade Assistant] Fixed functional test failures on Cloud
This commit is contained in:
parent
553220be20
commit
3c15a5d44b
1 changed files with 19 additions and 12 deletions
|
@ -9,7 +9,7 @@ import expect from '@kbn/expect';
|
|||
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||
|
||||
const policyName = 'testPolicy1';
|
||||
const repoName = 'test';
|
||||
const repoName = 'found-snapshots'; // this repo already exists on cloud
|
||||
|
||||
export default ({ getPageObjects, getService }: FtrProviderContext) => {
|
||||
const pageObjects = getPageObjects(['common', 'indexLifecycleManagement']);
|
||||
|
@ -17,26 +17,33 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
|
|||
const retry = getService('retry');
|
||||
const esClient = getService('es');
|
||||
const security = getService('security');
|
||||
const deployment = getService('deployment');
|
||||
|
||||
describe('Home page', function () {
|
||||
before(async () => {
|
||||
await security.testUser.setRoles(['manage_ilm'], true);
|
||||
await esClient.snapshot.createRepository({
|
||||
name: repoName,
|
||||
body: {
|
||||
type: 'fs',
|
||||
settings: {
|
||||
// use one of the values defined in path.repo in test/functional/config.js
|
||||
location: '/tmp/',
|
||||
const isCloud = await deployment.isCloud();
|
||||
if (!isCloud) {
|
||||
await esClient.snapshot.createRepository({
|
||||
name: repoName,
|
||||
body: {
|
||||
type: 'fs',
|
||||
settings: {
|
||||
// use one of the values defined in path.repo in test/functional/config.js
|
||||
location: '/tmp/',
|
||||
},
|
||||
},
|
||||
},
|
||||
verify: false,
|
||||
});
|
||||
verify: false,
|
||||
});
|
||||
}
|
||||
|
||||
await pageObjects.common.navigateToApp('indexLifecycleManagement');
|
||||
});
|
||||
after(async () => {
|
||||
await esClient.snapshot.deleteRepository({ name: repoName });
|
||||
const isCloud = await deployment.isCloud();
|
||||
if (!isCloud) {
|
||||
await esClient.snapshot.deleteRepository({ name: repoName });
|
||||
}
|
||||
await esClient.ilm.deleteLifecycle({ name: policyName });
|
||||
await security.testUser.restoreDefaults();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue