Skip to content

Commit

Permalink
run a placeholder test case for real endpoint serverless tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gergoabraham committed Sep 14, 2023
1 parent 3aaf36a commit 88d79c2
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@

import { defineCypressConfig } from '@kbn/cypress-config';

import { dataLoaders, dataLoadersForRealEndpoints } from './support/data_loaders';
import { responseActionTasks } from './support/response_actions';

// eslint-disable-next-line import/no-default-export
export default defineCypressConfig({
reporter: '../../../../node_modules/cypress-multi-reporters',
Expand Down Expand Up @@ -65,11 +62,18 @@ export default defineCypressConfig({
// eslint-disable-next-line @typescript-eslint/no-var-requires
require('@cypress/grep/src/plugin')(config);

dataLoaders(on, config);
// skip dataLoaders() because of `NativeResponseError: status_exception`
// message: `Native role management is not enabled in this Elasticsearch instance`
// related: https://github.com/elastic/security-team/issues/7614
// dataLoaders(on, config);

// skip dataLoadersForRealEndpoints()
// https://github.com/elastic/security-team/issues/7467
// Data loaders specific to "real" Endpoint testing
dataLoadersForRealEndpoints(on, config);
responseActionTasks(on, config);
// dataLoadersForRealEndpoints(on, config);

// skip responseActionTasks() because of `NativeResponseError: status_exception`
// responseActionTasks(on, config);
},
},
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

import { APP_POLICIES_PATH } from '../../../../../common/constants';
import { login } from '../../tasks/login';

// remove this file after other tests can run
describe(
'placeholder for running at least one `endpoint` test case',
{ tags: '@serverless' },
() => {
it('placeholder', () => {
login();
cy.visit(APP_POLICIES_PATH);
});
}
);
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ import { APP_POLICIES_PATH } from '../../../../../common/constants';
import { login } from '../../tasks/login';

// remove this file after other tests can run
describe('placeholder for running at least one test case', { tags: '@serverless' }, () => {
it('placeholder', () => {
login();
cy.visit(APP_POLICIES_PATH);
});
});
describe(
'placeholder for running at least one `mocked_data` test case',
{ tags: '@serverless' },
() => {
it('placeholder', () => {
login();
cy.visit(APP_POLICIES_PATH);
});
}
);

0 comments on commit 88d79c2

Please sign in to comment.