mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Re-enable session lifespan, idle timeout api integration tests and use unique names for the security test reports. (#77746)
This commit is contained in:
parent
3101ca3195
commit
9a0dfcff04
10 changed files with 12 additions and 18 deletions
|
@ -19,6 +19,7 @@ export default async function (context: FtrConfigProviderContext) {
|
|||
'xpack.security.authc.api_key.enabled=true',
|
||||
];
|
||||
config.testFiles = [require.resolve('./apis/security/security_basic')];
|
||||
config.junit.reportName = 'X-Pack API Integration Tests (Security Basic)';
|
||||
return config;
|
||||
});
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@ import { default as createTestConfig } from './config';
|
|||
export default async function (context: FtrConfigProviderContext) {
|
||||
return createTestConfig(context).then((config) => {
|
||||
config.testFiles = [require.resolve('./apis/security/security_trial')];
|
||||
config.junit.reportName = 'X-Pack API Integration Tests (Security Trial)';
|
||||
return config;
|
||||
});
|
||||
}
|
||||
|
|
|
@ -70,7 +70,7 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|||
},
|
||||
|
||||
junit: {
|
||||
reportName: 'Chrome X-Pack UI Functional Tests',
|
||||
reportName: 'Chrome X-Pack UI Functional Tests (Security Basic)',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|||
},
|
||||
|
||||
junit: {
|
||||
reportName: 'X-Pack Security API Integration Tests',
|
||||
reportName: 'X-Pack Security API Integration Tests (Session Idle Timeout)',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|||
},
|
||||
|
||||
junit: {
|
||||
reportName: 'X-Pack Security API Integration Tests',
|
||||
reportName: 'X-Pack Security API Integration Tests (Session Lifespan)',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
|
@ -33,15 +33,11 @@ export default function ({ getService }: FtrProviderContext) {
|
|||
return (await es.search({ index: '.kibana_security_session*' })).hits.total.value;
|
||||
}
|
||||
|
||||
// FLAKY: https://github.com/elastic/kibana/issues/76239
|
||||
describe.skip('Session Idle cleanup', () => {
|
||||
describe('Session Idle cleanup', () => {
|
||||
beforeEach(async () => {
|
||||
await es.cluster.health({ index: '.kibana_security_session*', waitForStatus: 'green' });
|
||||
await es.deleteByQuery({
|
||||
await es.indices.delete({
|
||||
index: '.kibana_security_session*',
|
||||
q: '*',
|
||||
waitForCompletion: true,
|
||||
refresh: true,
|
||||
ignore: [404],
|
||||
});
|
||||
});
|
||||
|
|
|
@ -30,15 +30,11 @@ export default function ({ getService }: FtrProviderContext) {
|
|||
return (await es.search({ index: '.kibana_security_session*' })).hits.total.value;
|
||||
}
|
||||
|
||||
// FLAKY: https://github.com/elastic/kibana/issues/76223
|
||||
describe.skip('Session Lifespan cleanup', () => {
|
||||
describe('Session Lifespan cleanup', () => {
|
||||
beforeEach(async () => {
|
||||
await es.cluster.health({ index: '.kibana_security_session*', waitForStatus: 'green' });
|
||||
await es.deleteByQuery({
|
||||
await es.indices.delete({
|
||||
index: '.kibana_security_session*',
|
||||
q: '*',
|
||||
waitForCompletion: true,
|
||||
refresh: true,
|
||||
ignore: [404],
|
||||
});
|
||||
});
|
||||
|
|
|
@ -76,7 +76,7 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|||
screenshots: { directory: resolve(__dirname, 'screenshots') },
|
||||
|
||||
junit: {
|
||||
reportName: 'Chrome X-Pack Security Functional Tests',
|
||||
reportName: 'Chrome X-Pack Security Functional Tests (Login Selector)',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
|
@ -76,7 +76,7 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|||
screenshots: { directory: resolve(__dirname, 'screenshots') },
|
||||
|
||||
junit: {
|
||||
reportName: 'Chrome X-Pack Security Functional Tests',
|
||||
reportName: 'Chrome X-Pack Security Functional Tests (OpenID Connect)',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
|
@ -70,7 +70,7 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|||
screenshots: { directory: resolve(__dirname, 'screenshots') },
|
||||
|
||||
junit: {
|
||||
reportName: 'Chrome X-Pack Security Functional Tests',
|
||||
reportName: 'Chrome X-Pack Security Functional Tests (SAML)',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue