mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
## Summary Resolves #204520 Reasoning in https://github.com/elastic/kibana/issues/204520#issuecomment-2549445238 ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
37 lines
1.4 KiB
TypeScript
37 lines
1.4 KiB
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
* 2.0.
|
|
*/
|
|
|
|
import { version as kibanaVersion } from '../../../../../package.json';
|
|
import { FtrProviderContext } from '../../ftr_provider_context';
|
|
|
|
export default function ({ loadTestFile, getService }: FtrProviderContext) {
|
|
describe('Upgrade Assistant', function () {
|
|
const es = getService('es');
|
|
|
|
before(
|
|
"Check version to avoid failures during forward-compatibility tests where these don't make sense",
|
|
async function () {
|
|
const {
|
|
version: { number: esVersion },
|
|
} = await es.info();
|
|
if (esVersion.replace('-SNAPSHOT', '') !== kibanaVersion.replace('-SNAPSHOT', '')) {
|
|
this.skip();
|
|
}
|
|
}
|
|
);
|
|
|
|
loadTestFile(require.resolve('./upgrade_assistant'));
|
|
loadTestFile(require.resolve('./cloud_backup_status'));
|
|
loadTestFile(require.resolve('./privileges'));
|
|
loadTestFile(require.resolve('./es_deprecations'));
|
|
loadTestFile(require.resolve('./es_deprecation_logs'));
|
|
loadTestFile(require.resolve('./remote_clusters'));
|
|
loadTestFile(require.resolve('./cluster_settings'));
|
|
loadTestFile(require.resolve('./version_precheck'));
|
|
loadTestFile(require.resolve('./node_disk_space'));
|
|
});
|
|
}
|