Skip to content

Commit

Permalink
Unskip session cleanup API integration tests. (#130091)
Browse files Browse the repository at this point in the history
  • Loading branch information
azasypkin authored Apr 13, 2022
1 parent 1464fb0 commit dc0dd64
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions x-pack/test/security_api_integration/session_idle.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
saml_disable: { order: 3, realm: 'saml1', session: { idleTimeout: 0 } },
},
})}`,
// Exclude Uptime tasks to not interfere (additional ES load) with the session cleanup task.
`--xpack.task_manager.unsafe.exclude_task_types=${JSON.stringify(['UPTIME:*'])}`,
],
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
saml_disable: { order: 3, realm: 'saml1', session: { lifespan: 0 } },
},
})}`,
// Exclude Uptime tasks to not interfere (additional ES load) with the session cleanup task.
`--xpack.task_manager.unsafe.exclude_task_types=${JSON.stringify(['UPTIME:*'])}`,
],
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { parse as parseCookie, Cookie } from 'tough-cookie';
import { setTimeout as setTimeoutAsync } from 'timers/promises';
import expect from '@kbn/expect';
import { adminTestUser } from '@kbn/test';
import type { AuthenticationProvider } from '../../../../plugins/security/common/model';
import type { AuthenticationProvider } from '../../../../plugins/security/common';
import { getSAMLRequestId, getSAMLResponse } from '../../fixtures/saml/saml_tools';
import { FtrProviderContext } from '../../ftr_provider_context';

Expand Down Expand Up @@ -76,8 +76,7 @@ export default function ({ getService }: FtrProviderContext) {
return cookie;
}

// FLAKY: https://github.com/elastic/kibana/issues/121482
describe.skip('Session Idle cleanup', () => {
describe('Session Idle cleanup', () => {
beforeEach(async () => {
await es.cluster.health({ index: '.kibana_security_session*', wait_for_status: 'green' });
await esDeleteAllIndices('.kibana_security_session*');
Expand Down

0 comments on commit dc0dd64

Please sign in to comment.