mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Skip UA tests when running fwd-compatibility tests (#204650)
## 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
This commit is contained in:
parent
65437c4499
commit
6aaa2eae96
1 changed files with 16 additions and 1 deletions
|
@ -5,10 +5,25 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { version as kibanaVersion } from '../../../../../package.json';
|
||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||
|
||||
export default function ({ loadTestFile }: FtrProviderContext) {
|
||||
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'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue