Skip to content

Commit

Permalink
[Security Solution] fix/unskip endpoint metering tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joeypoon committed Aug 7, 2024
1 parent ae1ff9e commit dd12054
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,9 @@ export class Authenticator {
});
existingSessionValue = null;
} else if (usernameHasChanged) {
this.logger.warn(
`~~~old ${existingSessionValue!.username} | ~~~new ${authenticationResult.user!.username}`
);
this.logger.warn('Username has changed, existing session will be invalidated.');
await this.invalidateSessionValue({ request, sessionValue: existingSessionValue });
existingSessionValue = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const getCypressBaseConfig = (
// baseUrl: To override, set Env. variable `CYPRESS_BASE_URL`
baseUrl: 'http://localhost:5601',
supportFile: 'public/management/cypress/support/e2e.ts',
specPattern: 'public/management/cypress/e2e/**/*.cy.{js,jsx,ts,tsx}',
specPattern: 'public/management/cypress/e2e/**/metering.cy.{js,jsx,ts,tsx}',
experimentalRunAllSpecs: true,
experimentalMemoryManagement: true,
experimentalInteractiveRunEvents: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ import type { ReturnTypeFromChainable } from '../../types';
import { indexEndpointHeartbeats } from '../../tasks/index_endpoint_heartbeats';
import { login, ROLE } from '../../tasks/login';

// Failing: See https://github.com/elastic/kibana/issues/187083
describe.skip(
describe(
'Metering',
{
tags: ['@serverless', '@skipInServerlessMKI'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,5 @@ before(() => {
login(ROLE.soc_manager);
loadPage('/app/security/alerts');
cy.getByTestSubj('manage-alert-detection-rules').should('exist');
cy.visit('/logout');
});

0 comments on commit dd12054

Please sign in to comment.