Re-enable security related tests related to the concurrent access token refresh. (#162693)

## Summary

Since https://github.com/elastic/elasticsearch/pull/98011 is merged, we
can re-enable our tests as soon as ES snapshot is promoted.

I run a few of these tests locally against Elasticsearch built from
source and they were passing.

__Fixes: https://github.com/elastic/kibana/issues/162581__
__Fixes: https://github.com/elastic/kibana/issues/162583__
__Fixes: https://github.com/elastic/kibana/issues/162584__
__Fixes: https://github.com/elastic/kibana/issues/162586__
This commit is contained in:
Aleh Zasypkin 2023-07-31 15:48:36 +02:00 committed by GitHub
parent 02a43a1dd0
commit 2279dcec87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 8 deletions

View file

@ -381,8 +381,7 @@ export default function ({ getService }: FtrProviderContext) {
expect(nonAjaxResponse.headers['www-authenticate']).to.be(undefined);
});
// FAILING ES PROMOTION: https://github.com/elastic/kibana/issues/162581
describe.skip('post-authentication stage', () => {
describe('post-authentication stage', () => {
for (const client of ['start-contract', 'request-context', 'custom']) {
it(`expired access token should be automatically refreshed by the ${client} client`, async function () {
this.timeout(60000);

View file

@ -542,8 +542,7 @@ export default function ({ getService }: FtrProviderContext) {
.expect(200);
});
// FAILING ES PROMOTION: https://github.com/elastic/kibana/issues/162583
describe.skip('post-authentication stage', () => {
describe('post-authentication stage', () => {
for (const client of ['start-contract', 'request-context', 'custom']) {
it(`expired access token should be automatically refreshed by the ${client} client`, async function () {
this.timeout(60000);

View file

@ -443,8 +443,7 @@ export default function ({ getService }: FtrProviderContext) {
});
});
// FAILING ES PROMOTION: https://github.com/elastic/kibana/issues/162584
describe.skip('API access with expired access token.', () => {
describe('API access with expired access token.', () => {
let sessionCookie: Cookie;
beforeEach(async function () {

View file

@ -132,8 +132,7 @@ export default function ({ getService }: FtrProviderContext) {
.expect(200);
});
// FAILING ES PROMOTION: https://github.com/elastic/kibana/issues/162586
describe.skip('post-authentication stage', () => {
describe('post-authentication stage', () => {
for (const client of ['start-contract', 'request-context', 'custom']) {
it(`expired access token should be automatically refreshed by the ${client} client`, async function () {
this.timeout(60000);