[8.6] [UA] fix flaky test (#146351) (#146441)

# Backport

This will backport the following commits from `main` to `8.6`:
- [[UA] fix flaky test
(#146351)](https://github.com/elastic/kibana/pull/146351)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Ahmad
Bamieh","email":"ahmad.bamyeh@elastic.co"},"sourceCommit":{"committedDate":"2022-11-28T16:52:15Z","message":"[UA]
fix flaky test (#146351)\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCloses
https://github.com/elastic/kibana/issues/144885","sha":"ab8dd04073a4f9b8bcf26444f35a33d85f98b600","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v8.6.0","v8.7.0","8.6.1"],"number":146351,"url":"https://github.com/elastic/kibana/pull/146351","mergeCommit":{"message":"[UA]
fix flaky test (#146351)\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCloses
https://github.com/elastic/kibana/issues/144885","sha":"ab8dd04073a4f9b8bcf26444f35a33d85f98b600"}},"sourceBranch":"main","suggestedTargetBranches":["8.6"],"targetPullRequestStates":[{"branch":"8.6","label":"v8.6.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/146351","number":146351,"mergeCommit":{"message":"[UA]
fix flaky test (#146351)\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCloses
https://github.com/elastic/kibana/issues/144885","sha":"ab8dd04073a4f9b8bcf26444f35a33d85f98b600"}}]}]
BACKPORT-->

Co-authored-by: Ahmad Bamieh <ahmad.bamyeh@elastic.co>
This commit is contained in:
Kibana Machine 2022-11-28 12:56:36 -05:00 committed by GitHub
parent 0cd9b32440
commit 82bf59b272
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View file

@ -20,10 +20,8 @@ export default function upgradeAssistantFunctionalTests({
const security = getService('security');
const log = getService('log');
// FLAKY: https://github.com/elastic/kibana/issues/144885
describe.skip('Deprecation pages', function () {
describe('Deprecation pages', function () {
this.tags('skipFirefox');
this.timeout(32000);
before(async () => {
await security.testUser.setRoles(['superuser']);
@ -64,7 +62,7 @@ export default function upgradeAssistantFunctionalTests({
});
// Wait for the cluster settings to be reflected to the ES nodes
await setTimeout(30000);
await setTimeout(12000);
} catch (e) {
log.debug('[Setup error] Error updating cluster settings');
throw e;

View file

@ -36,7 +36,11 @@ export default async function ({ readConfigFile }) {
esTestCluster: {
license: 'trial',
from: 'snapshot',
serverArgs: ['path.repo=/tmp/', 'xpack.security.authc.api_key.enabled=true'],
serverArgs: [
'path.repo=/tmp/',
'xpack.security.authc.api_key.enabled=true',
'cluster.routing.allocation.disk.threshold_enabled=true', // make sure disk thresholds are enabled for UA cluster testing
],
},
kbnTestServer: {