Skip to content

Commit

Permalink
[FTR] Serverless - tag initial set of tests for ES gate (elastic#168622)
Browse files Browse the repository at this point in the history
## Summary

This PR adds the `esGate` tag to an initial set of serverless API
integration test suites. Tests with this tag will be run as part of the
Elasticsearch process.
  • Loading branch information
pheyos authored Oct 12, 2023
1 parent fa8d953 commit e6925cf
Show file tree
Hide file tree
Showing 16 changed files with 41 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { FtrProviderContext } from '../../../ftr_provider_context';

export default function ({ loadTestFile }: FtrProviderContext) {
describe('Alerting APIs', function () {
this.tags(['esGate']);

loadTestFile(require.resolve('./rules'));
loadTestFile(require.resolve('./alert_documents'));
loadTestFile(require.resolve('./summary_actions'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
import { FtrProviderContext } from '../../../ftr_provider_context';

export default function ({ loadTestFile }: FtrProviderContext) {
describe('core', () => {
describe('core', function () {
this.tags(['esGate']);

loadTestFile(require.resolve('./compression'));
loadTestFile(require.resolve('./translations'));
loadTestFile(require.resolve('./capabilities'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
import type { FtrProviderContext } from '../../../ftr_provider_context';

export default function ({ loadTestFile }: FtrProviderContext) {
describe('index pattern field editor', () => {
describe('index pattern field editor', function () {
this.tags(['esGate']);

loadTestFile(require.resolve('./field_preview'));
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
import type { FtrProviderContext } from '../../../ftr_provider_context';

export default function ({ loadTestFile }: FtrProviderContext) {
describe('index_patterns', () => {
describe('index_patterns', function () {
this.tags(['esGate']);

loadTestFile(require.resolve('./es_errors'));
loadTestFile(require.resolve('./fields_for_wildcard_route'));
loadTestFile(require.resolve('./data_views_crud'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
import type { FtrProviderContext } from '../../../ftr_provider_context';

export default function ({ loadTestFile }: FtrProviderContext) {
describe('Elasticsearch API', () => {
describe('Elasticsearch API', function () {
this.tags(['esGate']);

loadTestFile(require.resolve('./home'));
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { FtrProviderContext } from '../../../ftr_provider_context';

export default function ({ loadTestFile }: FtrProviderContext) {
describe('Index Management APIs', function () {
this.tags(['esGate']);

loadTestFile(require.resolve('./index_templates'));
loadTestFile(require.resolve('./indices'));
loadTestFile(require.resolve('./create_enrich_policies'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
import type { FtrProviderContext } from '../../../ftr_provider_context';

export default function ({ loadTestFile }: FtrProviderContext) {
describe('KQL', () => {
describe('KQL', function () {
this.tags(['esGate']);

loadTestFile(require.resolve('./kql_telemetry'));
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
import type { FtrProviderContext } from '../../../ftr_provider_context';

export default function ({ loadTestFile }: FtrProviderContext) {
describe('Management', () => {
describe('Management', function () {
this.tags(['esGate']);

loadTestFile(require.resolve('./ingest_pipelines'));
loadTestFile(require.resolve('./rollups'));
loadTestFile(require.resolve('./scripted_fields'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { FtrProviderContext } from '../../../ftr_provider_context';

export default function ({ loadTestFile }: FtrProviderContext) {
describe('serverless common API', function () {
this.tags(['esGate']);

loadTestFile(require.resolve('./anonymous'));
loadTestFile(require.resolve('./api_keys'));
loadTestFile(require.resolve('./authentication'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { FtrProviderContext } from '../../../ftr_provider_context';

export default ({ loadTestFile }: FtrProviderContext) => {
describe('Reporting', function () {
this.tags(['esGate']);

loadTestFile(require.resolve('./management'));
loadTestFile(require.resolve('./generate_csv_discover'));
loadTestFile(require.resolve('./download_csv_dashboard'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
export default function ({ loadTestFile }) {
// TODO: The `scripts` folder was renamed to `scripts_tests` because the folder
// name `scripts` triggers the `eslint@kbn/imports/no_boundary_crossing` rule
describe('scripts', () => {
describe('scripts', function () {
this.tags(['esGate']);

loadTestFile(require.resolve('./languages'));
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ import type { FtrProviderContext } from '../../../ftr_provider_context';
export default function ({ loadTestFile }: FtrProviderContext) {
// TODO: This `search` folder was renamed to `search_oss` to
// differentiate it from the x-pack `search` folder (now `search_xpack`)
describe('search', () => {
describe('search', function () {
this.tags(['esGate']);

loadTestFile(require.resolve('./search'));
// TODO: Removed `sql_search` since
// SQL is not supported in Serverless
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ import type { FtrProviderContext } from '../../../ftr_provider_context';
export default function ({ loadTestFile }: FtrProviderContext) {
// TODO: This `search` folder was renamed to `search_xpack` to
// differentiate it from the oss `search` folder (now `search_oss`)
describe('search', () => {
describe('search', function () {
this.tags(['esGate']);

loadTestFile(require.resolve('./search'));
// TODO: Removed `session` since search
// sessions are not supported in Serverless
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { FtrProviderContext } from '../../ftr_provider_context';

export default function ({ loadTestFile }: FtrProviderContext) {
describe('Serverless observability API', function () {
this.tags(['esGate']);

loadTestFile(require.resolve('./fleet/fleet'));
loadTestFile(require.resolve('./telemetry/snapshot_telemetry'));
loadTestFile(require.resolve('./telemetry/telemetry_config'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { FtrProviderContext } from '../../ftr_provider_context';

export default function ({ loadTestFile }: FtrProviderContext) {
describe('Serverless search API', function () {
this.tags(['esGate']);

loadTestFile(require.resolve('./telemetry/snapshot_telemetry'));
loadTestFile(require.resolve('./telemetry/telemetry_config'));
loadTestFile(require.resolve('./cases/find_cases'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { FtrProviderContext } from '../../ftr_provider_context';

export default function ({ loadTestFile }: FtrProviderContext) {
describe('Serverless security API', function () {
this.tags(['esGate']);

loadTestFile(require.resolve('./telemetry/snapshot_telemetry'));
loadTestFile(require.resolve('./telemetry/telemetry_config'));
loadTestFile(require.resolve('./fleet/fleet'));
Expand Down

0 comments on commit e6925cf

Please sign in to comment.