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:
Alejandro Fernández Haro 2024-12-19 10:55:43 +01:00 committed by GitHub
parent 65437c4499
commit 6aaa2eae96
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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'));