mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Limit available spaces to 1 for risk engine (#167110)
## Summary
Limit available spaces to 1 for risk engine
<img width="1483" alt="Screenshot 2023-09-25 at 08 15 47"
src="94c088fb
-55f5-436c-8c39-428fbb8e1e8c">
---------
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
785d640628
commit
7aee2e2d55
4 changed files with 7 additions and 8 deletions
|
@ -5,4 +5,4 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
export const MAX_SPACES_COUNT = 2;
|
||||
export const MAX_SPACES_COUNT = 1;
|
||||
|
|
|
@ -248,7 +248,7 @@ export const UPDATE_PANEL_GO_TO_DISMISS = i18n.translate(
|
|||
export const getMaxSpaceTitle = (maxSpaces: number) =>
|
||||
i18n.translate('xpack.securitySolution.riskScore.maxSpacePanel.title', {
|
||||
defaultMessage:
|
||||
'Entity Risk Scoring in the current version can run in {maxSpaces} Kibana spaces.',
|
||||
'Entity Risk Scoring in the current version can run in {maxSpaces, plural, =1 {# Kibana space} other {# Kibana spaces}}',
|
||||
values: { maxSpaces },
|
||||
});
|
||||
|
||||
|
|
|
@ -562,7 +562,7 @@ describe('RiskEngineDataClient', () => {
|
|||
namespace: 'default',
|
||||
});
|
||||
expect(status).toEqual({
|
||||
isMaxAmountOfRiskEnginesReached: false,
|
||||
isMaxAmountOfRiskEnginesReached: true,
|
||||
riskEngineStatus: 'ENABLED',
|
||||
legacyRiskEngineStatus: 'NOT_INSTALLED',
|
||||
});
|
||||
|
|
|
@ -373,9 +373,8 @@ export default ({ getService }: FtrProviderContext) => {
|
|||
});
|
||||
|
||||
describe('status api', () => {
|
||||
it('should disable / enable risk engige', async () => {
|
||||
it('should disable / enable risk engine', async () => {
|
||||
const status1 = await riskEngineRoutes.getStatus();
|
||||
await riskEngineRoutes.init();
|
||||
|
||||
expect(status1.body).to.eql({
|
||||
risk_engine_status: 'NOT_INSTALLED',
|
||||
|
@ -390,7 +389,7 @@ export default ({ getService }: FtrProviderContext) => {
|
|||
expect(status2.body).to.eql({
|
||||
risk_engine_status: 'ENABLED',
|
||||
legacy_risk_engine_status: 'NOT_INSTALLED',
|
||||
is_max_amount_of_risk_engines_reached: false,
|
||||
is_max_amount_of_risk_engines_reached: true,
|
||||
});
|
||||
|
||||
await riskEngineRoutes.disable();
|
||||
|
@ -408,7 +407,7 @@ export default ({ getService }: FtrProviderContext) => {
|
|||
expect(status4.body).to.eql({
|
||||
risk_engine_status: 'ENABLED',
|
||||
legacy_risk_engine_status: 'NOT_INSTALLED',
|
||||
is_max_amount_of_risk_engines_reached: false,
|
||||
is_max_amount_of_risk_engines_reached: true,
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -429,7 +428,7 @@ export default ({ getService }: FtrProviderContext) => {
|
|||
expect(status2.body).to.eql({
|
||||
risk_engine_status: 'ENABLED',
|
||||
legacy_risk_engine_status: 'NOT_INSTALLED',
|
||||
is_max_amount_of_risk_engines_reached: false,
|
||||
is_max_amount_of_risk_engines_reached: true,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue